Linking to a Lawson form from an HTML page

 8 Replies
 0 Subscribed to this topic
 17 Subscribed to this forum
Sort:
Author
Messages
pklupa
Basic Member
Posts: 5
Basic Member
    Hi Everyone,

    I am building an HTML menu screen with links to several Employee Self Service screens.  These links work OK.  I am trying to add a link from the HTML screen directly to a Lawson form that I created.  Does anyone know the format of the URL that I need to have in the link to cause the Lawson form to come up?  Thanks!
    Robert Spurr
    Veteran Member
    Posts: 130
    Veteran Member
      I'm not sure if this will be helpful but I've include some scripting were I call a custom form(s)

      function BUTTON_OnClick(id, row)
      {
      var sHK = "";
      var vCompany = lawForm.getDataValue("RQH-COMPANY");
      var vReqNumber = lawForm.getDataValue("RQH-REQ-NUMBER");
      var vLength = vReqNumber.length;
      var vID = "";
      var vForm = "";
      var vWidth = 0;
      var vHeight = 0;

      if(id=="push7")
      {
      vForm = "EMERREQ ";
      vID ="XQ80.1_EMERREQ";
      vWidth = 800;
      vHeight = 600;

      } else if (id=="push8")
      {
      vForm = "EMREVIEW ";
      vID ="XQ80.1_EMREVIEW";
      vWidth = 800;
      vHeight = 525;

      }else if (id=="push9")
      {
      vForm = "SERVICE ";
      vID ="XQ80.1_SERVICE";
      vWidth = 800;
      vHeight = 850;
      }else
      {
      vForm = "BUYERFINAL";
      vID ="XQ80.1_BUYERFINAL";
      vWidth = 850;
      vHeight = 725;
      }

      if (id != "push3" && id != "push4")
      {
      sHK = vCompany;
      if (7-vLength > 0)
      {
      for (var i=1; i<8-vLength; i++)
      {
      sHK = sHK + "0";
      }
      }

      sHK = sHK + vReqNumber + vForm;

      var sURL = "/lawson/portal/?_TKN=XQ80.1&_ID=" + vID + "&_RSD-COMPANY="+ vCompany +
      "&_RSD-REQ-NUMBER=" + vReqNumber + "&_RSD_REQUEST_TYPE=" + vForm + "&_HK=" + sHK;

      window.open(sURL, "","toolbars=no,titlebar=no,resizable=yes,scrollbars=yes,menubar=no,width=" + vWidth + ",height=" + vHeight + ",modal=yes");
      }
      return true;
      }
      Karen Sheridan
      Veteran Member
      Posts: 142
      Veteran Member
        It should just be /lawson/xhrnet/
        You might want to look at Manager.htm - it does this for several other Lawson ESS/MSS pages

        HTH,
        Karen
        Greg Moeller
        Veteran Member
        Posts: 1498
        Veteran Member
          You could try something like:
          http://PortalServer/lawso...PDL=LIVE&_TKN=HR11.1

          Replacing LIVE with your product line and HR11.1 with your desired form.
          May need to log in again.
          Greg Moeller
          Veteran Member
          Posts: 1498
          Veteran Member
            Let's try that again, shall we ??
            something like
            Greg Moeller
            Veteran Member
            Posts: 1498
            Veteran Member
              PortalServer/lawson/portal/index.htm?_PDL=LIVE&_TKN=HR11.1 
              ?
              Greg Moeller
              Veteran Member
              Posts: 1498
              Veteran Member
                Replace
                &
                with the ampersand symbol
                pklupa
                Basic Member
                Posts: 5
                Basic Member
                  Thanks everyone for the input - I got tied up in an emergency here, so it will take me another day or two before I can try your solutions. I will let you know how I end up linking the Lawson forms. Thanks!!!
                  pklupa
                  Basic Member
                  Posts: 5
                  Basic Member
                    Thanks again everyone for your help. I have this working now thanks to your input. The URL I have used is:

                    https://SERVERNAME/lawson...=WS01.1_NEW_ESS_PMK.

                    The ID=WS01.1_NEW_ESS_PMK is a link to a Design Studio modification of our custom WS01 screen.

                    Thank you again everyone!!!