# How to retrieve values from a gx table.

**URL:** <https://techcommunity.softwareag.com/t/how-to-retrieve-values-from-a-gx-table/90978>\
**Category:** Forum\
**Tags:** Mainframe-Integration, ApplinX\
**Created:** [August 20, 2009, 1:40pm UTC](https://techcommunity.softwareag.com/t/how-to-retrieve-values-from-a-gx-table/90978 "2009-08-20T13:40:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kumar\_piyus](https://avatars.discourse-cdn.com/v4/letter/k/c57346/32.png) [@kumar\_piyus](https://techcommunity.softwareag.com/u/kumar_piyus)\
**Post date:** [August 20, 2009, 1:40pm UTC](https://techcommunity.softwareag.com/t/how-to-retrieve-values-from-a-gx-table/90978/1 "2009-08-20T13:40:06Z")

</div>

Hi,  
I need to consolidate few screens. One screen has a table. I have populated all the fields and table data using gx\_fillform. The table is editable and user can add new row (I am adding a new row by java script) to that table. I am able to access the fields and save it but cannot access the table values.

1. How can I retrieve values from that table?
2. How can I assign the table values to an input variable (structure) of a path in order to send it to mainframe?

Please help.  
Please suggest if I am doing something wrong and this task can be done easily by some other way. I am using ApplinX8.1

One more problem that I wanted to discuss is when I am populating values using gx\_fillform the table has empty rows in it. I have defined the table on the screen which has 10 rows and I have also checked the checkbox for deleting empty rows. So if the result data structure has 5 rows then on the web my table has 10 rows, 5 rows with data and 5 empty rows. How can I remove these empty rows as its not required??

Thanks.

---

<div class="post-metadata">

**Author:** ![Ohad\_M](https://avatars.discourse-cdn.com/v4/letter/o/7ba0ec/32.png) [@Ohad\_M](https://techcommunity.softwareag.com/u/Ohad_M)\
**Post date:** [September 2, 2009, 6:52pm UTC](https://techcommunity.softwareag.com/t/how-to-retrieve-values-from-a-gx-table/90978/2 "2009-09-02T18:52:52Z")

</div>

Hi Kumar,

If you view the page source in the browser you’ll notice all of controls inside the table have been given names such as:  
ControlName\_000 (first row)  
ControlName\_001 (second row)  
And so on…

You can retrieve it from the Java Code like this:

```auto
String str = getTagsAccesor().getTagContent("ControlName_0xx");
```

Then you can pass it to your input structure just as you normally would.

```auto
myStructure myNewStruct = new myStructure();
myNewStruct.setControlName(str)
```

Just to make sure we’re on the same page, you are going to have to generate a procedure client for that path procedure otherwise you will not be able to use your path’s “structure input”.

Hope this helps  
Ohad[/b]

---

<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, 2:57pm UTC](https://techcommunity.softwareag.com/t/how-to-retrieve-values-from-a-gx-table/90978/3 "2021-04-02T14:57:23Z")

</div>


