Adding rows dynamically to the tabular view [message #663490] |
Tue, 06 June 2017 07:01  |
 |
Hatik
Messages: 12 Registered: June 2017
|
Junior Member |
|
|
I am wondering is it possible to set up a button trigger, so that on button press, it would add a single row to the end of the tabular table that is with scroll bar.
What I mean is, at the last row to have a button "ADD", when pressed this row looses its button "ADD" and new last row should have "ADD" button.
|
|
|
Re: Adding rows dynamically to the tabular view [message #663519 is a reply to message #663490] |
Tue, 06 June 2017 14:18   |
 |
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
I can't test it, and I don't remember whether you can do that or not; however, see whether it is possible to conditionally display the button using SET_ITEM_PROPERTY. Something like this:
if :system.last_record = 'TRUE' then
set_item_property('your_button', displayed, property_true);
else
set_item_property('your_button', displayed, property_false);
end if;
Or, perhaps the VISIBLE property should be used (note that you might need to modify ENABLED, NAVIGABLE and some more properties when making it visible - it is described in Forms Help so - have a look).
|
|
|
|
|
|