Passing Parameters from a Form to a Portal Page

Sort:
You are not authorized to post a reply.
Author
Messages
Gene B.
Basic Member
Posts: 12
Basic Member

    I created a custom portal page that has a simple data query of employees by fica-nbr. This page is called from a button on a custom form. Can I pass the fica-nbr from the form to run in the data query automatically?

    John Henley
    Senior Member
    Posts: 3348
    Senior Member

      You can pass values via the Portal Page ("LAWPAGE") URL, by appending them. For example: http://myserver.com/lawso...oice&INVOICE=123

      You can then reference the passed parameters via JavaScript from within the Portal Page, e.g.

      var Invoice = page.parameters["INVOICE"];

      Another idea would be to create a composite page in Design Studio, which combines the Portal Page with the custom form.  If you look at this article (see https://www.lawsonguru.co...-All-Together.aspx), you will see a similar concept of a Portal Page combined with a customized form (athough it's backwards from what you're talking about). 

      Thanks for using the LawsonGuru.com forums!
      John
      You are not authorized to post a reply.