IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Path Procedures & Tables

    Posted Thu April 24, 2008 03:37 AM

    I have created a path procedure that navigates through seven screens. The third screen has a table defined on it. I want to present all the data on one web page. How do I access the table data?


    #ApplinX
    #Mainframe-Integration
    #webMethods


  • 2.  RE: Path Procedures & Tables

    Posted Sun April 27, 2008 02:12 PM

    Hi Joan,

    I’m not sure what your goal is but if I understand this could be good solution for you.
    In GXBasicContext.java, inside gx_fillTable()

    GXPathResponse res = getGXSession().executePath("7screensPath");

    Do the following


    #webMethods
    #Mainframe-Integration
    #ApplinX


  • 3.  RE: Path Procedures & Tables

    Posted Mon April 28, 2008 11:06 PM

    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


  • 4.  RE: Path Procedures & Tables

    Posted Thu May 01, 2008 10:11 AM

    Hi Joan,
    We looked at your code and it seems to be right.
    Make sure that on all the path steps the


    #webMethods
    #ApplinX
    #Mainframe-Integration