Sage 100

 View Only
  • 1.  Can anyone give me some guidance on writing code s

    Posted 11-18-2014 10:07
    Can anyone give me some guidance on writing code snippets for the Configurator? I need to set an inclusion rule on a feature based on a value entered in a UDF in the Sales Order Header. JobOps says that I would require 2 code snippetsone to grab the sales order header UDF and one to set the inclusion rules based on the original code snippet.


  • 2.  RE: Can anyone give me some guidance on writing code s

    Posted 11-18-2014 13:12
    I'm sure if you ask Chris nicely, he would do it in his spare time or on the weekend. (He has a reputation of forgetting to post billable time, too.) @LisaDion has many snippets you may be able to review to get some ideas on where to start. (Note: we normally never do our own.)


  • 3.  RE: Can anyone give me some guidance on writing code s

    Posted 11-18-2014 15:02
    I don't have any that use SO Header information, all of mine either pull UDF data from the parent or component. This one is added to the additional inclusion rules to exclude the feature based upon category3 and a UDF in CI_Item ParentItemCode$=%sod.itemcode$ CIItem1FH=%sys_SS'OpenTable(""CI_Item"",""COMPANY"") READ DATA FROM $$,REC=CIItem$ to iol=iol(CIItem1FH) READ (CIItem1FH,KEY=ParentItemCode$,REC=CIItem$,DOM=*NEXT) CLOSE(CIItem1FH,err=*proceed);CIItem1FH=0 Model$=CIItem.UDF_MODEL$ Diopter=0,Diopter=NUM(CIItem.Category3$,ERR=*PROCEED) If Model$<>""872"" AND Model$<>""872Y"" then @REJECT=1 If Diopter < -10 or Diopter > -1 THEN @REJECT=1


  • 4.  RE: Can anyone give me some guidance on writing code s

    Posted 11-18-2014 18:25
    Thanks @LisaDion I will look this over and see if I can re-interpret for my use.