For the sub-questions that appear on the widget when Anti Static or LLD Material is selected, we need to capture the default value info sooner than we originally thought. At times, the DEFAULT.VALUE programs aren't executing before the data appears on the screen, so the defaults aren't showing. To rectify, please make the following changes:
In the following programs, call the associated DEFAULT.VALUE function, then set SELECTED.YN for each option to 1 if this is the default option or 0 if not. You can use WEB.ASRESIN.OPTIONS as a guide (see lines 24, 29 and 39):
- WEB.SPECLLD.OPTIONS
- WEB.SPECAS.OPTIONS
- WEB.MILSPEC.OPTIONS
The following programs return the DEFAULT.VALUE for the field. They currently have no logic to handle the default when we are working with a quote number (pulling data back through the widget). Modify each program to add new default value logic when we have a quote#. If no quote number, the logic should run as it does now:
- WEB.ASRESIN.DEFAULT.VALUE
- WEB.SPECLLD.DEFAULT.VALUE
- WEB.SPECAS.DEFAULT.VALUE
- WEB.MILSPEC.DEFAULT.VALUE
Determining default value when QUOTE.NBR # "":
- Read the first open QUDET line for the quote and take config.rev out of QUDET field 39
- Read CFORDER using config.rev
- Extract default info:
- ASRESIN = CFORDER<13,348>
- SPECLLD = CFORDER<13,12>
- SPECAS = CFORDER<13,15>
- MILSPEC = CFORDER<13,129>