Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Another important aspect is the ‘input parameters’ property. In this example, we have one input parameter – the invoice number. While we've placed the input parameter on the header record format in this example, it's important to understand that it can be placed on any record format – you will just need to read that particular record format in the RPG program. In our RPG program, we will check if this parameter has been provided and show the correct invoice depending on the invoice number that is given as the parameter. We have 1 input parameter for this program that we’ve set up using the following've set up this input parameter like so:                

You can see from the image above that we’ve named the parameter ‘invoice’. In this example, 'invoice' will be used as a query string parameter in the URL that will run this program. We’ve also bound the parameter to a nine-digit decimal field called ‘Invoice’. This field will be used in the RPG program, which is discussed later on this page.

...