Step 6. Edit the PRO_KEY Script

Examine the auto generated script for PRO_KEY, the JUNCTION screen where we entered the product number.

RAMP recorded exactly what we typed. In this case that we entered "3001" in the KEY field::

If we leave it like this, we will only ever see the product details for product 3001.

To make RAMP use the product selected from the list, we must set the value of the KEY field to a variable maintained internally but exposed to scripting.

Select the text "3001" as shown in this picture and right click to display the context menu:

 

We want a value in the Current Instance List Entry, specifically the Numeric Key 1.

Select the Numeric Key 1 overriding the hard coded "3001":.

 

Why Numeric Key 1?

Because that's where the filter stores it.

DF_RAMPCV is the module used by filter DF_RPROFO to add products to the list.

The product number goes in the NKey1:

 

RAMP will at runtime use the instance list's NKey1 as the Product number.

See The List Manager.

Save the changed script: