AGS to WFWK.1

 10 Replies
 0 Subscribed to this topic
 12 Subscribed to this forum
Sort:
Author
Messages
Shane Jones
Veteran Member Send Private Message
Posts: 460
Veteran Member
Sample AGS for WFWK.1

Anyone have the format for an AGS call to WFWK.1 to trigger a flow? I am thinking I might be able to create a simple html page with a button that will kick off a flow when the button is clicked?

All I am going to do is create a page with a button that runs the AGS call to start the flow. It does not need to be associated with an employee or anything it just needs to start the flow - "payflow_v01"

Anyone know how to format the AGS?
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...
Deleted User
New Member Send Private Message
Posts: 0
New Member
Here is a snippet of perl code that shows the format:
my $agsparam = join "",'_TKN=', $token1, '&_PDL=', $pl, '&_EVT=', $agsevt,
'&FC=', $fctk1, '&SERVICE=', $service, '&WORK-TITLE=', $worktitle,
'&PRODUCT-LINE=',$apppl,'&_OUT=XML';
Shane Jones
Veteran Member Send Private Message
Posts: 460
Veteran Member
So....

Does anyone know how to string all of this together into an AGS?

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
Do you mean from Javascript in Design Studio?
Thanks for using the LawsonGuru.com forums!
John
Shane Jones
Veteran Member Send Private Message
Posts: 460
Veteran Member
Actually,

I would like to just create a simple HTML page with a button that would run the AGS when clicked??? Then I could include the simple html page on the lawson server and give the two associates a bookmark in t he bookmark manager that would open the html page....

Shane
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...
Sreenivasa Komma
Basic Member Send Private Message
Posts: 19
Basic Member
AGS Call to WKWK.1:

_PDL=&_TKN=WFWK.1&_EVT=ADD&_RTN=DATA&_LFN=ALL&_TDS=IGNORE&FC=Add&SERVICE=&WORK-TITLE=&PRODUCT-LINE=&_DELIM=%09&_OUT=TEXT&_EOT=TRUE
John Henley
Send Private Message
Posts: 3351
Actually that syntax is for calling from ProcessFlow. You would need to adapt the code a little (in particular the variable names) to be able to call it from a Web page. Would your .html page be running from within Lawson Portal / Design Studio, or outside of it? Reason I ask is that you can take some shortcuts if it's being run from Portal.
Thanks for using the LawsonGuru.com forums!
John
Deleted User
New Member Send Private Message
Posts: 0
New Member
Does any one can provide to run from outside of Lawson
Robert Spurr
Veteran Member Send Private Message
Posts: 130
Veteran Member
Here is a sample trigger call made using WFWK: var s = portalWnd.AGSPath + "?_PDL=" + strPDL + "&_TKN=WFWK.1&_EVT=ADD&_RTN=DATA&_LFN=ALL&_TDS=IGNORE" + "&FC=ADD&SERVICE=PO30E.1_R&WORK-TITLE=Tech Email Heat" + "&CRITERION-1=" + pCompany + "&VARIABLE-NAMEr0=COMPANY" + "&VARIABLE-VALUEr0=" + pCompany + "&VARIABLE-NAMEr1=PO" + "&VARIABLE-VALUEr1=" + pPoNbr + "&VARIABLE-NAMEr2=POCODE" + "&VARIABLE-VALUEr2=" + pPoCode + "&VARIABLE-NAMEr3=POREL" + "&VARIABLE-VALUEr3=" + pPoRel + "&VARIABLE-NAMEr4=RECEIVER" + "&VARIABLE-VALUEr4=" + pReceiver + "&_DELIM=%09&_OUT=XML&_EOT=TRUE"; portalWnd.httpRequest(s);
Shane Jones
Veteran Member Send Private Message
Posts: 460
Veteran Member
Anyone know if WFWK still works in V10?
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
No, you need to convert it to use the IPA / Landmark transaction servlet.
Thanks for using the LawsonGuru.com forums!
John