HowToHeader

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

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 been 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 been 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

Transforming businesses since 2009

For over a decade, Panni has helped companies transform their businesses to lead, innovate and be profitable. With the right combination of technology and experienced developers and consultants, we help companies with Change Management to achieve the organizational objectives. We believe in long-term relationships with our clients and provide top-notch support with fast turnaround times.

Looking for ERP advice?