getDataValudByID

 4 Replies
 0 Subscribed to this topic
 12 Subscribed to this forum
Sort:
Author
Messages
Ragu Raghavan
Veteran Member
Posts: 476
Veteran Member
    Recently migrated from 8.03 / 8.03 to LSF9 / 9 apps.
    Earlier, something like this would work:

    lawForm.getDataValueById("text26",0);


    Now it does not.. getElementValue seems to work. This only affects any new fields that I paint on the screen and not the existing fields from the Lawson screens. Any Ideas why one would work and not the other?

    Thanks.

    Ragu

    function FORM_OnBeforeTransaction(fc)

    {

                var vT = lawForm.getDataValueById("text26",0);

                alert("vT " + vT);

                var vT = lawForm.getElementValue("_l84",0);

                alert("vT " + vT);

                return true;

    }




    Derek Czarny
    Veteran Member
    Posts: 63
    Veteran Member
      var vEmpStatus = lawForm.getFormValue("text12")
      var sEmployee = lawForm.getDataValue("EMP-EMPLOYEE")

      These are the 2 I use to get data from the form.
      Ragu Raghavan
      Veteran Member
      Posts: 476
      Veteran Member
        Thanks Derek.
        lawForm.getFormValue("text12") works for me too. Now I have another option to use in my script.

        So looks like,
        lawForm.getFormValue and lawForm.getElementValue will work for all fields,
        but lawForm.getDataValueById will work only for fields that tie back to a Lawson screen / data source ? I wonder if that is documented anywhere .
        Derek Czarny
        Veteran Member
        Posts: 63
        Veteran Member
          Not much is documented, everything is trial and error.
          Ragu Raghavan
          Veteran Member
          Posts: 476
          Veteran Member
            Thanks Derek.
            lawForm.getFormValue("text12") works for me too. Now I have another option to use in my script.

            So looks like,
            lawForm.getFormValue and lawForm.getElementValue will work for all fields,
            but lawForm.getDataValueById will work only for fields that tie back to a Lawson screen / data source ? I wonder if that is documented anywhere .