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.  Deprecation of method getTable(String)

    Posted Mon November 10, 2014 03:37 PM

    For legacy applications containing Paths and Tables (from Applinx 5.2.5), we have been getting the following warning:

    “The method getTable(String) from the type GXIClientBaseObject is deprecated.”

    Here is a partial code list:

    public void gx_fillForm() throws GXGeneralException{

    	GXPathResponse res = getGXSession().executePath("BulkI2_Collection");
    gx_fillForm(res.getScreens());
    
    GXITable gx_table = getGXSession().getTable("BulkI2_Collection");
    getTagsAccesor().setTagTable("BulkI2_Collection",gx_table,getGXAppConfig().getTableBuildConfig(),this);
    getSession().setAttribute(EXCEL_TABLE_SESSION_KEY, gx_table);
    

    }

    So, 2 questions:

    • Is there an easy way to fix this? (bet not)
    • How long will the deprecation warning exist until it no longer works.

    #Mainframe-Integration
    #ApplinX
    #webMethods


  • 2.  RE: Deprecation of method getTable(String)

    Posted Wed November 12, 2014 06:20 AM

    You should be able to fix this using:

    getGXSession().getScreen().getTables()[0]

    Let me know if this doesn’t help.

    Gadi


    #ApplinX
    #Mainframe-Integration
    #webMethods


  • 3.  RE: Deprecation of method getTable(String)

    Posted Wed November 12, 2014 03:02 PM

    Looks good so far. I have 677 modules to patch.
    Thanks for your assistance.


    #Mainframe-Integration
    #webMethods
    #ApplinX


  • 4.  RE: Deprecation of method getTable(String)

    Posted Thu November 13, 2014 10:26 AM

    Spoke too soon. With a collection table utilizing multiple screens, this fix only brings back the first screen’s data.


    #Mainframe-Integration
    #webMethods
    #ApplinX


  • 5.  RE: Deprecation of method getTable(String)

    Posted Sun November 16, 2014 03:25 AM

    Are you using a path to collect the table’s data?


    #ApplinX
    #webMethods
    #Mainframe-Integration


  • 6.  RE: Deprecation of method getTable(String)

    Posted Mon November 17, 2014 05:33 PM

    It is a path-based table in Applinx 5.2.5 unconverted to 8.


    #ApplinX
    #Mainframe-Integration
    #webMethods


  • 7.  RE: Deprecation of method getTable(String)

    Posted Tue November 18, 2014 05:48 AM

    Hi Joe,

    Unfortunately we don’t offer any automated migration from path-based-tables to path procedures.
    You will need to create the new path procedure manually. The table needs to be defined on the screen, then you’ll need a path that goes through all the table’s screens and collect it.
    You need to add this new path into a procedure group entity and generate a procedure client from the procedure group using right-click.
    Once you have the procedure client generated into your project you can use it to collect the path response and use the “GXBindUtil.entityArrayToGXITable” utility to collect the content of the table into the GXITable object.

    You can see an example of this in our composite demo web application, in the BrowseCustomers1.java file (inside the gx_fillForm() method).

    If you need further clarifications let us know.

    Regards,
    Gadi


    #webMethods
    #Mainframe-Integration
    #ApplinX