Adding Data to a Table_Record without using a query?

Adding Data to a Table_Record without using a query?

  
Hi guys, I'm a newbie user in Outsystems, i just want to ask, is it possible to add data to a table record without using a query?

My concept is like this. not until the user clicks the save button, the contents in the table will not be saved.

or if you have a better idea on how to do this, I will be very grateful.


Hi Lawrence,

You can create a Record List variable and assign it as your Source Record List to your Table Records WIdget.
Creating / Updating records will be done on your List Variable instead of going directly to your database.

Cheers,
Mark Chua

thank you for your reply, I will try your suggestion together with my own idea.
I'm thinking of duplicating the current table using the List.Duplicate method. That's where I will modify first the content so when I click the save button, the database is updated with the Duplicated List.

Many thanks!!
Lawrence Batuhan
Hi  Lawrence,

Don't think you need to use the list duplicate here.
Just modify/append records directly in the recordlist of the table widget. Nothing will be saved until you do a CreateOrUpdate cycle in the save action.
This assumes everything is done on the same screen with ajax screen actions.

Regards,
João Rosado
Ok I will try. many thanks! :)


Lawrence Batuhan
No Problem Lawrence, Are you from the Philippines? your surname sounds so. Haha

Cheers,
Mark Chua