Saturday, September 27, 2014

How to test Jscript in the Local machine for Lawson/Infor M3

You can test your jscript for Infor M3, using your local machine in 2 different ways.

1.  Using in-build script tool
2.   By configuring regedit of your local machine

1.  Using in-build script tool 

Step 1 – Type “mforms://jscript” in the start/search box on the title bar. And press enter
Step 2 – Once you open the script tool you can either,
open your script from a local folder (File -> Open)
 OR
copy and paste the code on the script tool.
Step 3 – Open the panel you want to check the personalization for. (Ex – PDS010/B) Then hit “Refresh” button on the Script tool. Once you do so, you can select the relevant panel (communicate with the programmer and verify the correct panel to start with) from the drop down before the “Refresh” button.

Step 4 – Once you are done with the above, press “Run” button on the script tool.
Step 5 – Go to the panel which you select as the host for the script and test the personalization.

Note – This will be effective until you close the selected panel or program. If you want to test it with different scenarios with one time attachment, it is recommended to use the second method.

2.  By configuring regedit of your local machine

Using this mechanism you can test you personalization only by opening the program each time. You don’t have to configure or run special program after that.
Step 1 – Download the following zip file and unzip it. Just double click it to run the registry file. Allow the registry file to run. Please select the correct zip file as per the M3 version. Once you get the success message please proceed with next step.
AuroraDeves_v13
AuroraDeves_v10

Step 2 – Create a new folder “C:\Aurora_Devs\Script\” in your c: drive
Step 3 – Copy and paste the jscript to that folder.
Step 4 – Open LSO and go the relevant program you wanna check the jscript. (Ex- PPS300/B)
Step 5 – Go to Tools -> Personalize-> Script

Add the script name (except .js) and press “Add”

Once you attach the jscript always remember to hit “Save” button.
Step 6 – Refresh (F5) the panel and start testing. 
Note – Once you deploy the tested jscript in the server remember to remove the local copy from the local machine. Otherwise M3 gives the priority to the script in the local machine not to the server. If so you may miss latest version of the script in the server. J

Happy scripting…. J