Web Parameters
- Add a local NumberColumn named "_prodid"
- In the Run Method, Add a
NumberParamter
named "prodid" - Bind the paramenters
- Add a Where filter based on the _prodid
public class WebProducts : BusinessProcessBase
{
public readonly Models.Products Products = new Models.Products();
public readonly NumberColumn _prodid = new NumberColumn();
ENV.IO.WebWriter ioRequester;
ENV.IO.TextTemplate htmlPage;
public WebProducts()
{
From = Products;
Where.Add(Products.ProductID.IsEqualTo(_prodid));
}
public void Run(NumberParameter prodid)
{
BindParameter(_prodid, prodid);
Execute();
}
In order to send argument to the application we will add another parameter to the url:
ARGUMENTS=-N45
-N meants that this a numeric value
-A Alpha
-L booleanLet's concatenate the arguments to the URL using "&" as follows:
http://localhost:61988/Request.aspx?prgname=WebProducts&arguments=-N45Build and run (click "Google Chrome" or "Internet Explorer")
Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com