Prepares a job to accept commands by presenting an ASPX page to initiate the conversation with the user.
Syntax
BegFunc ShowPage Access(*Public) Type(*String)
DclSrParm outsidePage Type (*String)
DclSrParm parameter Type (*String)
Parameters
-
outsidePage - A string containing the name of the ASPX page presented to the user to initiate the conversation.
-
parameter - The string parameter that will be stored in the session object where the ASPX code behind can retrieve it.
Return Value
String containing values being returned.
Remarks
The ASPX code behind can retrieve the parameter like this:
Parameter = Session["MONARCH_CMDPARM"] *as*String Session["MONARCH_CMDPARM"] = *Nothing
Example
In the blue thread:
DclFld Result Type(*String) Result = (monarchJob *as ASNA.Monarch.WebJob).ShowPage("~/Clifton.aspx", "23,ABC,X") If (Result = "Function Completed") Return EndIf
In 'Clifton.aspx' in the yellow thread:
BegSr Page_Load Access(*Private) Event(*This.Load) DclSrParm sender Type(*Object) DclSrParm e Type(System.EventArgs) DclArray Parms Rank(1) Type(*String) DclFld Parameters Type(*String) If (NOT Page.IsPostBack) Parameter = Session["MONARCH_CMDPARM"] *as*String Session["MONARCH_CMDPARM"] = *Nothing If (Parameter = *Nothing) Response.Redirect("./PageRequestOutOfSequence.html") EndIf Parms = Parameter.Split(O',') txtCustNumber.Text = Parms[0] EndIf EndSr
Requirements
| Namespace: | ASNA.Monarch |
| Assembly: | ASNA.VisualRPG.Runtime.DLL |
| Platforms: | Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Windows 7, Windows 8 Pro, Windows 10 Pro |
