AGS C

 2 Replies
 1 Subscribed to this topic
 68 Subscribed to this forum
Sort:
Author
Messages
alexrs
Basic Member
Posts: 16
Basic Member

    What's wrong with this AGS call? Line change is not working:

    function agsHR20(ContactType, seqNbr, wkphonenbr, wkphoneext, effdate, lineFc) {
        var agsObj = new AGSObject(authUser.prodline, "HR20.1");
        agsObj.event = "CHANGE";
        agsObj.rtn = "MESSAGE";
        agsObj.longNames = "ALL";
        agsObj.tds = false;
        agsObj.field = "FC=C"
    + "&PT-XMIT-NBR=1"
    + "&PT-DATE=21981231"
    + "&PT-SEQ-NBR=" + escape(seqNbr,1)
    + "&HCN-COMPANY=" + parseInt(authUser.company, 10)
    + "&HCN-EMPLOYEE=" + parseInt(authUser.employee, 10)
    + "&HCN-CONTACT-TYPE=" + escape(ContactType,1)
    + "&HCN-SEQ-NBRr0=" + escape(seqNbr,1)
    + "&HCN-EFFECT-DATEr0=" + escape(effdate,1)
    + "&HCN-PHONEr0=" + escape(wkphonenbr,1)
    + "&HCN-PHONE-EXTr0=" + escape(wkphoneext,1)
    + "&LINE-FCr0=" + lineFc
        
    agsObj.func = "parent.DisplayMessage()"; 
        agsObj.debug = false;

     

    Thank you.

     

    alexrs
    Basic Member
    Posts: 16
    Basic Member

      I am wondering if instead of LINE-FCr0, I should use LINE-FCr1. I'll try this and let you know.

      alexrs
      Basic Member
      Posts: 16
      Basic Member
        Nope. It doesn't work. Any ideas?