Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
User Experience
Lawson Design Studio
Design Studio workflow trigger PA52.1
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Jessica
Past 24 Hours:
2
Prev. 24 Hours:
0
Overall:
5164
People Online:
Visitors:
291
Members:
0
Total:
291
Online Now:
New Topics
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3288
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1348
Roger French
1311
mark.cook
1244
Forums
Unanswered
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Lawson Design Studio
Design Studio workflow trigger PA52.1
Sort:
Oldest First
Most Recent First
You are not authorized to post a reply.
Author
Messages
Judy Consoli
Veteran Member
Posts: 43
8/7/2013 7:23 PM
We are trying to create a workflow trigger for the Change transaction via design studio.
When we try to add variables for the workflow trigger we cannot match the workunit field variable to the form variable for those fields on Selected Items 1 because this is an array.
Has anyone ever successfully accompished this. We worked with Lawson Support and they suggested we query the Lawson Community
Thanks in advance.
Judy Consoli
Ragu Raghavan
Veteran Member
Posts: 468
8/8/2013 12:04 AM
Whenever I need to to create a trigger, I just make an AGS call to WFWK: something like this that gets called on_aftertransaction:
function Create_WU()
{
var s = portalWnd.AGSPath;
s += "?_PDL=";
s += portalWnd.oUserProfile.getAttribute("productline");
s += "&_TKN=WFWK.1&_EVT=ADD&_RTN=DATA&_LFN=ALL&_TDS=IGNORE";
s += "&FC=A&SERVICE=MARECON&WORK-TITLE=MA60.3";
// alert("1");
s += "&OBJECT-NAME=APISET1";
s += "&CRITERION-1=" + vCompany;
s += "&CRITERION-2=" + vCompany;
s += "&CRITERION-3=" + vCompany;
s += "&KEY-VALUE1=" + ZeroFill(vCompany,4);
s += "&KEY-VALUE2=" + vVendor;
s += "&KEY-VALUE3=" + vInvoice;
s += "&KEY-VALUE4=" + ZeroFill(vSuffix,3);
s += "&KEY-VALUE5=" + ZeroFill(vCancelSeq,4);
// alert("2");
s += "&VARIABLE-NAMEr0=COMPANY";
s += "&VARIABLE-VALUEr0=" + vCompany;
s += "&VARIABLE-NAMEr1=VENDOR";
s += "&VARIABLE-VALUEr1=" + vVendor;
// alert("3");
s += "&VARIABLE-NAMEr2=INVOICE";
s += "&VARIABLE-VALUEr2=" + vInvoice;
s += "&VARIABLE-NAMEr3=SUFFIX";
s += "&VARIABLE-VALUEr4=" + vSuffix;
s += "&VARIABLE-NAMEr4=CANCEL_SEQ";
s += "&VARIABLE-VALUEr4=" + vCancelSeq;
// alert("4");
s += "&_DELIM=%09&_OUT=XML&_EOT=TRUE";
// alert(s);
var sAGSInfo = portalWnd.httpRequest(s);
if (!sAGSInfo || sAGSInfo.status)
{
alert("AGS error " + sAGSInfo.status);
return false;
}
You are not authorized to post a reply.