LSF9 AGS call

 12 Replies
 0 Subscribed to this topic
 12 Subscribed to this forum
Sort:
Author
Messages
aladjimi
Advanced Member
Posts: 18
Advanced Member

    I have been trying to get a simple AGS to work in LSF9 Design studio.  The script is running through its step properly.  I have followed the various values during the executions but unable to see the field get updated.

    I am running the AGS following statement to update an HR11 user field.  I am just running a preview of the script but others have tried to execute it with the same result:

    var vAGSCall;

    vAGSCall = "?_PDL=" + strPDL + "&_TKN=ZEOO.1&_EVT=CHG&_LFN=ALL&_TDS=IGNORE" +
    "&_OUT=XML&_FC=Change&HEU-COMPANY=" +usrCompany + "&HEU-EMP-APP=O&HEU-EMPLOYEE=" + usrEmployee +
    "&HEU-FIELD-KEY=55&HEU-A-FIELD=Y&EOT=TRUE"

    var vAGSInfo = portalWnd.httpRequest(portalWnd.AGSPath + vAGSCall);

    var vObjAGSXML = new top.DataStorage(vAGSInfo);

    I have followed it through and multiple alerts have tracked the data comming in but nothing is being posted???

    I am missing something but what????????

    John Henley
    Posts: 3353
      Do you get an error message? I think HEU-EMP-APP should be a zero, not an 'O' (oh).
      Thanks for using the LawsonGuru.com forums!
      John
      aladjimi
      Advanced Member
      Posts: 18
      Advanced Member
        Sorry it is a zero, that was a typeo on my part.
        aladjimi
        Advanced Member
        Posts: 18
        Advanced Member
          I do not get any error message when running the preview.
          John Henley
          Posts: 3353
            Well, this is a custom form, so it's hard to tell what it's doing behind the scenes. You should try the AGS call by itself via the browser and see what happens. One thing that looks possibly wrong is that &_FC=Change should be &FC=C ...
            Thanks for using the LawsonGuru.com forums!
            John
            aladjimi
            Advanced Member
            Posts: 18
            Advanced Member
              I am afraid that did not do the trick.
              aladjimi
              Advanced Member
              Posts: 18
              Advanced Member
                When you say I should execute the call myself, you mean the CTRL/ALT A function? I am sorry I am teaching myself.....
                David Williams
                Veteran Member
                Posts: 1127
                Veteran Member
                  Try running the AGS call in the API Builder to see the message that gets returned.
                  David Williams
                  aladjimi
                  Advanced Member
                  Posts: 18
                  Advanced Member
                    API, this is for Design Studio I don't think the API PFlow can be used?
                    David Williams
                    Veteran Member
                    Posts: 1127
                    Veteran Member
                      There is an API Builder in Design Studio as well. Look in the Tools menu.
                      David Williams
                      aladjimi
                      Advanced Member
                      Posts: 18
                      Advanced Member
                        You are right and I built and executed the AGS using API it worked find but when I execute the code in Design Studio I do not get an update. Althougth I am only doing this with the preview tool in Design Studio could I be missing a save or post?
                        aladjimi
                        Advanced Member
                        Posts: 18
                        Advanced Member
                          Can someone help me with this AGS which should be a standard.
                          aladjimi
                          Advanced Member
                          Posts: 18
                          Advanced Member
                            Thanks David
                            That API was a life saver which I was not aware to be available in Design Studio.