Process Flow variable in custom form

 2 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Terry P
Veteran Member
Posts: 234
Veteran Member

    I'm not sure if this should be in the Design Studio or Process Flow forum - so I may cross post if I don't get a response. Here is my situation:

     

    I have a Process Flow that has a User activity. The user activity has a custom "exec" xml portal page. It basically displays information for a Purchase Order (takes data from the header, detail lines, and distribution). The portal page works if I hard code in the value of the PO for the dme queries. What I'm wanting to do though, is somehow pass the PO number to the portal page. Any suggestions?

    John Henley
    Posts: 3353
      I'm moving this to the processflow forum.
      Are you updating the workunit with values for the PURCHORDER or POLINE key fields, and then using those in the DME query?
      Thanks for using the LawsonGuru.com forums!
      John
      MarkH2002
      Basic Member
      Posts: 5
      Basic Member

        A little trick a recently discovered.  I have a custom .htm page (not made with DS) and I wanted to pass in variables.  We are on IPA running on landmark now so I could not query LOGAN for WFVARIABLES like I used to.  Tried to query landmark within the javascripting but couldn't figure that out so I passed my own variables into the custom htm page. If your html file is in htmlinbasket/inbaskets/execs IPA will automatically pass in 3 variables in the URL string with a | seperator.  In your javascript you can get this information as follows. Note: I might have work title and prodLine flipped but you get the idea.

        var parametersPassed = unescape(window.location.search);
         parametersPassed = parametersPassed.substring(1);
         parametersPassed = parametersPassed.split("|");   
         workUnit = parametersPassed[0];
         productLine = parametersPassed[2];

        This would get you workunit and productLine.  However what you want to do is pass your own variables.  When you specify your File Id in process flow add a ? behind the file name and pass your variables with a | seperator as follows:

        inbasket.html?var1|var2|var3|

        When the inbasket is rendered it will actually append to this with workunit, prodline etc so the URL string would look like this.

        https://servername:port/b...asket.html?var1Value|var2Value|var3Value|?workunit|prodline|worktitle

        From there you can use the JS above to get the values you need.  Not sure if this is supported but it works great!

         

        Edit: Didn't read OP very well as it looks like you are trying to pass parameters to a DS inbasket page but will leave this little nugget in case it helps anyone else