# rowtablearea2 with icon control in str

**URL:** <https://techcommunity.softwareag.com/t/rowtablearea2-with-icon-control-in-str/100459>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, NaturalONE, NaturalONE-Full-Edition\
**Created:** [April 26, 2012, 3:44pm UTC](https://techcommunity.softwareag.com/t/rowtablearea2-with-icon-control-in-str/100459 "2012-04-26T15:44:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kborn](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/kborn/32/27165_2.png) [@kborn](https://techcommunity.softwareag.com/u/kborn)\
**Post date:** [April 26, 2012, 3:44pm UTC](https://techcommunity.softwareag.com/t/rowtablearea2-with-icon-control-in-str/100459/1 "2012-04-26T15:44:39Z")

</div>

Using an icon or button defined as column in str of a rowtablearea2 grid do not  
raise selected flag when selected with click.  
Method is actived but as it is the same for all rows in grid, row which it refers to  
is not known. You must select row before with a first click to set the selected flag  
and then give a second click pushing button or icon.  
Is this the right way working with natone or there is something not working.  
You can check this in demo in sysexnjx - control grid menu.  
Running environment is NaturalOne 8.2.4 on zLinux.

Many thanks and best regards.

---

<div class="post-metadata">

**Author:** ![Todd\_Beckwith](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/todd_beckwith/32/388_2.png) [@Todd\_Beckwith](https://techcommunity.softwareag.com/u/Todd_Beckwith)\
**Post date:** [April 26, 2012, 8:31pm UTC](https://techcommunity.softwareag.com/t/rowtablearea2-with-icon-control-in-str/100459/2 "2012-04-26T20:31:33Z")

</div>

kborn,

You should be able to get the index of the row that the button was clicked on by adding the njx:eventdata control to you page. You can then check the value of the variable xciindex. Hope this helps.

---

<div class="post-metadata">

**Author:** ![kborn](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/kborn/32/27165_2.png) [@kborn](https://techcommunity.softwareag.com/u/kborn)\
**Post date:** [April 27, 2012, 8:58am UTC](https://techcommunity.softwareag.com/t/rowtablearea2-with-icon-control-in-str/100459/3 "2012-04-27T08:58:07Z")

</div>

Thank you very much for your prompt reply.

---

<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:01pm UTC](https://techcommunity.softwareag.com/t/rowtablearea2-with-icon-control-in-str/100459/4 "2021-04-02T15:01:55Z")

</div>

Closed on April 2, 2021, 3:01pm UTC


