Kumar,
Please see in the ApplinX help : Combining Data from Multiple Host screens' (part of ApplinX Web Application Development Guide’)
Quoting from there:
-
Create a Path Procedure which includes outputs.
-
Associate the procedure with a procedure group.
-
Generate a procedure client from the procedure group.
-
In the JSP/ASPX file, add controls to match the procedure output:
o Text output values placed within any gx:control, with an identical ID as the output attributes name.
o Text array output values, placed within any gx:control with an ID structure such as outputname_oxx.
o Data structure arrays, only possible to apply them to gx:tables, with a similar structure, and identical IDs.
-
Override the gx_fillForm method. Run the parent class gx_fillForm method, and then execute the procedure using the procedure client you generated previously. Run the gx_fillForm(<procedureResponse>). Refer to BrowseCustomers1.java/aspx.cs.
To combine data from multiple host screens (JSP):
Create a Web page (JSP) for the first screen of the collection path, containing fields representing the fields appearing in all accumulated host screens, for example:
In the page’s code behind (located at \WEB-INF\classes\contexts), override the function gx_fillForm, executing the collection path and filling the page with the path’s output:
public void gx_fillForm(){
ProcedureClientMethodRequest req = new ProcedureClientMethodRequest();
ProcedureClientMethodResponse res = (ProcedureClientMethodResponse)getGXSession().executeProcedure(req);
gx_fillForm(res);
When performing the 1st step (`Create a Path Procedure which includes outputs’) you would get the output fields while recording (by marking those fields). The result is a list of fields in the path procedure output mapped and ready to use (instead of the datastructure you described. That would be very useful had you wanted to fill a table: an array of that datastructure would be the thing to fill the gx:table with).
Hope it helps.
#webMethods#ApplinX#Mainframe-Integration