GL90 Calcs

Sort:
You are not authorized to post a reply.
Author
Messages
mondrar
Advanced Member
Posts: 35
Advanced Member

    I would like to perform some calcs on the value of the numbers shown under Amount, the credit and debit amounts displayed on the GL90. I have tried several ways, but I am unable to get any data from these fields. I've tried retreiving the values by field Nbr, Name, Data Src, using the lawForm.getDataValueById, and lawForm.getDataValue, and nothing. I can do a simple alert in certain fields, but none that are in the object that displays the retreived data.

    Does anyone have any ideas as to how to retrieve these values. It's not just one value, but several.

    Any ideas...

    ./Richard

     

    John Henley
    Senior Member
    Posts: 3348
    Senior Member
      You should be able to use lawForm.getDataValue. The field name is "GLT-BASE-AMOUNT". Make sure you are also passing a row subscript.
      Thanks for using the LawsonGuru.com forums!
      John
      mondrar
      Advanced Member
      Posts: 35
      Advanced Member
        I've tried that and I am unable to get anything. Here is where I am starting:

        function BUTTON_OnClick(id)
        {
        var bAmount=lawForm.getDataValue("GLT-BASE-AMOUNT");
        alert ("test" + bAmount )
        }
        John Henley
        Senior Member
        Posts: 3348
        Senior Member
          You need to include a row number, e.g. var bAmount=lawForm.getDataValue("GLT-BASE-AMOUNT",1);
          Thanks for using the LawsonGuru.com forums!
          John
          You are not authorized to post a reply.