Table with variable number of rows
- WR 7.5
- Web app
- WinXP SP1
- Web addin enabled
I need to press the button in the LAST row of a table, where the number of rows changes over time and it's not known beforehand. The button label changes too, but I guess that's not the real issue here.
I already searched for "dynamic" on the forum, yet, I couldn't find anything re-usable on this topic. Feel free to point me to a different post, should I be mistaken.
Thanks a lot!
Re: Table with variable number of rows
1) Get the number of rows in the table with tbl_get_rows_count.
2) Capture the physical description of the button with web_obj_get_child_item.
Assuming the button appears in column 3 of your table:
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">tbl_get_rows_count("YourTable&quo t;,rows_count);
web_obj_get_child_item( "YourTable", rows_count, 3, "html_push_button", 0,button);
button_press(button);</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">