Making AN AGS CALL -- Not updating

 0 Replies
 0 Subscribed to this topic
 68 Subscribed to this forum
Sort:
Author
Messages
Vijay S
Veteran Member
Posts: 174
Veteran Member
    Hello everone,

    Our client is opting for paperless transaction for pay stubs.

    I need to add a option object on Direct deposit screen with a button. When the button is pressed It should update Print_Receipt flag on PR12.1.

    The directdeposit.html is calling directdeposit.js and i have modified the same. OPTION id coming fine with Button on the screen....

    I have written the code for the same ... but it is not updating the flag neither any error mssg is coming.

    Since It is mine first Ags call, Could some one suggest where i am wrong.

    Both the alerts are coming as usual but i am not getting screen message " Change Complete"

    For Ags Call
    ***********************************************************************

    function UpdateFlag()

    {
    alert ('Hi I am at the begining');

    var pAGSObj = new AGSObject(authUser.prodline, "PR12.1")
    pAGSObj.event = "CHG"
    pAGSObj.rtn = "MESSAGE"
    pAGSObj.longNames = true;
    pAGSObj.tds = false;
    pAGSObj.field = "FC=C"
    + "&EAD-COMPANY=" + authUser.company
    + "&EAD-EMPLOYEE=" + authUser.employee
    + "&EAD-ACH-DIST-ORDER=1"
    // + "&EAD-PRINT-RCPT=" + frm.ead_print_rcpt.options[frm.ead_print_rcpt.selectedIndex].value
    + "&EAD-PRINT-RCPT=1"
    pAGSObj.out = "JAVASCRIPT";
    pAGSObj.debug = false;
    AGS(pAGSObj, "jsreturn");
    alert ('Hi i am at the end');

    }



    *************************************************
    Code For SElect Option
    *************************************************


    hdrContent[hdrContent.length] = 'Direct Deposit' //'width=152>
    '
    ;
    + 'Print Pay Stub: '+' '+''
    + ' '
    + '

    '
    **********************