I need help on how to retain data/information that is displayed in an editable table. Whenever I click on "save" button to save information to the databas, the table seems to 'refresh" itself and that loses the information. I need the information to be retained in the screen.
Please help
Kind Regards
Mvuyo
Hi Mvuyo,
I feared as much :) In that case, the reason why the screen is refreshing is because the button has method "Submit" instead of "Ajax Submit". With the former, the page is submitted to the server, and will be refreshed. If you don't want that, use Ajax Submit.
EDIT: Note that that doesn't have anything to do with Editable Tables, but with screens in general.
Kilian Hekhuis wrote:
Kilian Hekhuis thank you very much. That solved it!
But I have a question - I have been using Submit action in all the screens of my application and there seems to be nothing wrong. It was only in this page where it had this unique problem. Why would that be?
Hi uyo,
It should be Okay..
May this link helps:
https://www.outsystems.com/forums/discussion/13337/editable-tables-what-if-you-dont-need-all-the-features/
https://success.outsystems.com/Documentation/10/Reference/Web_Interfaces/Designing_Screens/Editable_Table_Widget
regards,
A
Anonymous wrote:
Hello Anonymous.
Thank you, I am looking at the solution
Did you specify a Screen Action for the On Row Save Event property?
Hello Kilian
I did not specify the screen action to the table itself because I did not think I need it. What I specified an screen action to are the elements inside the table that hold values, such as local variables.
So the table is not being referenced by any Ajax Refresh widget; which is what make me not understand why the table refreshes itself.
Indeed the table shouldn't refresh itself, but to just to be sure, when talking about the Save button, you are referring to the check mark when editing a row?
hi Kilian.
No not the check mark, I mean an actual button I used to confirm whether to save the information to the DB. See the screenshot please
hi uyo,
May this pics help:
you do not need to create a new button to save. Just click the check button and provide save function as my pic shown above:
Hi Anonymous.
Kilian Hekhuis helped me establish that it is the action within the "Save" button itself. I have tried his solution and it solved my problem. Thank you very much for your help and effort as well. Much appreciated
I can't answer that without looking at the actual code of the screens. Do you also use Editable Tables in the other screens? In this screen, did you store the data in the Save action and retrieve it in the preperation, correctly setting up the data in the Editable Table? Etc.
hi Uyo,
may this helps
https://www.outsystems.com/help/SErviceStudio/9.0/Miscellaneous/Behavior_of_the_Button_Widget.htm
Thank you very much A