Design Studio upgrade 3 to 9/javascript errors

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

    We are upgrading to Design Studio 9 and I'm trying to alter the Design Studio customizations we had on AP20.1. I have downloaded the latest documentation from Lawson but didn't find a definitive list of Javascript changes. I'm putting one piece of Javascript into the form at a time and get an error on each piece. Here's where I'm starting so that pay vendor doesn't default to the prior invoice's pay vendor:

    function FORM_OnBeforeTransaction(fc)
    {
     if (fc=="A")
     {
       var vInfoVen=lawForm.setDataValue("API-PAY-VENDOR"," ");
       var vInfoName=lawForm.setDataValue("VEN-VENDOR-PNAME"," ");
       if (!vInfoVen || !vInfoName)
       return false;
     else
       return true;
     }
     return true;
    }

    I haven't been able to find any references in their documentation to "lawForm.setDataValue" so I don't know if that is the issue here? When I try to File, Save, the error says "Script is saved without syntax error checking. A script control component is not found. Please refer to the documentation for download instructions."

    The rest of the Javascript in this form, I have found syntax changes. However, no matter which section I put into the form, I receive the same error. Has anyone else run into this? Thanks for any assistance!

    drhoades44
    Advanced Member
    Posts: 46
    Advanced Member

      It may be that I need a Lawson patch. When I log in it says 9.0.1.4 which has a patch addressing not being able to save. When I do Help, About, it says 9.0.1.5 which doesn't show any patches on the Lawson site. Anyway, I've referred this to my sysadmin for now.

      Terry P
      Veteran Member
      Posts: 234
      Veteran Member

        I've seen that same error when I have multiple "test environments". Ie,  two data areas LAWAPP9, LAWTST9. If LAWAPP9 was my default data area and I switched to LAWTST9, I would get that error.

        drhoades44
        Advanced Member
        Posts: 46
        Advanced Member

          So what was the solution? I'm using the main data area (PROD) and no patches apply to our version of Design Studio, so I'm stumped again.

          Derek Czarny
          Veteran Member
          Posts: 63
          Veteran Member
            Do you have ActiveX enabled in your browser? When I open a browser and login to Design Studio I am prompted to use ActiveX. If your ActiveX is disabled in your browser, you can set it to prompt. Is your site setup as a trusted site in your browser? That might be your problem.
            TracyO
            Veteran Member
            Posts: 97
            Veteran Member
              I have had this issue each time we upgraded our DS. I think it is something that was missed in the set up fo the environment. I have a call into my DBA as he knows exactly what he does when I would get this error. Iit only takes him about 5 minutes to fix it. I also remember that I usually had to check my activeX controls too. That might actually be the fix to this, I can't remember for sure. I will let you know exactly what he "fixes" for me when I get this error when he gets back.
              TracyO
              Veteran Member
              Posts: 97
              Veteran Member
                I did talk to my IT person and the fix for your error is to make sure you have your activeX setting set to enable under IE. Hope that helps
                drhoades44
                Advanced Member
                Posts: 46
                Advanced Member
                  It wasn't any of the above, but thanks for your ideas. Got some help from JGI but don't think this syntax, from this page, was the actual problem.
                  You are not authorized to post a reply.