Process flow AGS - change page 2

 4 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Shane Jones
Veteran Member Send Private Message
Posts: 460
Veteran Member
I am trying the change the second page of a form within a flow... I have an ags call that works great to change an item on page 1 but I think a "page down" is required to change the second page?

This AGS works for the 5th line of page 1...

PDL=&_TKN=WF22.1&_EVT=CHG&_RTN=MSG&_LFN=ALL&_TDS=IGNORE&FC=Change&WFV-WORKUNIT=&WFV-VARIABLE-NAME5=Effect_Date&WFV-SEQ-NBR5=20&LINE-FC5=C&WFV-VARIABLE-VALUE5=&_DELIM=%09&_OUT=TEXT&_EOT=TRUE

I need to change the 6th line of the second page - which means it is after a "page down"

How would I write this to change items like "Percent_Changed" variable in a workunit that is showing on page 2 of the form?

=============
PDL=&_TKN=WF22.1&_EVT=CHG&_RTN=DATA&_LFN=ALL&_TDS=IGNORE&FC=PageDown&WFV-WORKUNIT=&WFV-VARIABLE-NAME6=Percent_Changed&WFV-SEQ-NBR6=18&_DELIM=%09&_OUT=TEXT&_EOT=TRUE

PDL=&_TKN=WF22.1&_EVT=CHG&_RTN=MSG&_LFN=ALL&_TDS=IGNORE&FC=Change&WFV-WORKUNIT=&WFV-VARIABLE-NAME6=Percent_Changed&WFV-SEQ-NBR6=18&LINE-FC6=C&WFV-VARIABLE-VALUE6=&_DELIM=%09&_OUT=TEXT&_EOT=TRUE
=============

Do I need to combine these scripts and if so how?
Shane Jones
Tools: HR, Payroll, Benefits, PFI, Smart Office, BSI, Portal and Self-Service
Systems: Lawson, Open Hire, Kronos, Crystal Reporting, SumTotal Learning
** Teach others to fish...
Shane Jones
Veteran Member Send Private Message
Posts: 460
Veteran Member

Not sure why it works but I used the following script and it worked... I thought I had to page down in the script but I did not page down and it updated the correct field. ANYONE KNOW IF THIS IS STILL AN ISSUE OR IS THIS OKAY - IT LOOKS PERFECT IN WF22 AND THE WEB INBASKET.

PDL=&_TKN=WF22.1&_EVT=CHG&_RTN=MSG&_LFN=ALL&_TDS=IGNORE&FC=Change&WFV-WORKUNIT=&WFV-VARIABLE-NAME6=Percent_Changed&WFV-SEQ-NBR6=18&LINE-FC6=C&WFV-VARIABLE-VALUE6=&_DELIM=%09&_OUT=TEXT&_EOT=TRUE
Shane Jones
Tools: HR, Payroll, Benefits, PFI, Smart Office, BSI, Portal and Self-Service
Systems: Lawson, Open Hire, Kronos, Crystal Reporting, SumTotal Learning
** Teach others to fish...
John Henley
Send Private Message
Posts: 3351
Shane, the reason it's working is because you're populating WFV-SEQ-NBR6=18. So, AGS "knows" which sequence number you're operating on...
Thanks for using the LawsonGuru.com forums!
John
Shane Jones
Veteran Member Send Private Message
Posts: 460
Veteran Member
Does that mean that I would not need to write it to line 6?

WFV-VARIABLE-NAME6
WFV-SEQ-NBR6
WFV-VARIABLE-VALUE6
LINE-FC6

Would it work if I wrote to:

WFV-VARIABLE-NAME
WFV-SEQ-NBR
WFV-VARIABLE-VALUE
LINE-FC
Shane Jones
Tools: HR, Payroll, Benefits, PFI, Smart Office, BSI, Portal and Self-Service
Systems: Lawson, Open Hire, Kronos, Crystal Reporting, SumTotal Learning
** Teach others to fish...
John Henley
Send Private Message
Posts: 3351
If you populate SEQ-NBR, you can always write to line one:

WFV-VARIABLE-NAME1
WFV-SEQ-NBR1
WFV-VARIABLE-VALUE1
LINE-FC1
Thanks for using the LawsonGuru.com forums!
John