# Deprecation of method getTable(String)

**URL:** <https://techcommunity.softwareag.com/t/deprecation-of-method-gettable-string/179290>\
**Category:** Forum\
**Tags:** Mainframe-Integration, ApplinX\
**Created:** [November 10, 2014, 8:37pm UTC](https://techcommunity.softwareag.com/t/deprecation-of-method-gettable-string/179290 "2014-11-10T20:37:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoeA](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@JoeA](https://techcommunity.softwareag.com/u/JoeA)\
**Post date:** [November 10, 2014, 8:37pm UTC](https://techcommunity.softwareag.com/t/deprecation-of-method-gettable-string/179290/1 "2014-11-10T20:37:24Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Gadi](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/gadi/32/16051_2.png) [@Gadi](https://techcommunity.softwareag.com/u/Gadi)\
**Post date:** [November 12, 2014, 11:20am UTC](https://techcommunity.softwareag.com/t/deprecation-of-method-gettable-string/179290/2 "2014-11-12T11:20:20Z")

</div>

You should be able to fix this using:

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

Let me know if this doesn’t help.

Gadi

---

<div class="post-metadata">

**Author:** ![JoeA](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@JoeA](https://techcommunity.softwareag.com/u/JoeA)\
**Post date:** [November 12, 2014, 8:02pm UTC](https://techcommunity.softwareag.com/t/deprecation-of-method-gettable-string/179290/3 "2014-11-12T20:02:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![JoeA](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@JoeA](https://techcommunity.softwareag.com/u/JoeA)\
**Post date:** [November 13, 2014, 3:25pm UTC](https://techcommunity.softwareag.com/t/deprecation-of-method-gettable-string/179290/4 "2014-11-13T15:25:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Gadi](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/gadi/32/16051_2.png) [@Gadi](https://techcommunity.softwareag.com/u/Gadi)\
**Post date:** [November 16, 2014, 8:24am UTC](https://techcommunity.softwareag.com/t/deprecation-of-method-gettable-string/179290/5 "2014-11-16T08:24:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![JoeA](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@JoeA](https://techcommunity.softwareag.com/u/JoeA)\
**Post date:** [November 17, 2014, 10:32pm UTC](https://techcommunity.softwareag.com/t/deprecation-of-method-gettable-string/179290/6 "2014-11-17T22:32:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Gadi](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/gadi/32/16051_2.png) [@Gadi](https://techcommunity.softwareag.com/u/Gadi)\
**Post date:** [November 18, 2014, 10:47am UTC](https://techcommunity.softwareag.com/t/deprecation-of-method-gettable-string/179290/7 "2014-11-18T10:47:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:32pm UTC](https://techcommunity.softwareag.com/t/deprecation-of-method-gettable-string/179290/8 "2021-04-02T15:32:23Z")

</div>


