ok, heres what you want to do, keeping in mind that Im not a Lawson Administrator, so you may want to check with yours to be sure of any impact this may have on your system. Also you may not have permissions to do this and Ive never tried this with Lawson Portal 9. But heres what you can do:
1. Login to Portal with the URL set to debug. The syntax for this is:
http://
lawsonportal:port/lawson/portal/index.htm?DEBUG=true
2. A Trace window will pop up, leave this window open. Youll be getting information from this window.
3. Go to the Form you want to post information to. Go to your trace window and hit F5. This will clear all previous information. Enter the desired values into your form.
4. Click Submit/Add/Delete/Change, which ever you are performing.
5. Bring your Trace window back up. There are 2 Panes:
Enter - Information Sent to the Server
Exit - Information sent to the browser
Click the "+" symbol to view the information.
6. The Enter information is what you want for your AGS call. Copy that.
Side note: you can also get similar information by pressing Ctrl-Atl-A and choosing one of the options that appears in the bookmarks.
7. Youll need to edit the information youve just gleaned from the Trace window. Wordpad is a good tool or any text editor.
a. Create the base AGS call
http://
lawsonportal:port/
enginetype/
agsengine?_PDL=
MYPDL&_TKN=
Form&_LFN=ALL&_RTN=
Return&_TDS=
TDS&_OUT=
OutputType&_EVT=
Event&FC=
FunctionCodeBolded text are arguments that have multiple options, the values displayed in bold arent actual valid values. I dont have a list of all the available so youll need to do some research on that.
enginetypeenginetype8. Now you need to find the required fields. To do this youll use Ctrl-Atl-A on the form again. Click the “Required Collection” link. Copy them down, then find and note next to each one the key, the Name using the "Names Collection".
9. Do a find/replace on the Enter string, Replacing all occurrences of tabs (^t) with paragraphs (^p).
10. Now convert the field numbers to the Names from step 8.
11. Now add & between each field and convert this into one long string and append to the end of the string from step 7.
This will get you an appropriate functioning ags call. if you want to add error handling, evaluate the Exit string and write some scripting to receive that string to make a determination of success or failure.
This is a lot to take in, but it should at least get you on the right track or help ask more informed questions from GSC at the least.
hth
matt