How to Pass Parameter Values to Action through Function in Sage X3

May 5, 2017 Published by
Passing the parameter values is an important process in Sage X3 V9, especially when we use action parameters through function. The following are the steps to pass values to the action process through function in Sage X3.

Create one window for the testing purpose called “YTEST”. Go to

All Development Script Dictionary

C:\Users\Administrator\Desktop\graphical requestor\param-1.png

Script Dictionary Actions Action parameters

Click the action parameters as shown below.

C:\Users\Administrator\Desktop\graphical requestor\param-1.2.png

The following screen will appear as shown below

C:\Users\Administrator\Desktop\graphical requestor\param-1.3.png

Here you can create the new action, which is window entry type and map window, also add a specific process.

C:\Users\Administrator\Desktop\graphical requestor\param-2.png

Add the parameter, which we have created earlier in the action parameters function.

C:\Users\Administrator\Desktop\graphical requestor\param-3.png

Once an action has created successfully with parameters, the next step is to provide the action code to function. These parameters will come up in the parameter field automatically based on the action code given in the action code field. We will have to assign the parameter values as input, either they could be hardcoded values or screen field codes like “[M: XYZ] ABCDEF” as shown below.

C:\Users\Administrator\Desktop\graphical requestor\param-4.png

We need to write the code to display the parameter values through a specific process as shown. The PARAM is the standard variable, which is an array type.

When we provide the parameters in action, the parameter’s values will be automatically stored in the PARAM variable. The PARAM index will start from “1” by default.

C:\Users\Administrator\Desktop\graphical requestor\param-5.png

After the coding part has completed, execute the function and click on the Ok button in the message window, then the parameter’s values will be displayed as per the code written in the specific process.

AllSalesQuotes

C:\Users\Administrator\Desktop\graphical requestor\param-6.png

And also,

C:\Users\Administrator\Desktop\graphical requestor\param-7.png

Related Topics:

 

Your email address will not be published. Required fields are marked *