Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Wiki MarkupThis step reinforces what you learnt in the previous tutorial [<span style="color: #0000ee"><span style="text-decoration: underline; ">Step 6. Edit the PRO_KEY tutorial Step 6. Edit the PRO_KEY Script.

Examine the auto generated script for Script</span></span>|ramptutorialsbasic_0250.htm#RAMPTutorialsBasic_0250]. Examine the auto generated script for CUS_KEY, the JUNCTION screen where we entered the customer number.

RAMP recorded exactly what we typed. In this case that we entered "1001" in the KEY field: !worddavaf485e25f57cd86bb5b0fc63f3f1b1cc.png|height=32,width

Image Added

As in Step 6. Edit the PRO_KEY Script in which we changed the product number in the script, also in this case we need to make the value entered in the customer number field soft. For more information see The List Manager.

Replace:

Image Added

With:

SETVALUE("KEY" ,objListManager.NKey1[0]);


Save the script:

Image Added=32! As in [<span style="color: #0000ee"><span style="text-decoration: underline; ">Step 6. Edit the PRO_KEY Script</span></span>|ramptutorialsbasic_0250.htm#RAMPTutorialsBasic_0250] in which we changed the product number in the script, also in this case we need to make the value entered in the customer number field soft. For more information see [<span style="color: #0000ee"><span style="text-decoration: underline; ">The List Manager</span></span>|https://docs.lansa.com/14/en/lansa050/content/lansa/lansa050_2270.htm?]. Replace: !worddavaf485e25f57cd86bb5b0fc63f3f1b1cc.png|height=24,width=32! With: SETVALUE("KEY" ,objListManager.NKey1\[0\]);   Save the script: !worddavaf485e25f57cd86bb5b0fc63f3f1b1cc.png|height=32,width=32! [<span style="color: #0000ee"><span style="text-decoration: underline; ">Show Contents List</span></span>|../../index.htm#lansa/ramptutorialsadvanced_0070.htm]