Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Integration / Customization
S3 Customization/Development
Javascript AGS call with "Next"
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Starr
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5327
People Online:
Visitors:
240
Members:
0
Total:
240
Online Now:
New Topics
S3 Systems Administration
Lawson Security Admin (LSA) - Securing Print Manager to self only
10/24/2025 6:27 PM
Looking for someone who would be willing to share
Lawson Add-Ins for Microsoft Office
Lawson Add-in
9/30/2025 6:51 PM
I am looking for a Lawson Add-ins query to add new
Lawson S3 Procurement
Anyone getting PO 0000 not found for company error in PO23?
9/30/2025 2:45 AM
Anyone getting PO 0000 not found for company error
Lawson Add-Ins for Microsoft Office
PO20 - Cancel PO via Add-in
9/25/2025 8:03 PM
Is it possible to cancel PO's using add-ins? I
S3 Systems Administration
S3 Payroll - PayStubs
9/18/2025 6:58 PM
Looking for a reliable solution to streamline the
S3 Systems Administration
Quick Access report
8/25/2025 7:17 PM
Looking for a good way to see who has access Lawso
S3 Customization/Development
LP01 hiding a PTO plan from the list
8/13/2025 4:44 PM
Hi all. is there a way to hide a specific PTO&n
Lawson Business Intelligence/Reporting/Crystal
GLTrans - PO Line/MAInvdtl
8/6/2025 6:13 PM
Hello, we have an existing tabular model for fina
IPA/ProcessFlow
Retrieving GUID from InforOS
7/25/2025 2:22 AM
Hello everyone, I was wondering if there is a way
IPA/ProcessFlow
IPA for forwarding cost messages (MA64/MA66.3)
7/23/2025 6:07 PM
When a buyer has an invoice cost message where the
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3293
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1377
Roger French
1315
mark.cook
1244
Forums
Filtered Topics
Unanswered
Unresolved
Announcements
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Integration / Customization
S3 Customization/Development
Javascript AGS call with "Next"
Please
login
to post a reply.
1 Replies
0
Subscribed to this topic
17 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
Woozy
Veteran Member
Posts: 709
8/19/2014 4:47 PM
I have a custom 4GL form that includes a grid with rows for all the employees of a supervisor, along with additional data (vacation used & available). This flow makes use of Next/Previous functionality to browse through records when there are more subordinates than the form allows. TThe form works perfectly using the Next/Previous functionality.
Now we've been given a requirement to build an EMSS version of this form. Do do this,
We want to retrieve all of the records from the form and store them in an array we can then use to build the EMSS screen.
We need to use an AGS call to retrieve the data from the custom 4GL form and display it in an EMSS screen, and we need to be able to "next" through the form to get all the records.
In the Javascript AGS call, no matter what we do we always get the first 11 subordinate records returned. How can we get this call to correctly perform an Inquire followed by a Next (or more than one next)? It seems to me that if the Next works on the form, it should work on the AGS call.
Here is the AGS call we are using:
<code> var obj = new AGSObject(authUser.prodline, "ZY92.1");<br /> obj.evt = "CHG";<br /> obj.rtn = "DATA";<br /> obj.lfn = "ALL";<br /> obj.tds = "IGNORE";<br /> obj.out = "XML";<br /> obj.field = "FC=" + fc // fc = 'I' first time through, then '+' (%2b) with subsequent calls until no additional records remain.<br /> + "&DKEY-PROTECTED=" + nxtGroup // 'nxtGroup is populated with the DKEY-PROTECTED value from the previous return (or zeros if 'I')<br /> + "&HSU-COMPANY=1"<br /> + "&HSU-EMPLOYEE=" + empU<br /> + "&AGS-FLAG=1"<br /> + "&YEAR-SEL=" + year;<br /> obj.func = "parent.processTotals(parent.year, parent.fc, '92')";<br /> obj.debug = false;<br /> AGS(obj, "jsreturn");<br /> </code>
We've used Fiddler to see what the form is doing, and have tried to duplicate it in the AGS call, without success.
Any ideas? Thanks!
Woozy
Veteran Member
Posts: 709
8/20/2014 9:12 PM
Split
My counterpart was able to figure this out and get it working by changing "obj.evt" to "obj.event" and spelling out "CHANGE" instead of "CHG":
<code><br /> <span>var obj = new AGSObject(authUser.prodline, "ZY92.1");</span><br /> <span> <strong>obj.event = "CHANGE";</strong></span><br /> <span> obj.rtn = "DATA";</span><br /> <span> obj.lfn = "ALL";</span><br /> <span> obj.tds = "IGNORE";</span><br /> <span> obj.out = "XML";</span><br /> <span> obj.field = "FC=" + fc // fc = 'I' first time through, then '+' (%2b) with subsequent calls until no additional records remain.</span><br /> <span> + "&DKEY-PROTECTED=" + nxtGroup // 'nxtGroup is populated with the DKEY-PROTECTED value from the previous return (or zeros if 'I')</span><br /> <span> + "&HSU-COMPANY=1"</span><br /> <span> + "&HSU-EMPLOYEE=" + empU</span><br /> <span> + "&AGS-FLAG=1"</span><br /> <span> + "&YEAR-SEL=" + year;</span><br /> <span> obj.func = "parent.processTotals(parent.year, parent.fc, '92')";</span><br /> <span> obj.debug = false;</span><br /> <span> AGS(obj, "jsreturn");<br /> </span></code>
Boy - it's the little stuff like this that makes you pull your hair out...
Please
login
to post a reply.