Laddawn.com : Programming Doc - Sheeting Gusset Type

New Packaging Options
June 12, 2013
Instead of returning multiple MOD items in the results area for gusseted sheeting, we have decided to add a new packaging option so the user can select which option they would like:

  • Gusseted Sheeting (Continuous and Perforated): We will add selections for 'Slit Gusset' and 'Slit Center'. Slit Gusset will be the default value.


Technical Notes:

  1. Create a new NAMED PARAMS as follows:
    1. Insert into SYSCON NAMED.PARAMS.LAD (in alphabetical order): SHOP.SHEETSLIT
    2. RUN IIUTIL MAKE.NAMED.PARAMS and answer "yes" to Recompile all programs. (first make sure no-one has LAD.COMMON locked)
  2. Create a new program called WEB.SHEETSLIT.OPTIONS (copy WEB.ASRESIN.OPTIONS as a template):
    1. If SHOP.RULESET is not 403 or 409, then return nothing from this routine. Just exit program. Note: we do not want to return these as disabled, because these fields will be hidden (invisible) on the web if not gusseted sheeting.
    2. If SHOP.RULESET = 403 OR 409, set options: Slit Gusset and Slit Center
    3. Add this program in the 'Option List Rtn' slot of WEB9001 (key S.SHEETSLIT) on the F7-Routines screen. This is how the web knows what to call.
  3. Add 'Gus Sheeting Slit' to BOM3000 (F7-Mkt then F7-Web). Allow Slit Gusset or Slit Center. John P designed and Wayne wrote this screen, so you can ask Wayne how to load the valid selections into a table and where to add on the screen (or if you think it's better to have Wayne do this part, that's ok too). This will be used to select stock gusseted sheeting items on the shop widget. Wayne will have to also change the stock selection program (I will let him know) to include this new field.
  4. Create a new program called FCT.SHEETSLIT.DEFAULT.VALUE (copy FCT.COLOR.DEFAULT.VALUE):
    1. The code that looks for CPN <> "" is used to default item description data for stock selections in the 'quick add' feature on the shop widget. You can work with John P (or Wayne) on this for more info. If you can't figure this out, code around this for now and we will deal with it when I get back.
    2. The END ELSE (CPN = '') is where you will leave the logic that calls FCT.DEFAULT.LOOKUP (but replace the SHOP. variable name to use SHEETSLIT). You can then add the default of "Slit Gusset" in WEB9001 for S.SHEETSLIT on the F8-Defaults screen. You enter ruleset 403 and 409 as codes, and enter Slit Gusset as Value. FCT.DEFAULT.LOOKUP looks here based on ruleset to find defaults
  5. Create a new program called WEB.SHEETSLIT.DEFAULT.VALUE (copy WEB.COLOR.DEFAULT.VALUE):
    1. This is the program that the web will call, which executes the FCT program. The web cannot call an FCT program directly.
    2. Add this program in 'Default Value Rtn' slot of WEB9001 (key S.SHEETSLIT) on the F7-Routines screen. This is how the web knows what to call.
  6. You do not need to create an ENABLED or VALIDATE program for this new field.


Once complete, you can turn this over to John P and Ed to make the changes on the web side to add this field to the packaging screen.