Passing Parameters from a Form to a Portal Page

 1 Replies
 0 Subscribed to this topic
 12 Subscribed to this forum
Sort:
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
    Posts: 3353

      You can pass values via the Portal Page ("LAWPAGE") URL, by appending them. For example: http://myserver.com/lawso...yinvoice&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