I used the following code:
public void GetCustomerData() {
try {
GXPathRequest req = new GXPathRequest(“CollectCustInfo”);
String AcctNo = getTagsAccesor().getTagContent(“AccountNumber”);
req.addVariable("AccountNumber", AcctNo);
GXPathResponse res = getGXSession().executePath(req);
// gx_fillForm(res.getScreens());
GXIScreenCollection sc1 = res.getScreens();
gx_fillForm(sc1);
GXDefaultTable table1 = new GXDefaultTable("A20010MATable", sc1);
table1.createTable(sc1);
getTagsAccesor().setTagTable("A20010MATable", table1);
GXDefaultTable table2 = new GXDefaultTable("KB0290M1Table", sc1);
table2.createTable(sc1);
getTagsAccesor().setTagTable("KB0290MTable", table2);
GXDefaultTable table3 = new GXDefaultTable("KB0300M1Table", sc1);
table3.createTable(sc1);
getTagsAccesor().setTagTable("KB0300M1Table", table3);
gx_handleHostResponse();
}
catch(GXGeneralException err){
gx_handleSessionError(err);
I got all the data in table A20010MATable. But I only got 5 rows for the other two tables. KB0290M1Table has 10 rows on a screen. KB0300M1Table has 6 rows on a screen. The path ‘CollectCustInfo’ pages forward through both of these tables until end of data is reached.
#webMethods#Mainframe-Integration#ApplinX