Laddawn.com : Programming Spec-Missing DEFAULT.VALUE Programs

DEFAULT.VALUE programs were created for the majority of the Shop Widget fields, but we are missing programs for 9 "S." params.  Some of the fields do not appear on the screen (IE, S.IMPORT which is a flag) and some just don't need a default value (ie, print plate description).  The UI side has been hardcoded to handle defaulting some of these params when null isn't a valid option.  For consistency and to remove hardcoding on the UI side, we are going to create the standard DEFAULT.VALUE program for each of these params.  These new programs will continue to look at WEBCRITERIA.USR for the default value using the existing function FCT.DEFAULT.LOOKUP.

  • S.ANTIBLOCK - Set DEFAULT.VALUE = 0
  • S.CPU - Set DEFAULT.VALUE = 0
  • S.HIGHSLIP - Set DEFAULT.VALUE = 0
  • S.IMAGEHGT
  • S.IMAGEWID
  • S.IMPORT - Set DEFAULT.VALUE = 0
  • S.PLATEDESC
  • S.UVI - Set DEFAULT.VALUE = 0
  • S.ZIPCODE

Create FCT. programs for each of the 9 params (3 Hrs):

These function routines can be executed from BP programs.  They call FCT.DEFAULT.LOOKUP to see if a default value has been established for the param.

  • Starting with BP FCT.FOLDED.DEFAULT.VALUE, make a copy for each of the 9 params, changing FOLDED to the param name (ie, ANTIBLOCK - no "S.").
  • Change any Folded-specific text within the program to the new param name

Create WEB. programs for each of the 9 params (3 Hrs):

These routines are needed for the UI side, which can't call the FCT functions directly.

For PARAMS that will have a null default (IMAGEHGT, IMAGEWID, PLATEDESC, ZIPCODE)

  • Starting with BP WEB.WIDTH.DEFAULT.VALUE, make a copy for each of the 4 params, changing WIDTH to the param name (ie, IMAGEHGT - no "S.").  
  • Change WIDTH to the new param name within the program so that it is calling the correct FCT function.

For PARAMS that will have a boolean default (ANTIBLOCK, CPU, HIGHSLIP, IMPORT, UVI)  

  • Starting with BP WEB.FOLDED.DEFAULT.VALUE, make a copy for each of the 5 params, changing FOLDED to the param name (ie, ANTIBLOCK - no "S.")
  • Change FOLDED to the new param name within the program so that it is calling the correct FCT function
  • Leave the existing line of code that is resetting 0/1 to false/true

Add to WEBCRITERIA.USR (1 Hr):

In screen WEB9001, add the default value routines as well as the default value to be used for each S. param above:

  • On the main screen, add the default value assigned above (if any) to field "Default Value".  A null is a valid default value.
  • On the F7-Routines sub-screen, add the new WEB. routine to the 'Default Val Rtn' field (ie, WEB.ANTIBLOCK.DEFAULT.VALUE).  Use S.WIDTH as a reference.