Design Studio Workflow

 5 Replies
 0 Subscribed to this topic
 12 Subscribed to this forum
Sort:
Author
Messages
Greg Dey
Advanced Member
Posts: 23
Advanced Member
    Does anyone know how to capture the workunit in design studio when calling WFWK?  I created a design studio form for HR11 and an AGS call to WFWK.  I've tried selectSingleNode and GetAGSFieldValue without success, maybe syntax errors?
    Ragu Raghavan
    Veteran Member
    Posts: 476
    Veteran Member
      After the AGS calls to WFWK, I have this statement to capture the WU#. Seems to work ok.

      var sWU = sAGSInfo.selectSingleNode("//WORKUNIT").text
      Greg Dey
      Advanced Member
      Posts: 23
      Advanced Member
        When using your suggestion I receive an error about _TKN. I think it is not recognizing the command since it doesn't get to the alert I have right after.  I'm thinking I'm missing an include file? 
        This is what I have:

          
          
          
         

        Greg Dey
        Advanced Member
        Posts: 23
        Advanced Member
          dspfunctions.js, include.js and sea_common.js
          Ragu Raghavan
          Veteran Member
          Posts: 476
          Veteran Member
            If you can post the AGS call, I can compare it with mine to see what is different.
            Greg Dey
            Advanced Member
            Posts: 23
            Advanced Member
              Ragu - Your solution worked after I realized that I was running into a caching problem.  Don't think I experienced the problem with DS before.

               

              To fix :
              1.Select Tools >> Internet Options.
              2.Click the Settings button in Browsing History.
              3.Select the Every time I visit the webpage radio button.
              4.Click OK to close the Settings dialog.
              5.Click OK to close the Internet Options dialog.

              Thanks for the help.