Hi!
Can I use a checkbox to add data to my DB table? For example if I checked the first row of my table as seen below and click the accept button, the STATUS field will have a value of "VALIDATED"
Thank you!
Attaching sample application..Thanks!
Yes u can do so. Inside the action associated with the accept button , update the status field with the selected table record id and then use the update entity action. It will reflect.
Suprio Roy wrote:
Sorry I'm actually new in using outsystem. Do you have any sample for this?
Mark Frederick Mabbun wrote:
Hi Mark,
welcome to Outsystems.
What you are asking here is very basic stuff, so for starters, take in some of the courses that are available for free.
relating to your current question, maybe look at
widgets 1
widgets 2
but really, you will learn a lot in short time just going through a whole learning path, such as web developer, mobile developer or reactive.
Good luck,
Dorine
Hi,
Yes just follow below steps,
1. Call list filter based on checkbox selected variable it will give u all selected rows.
2. Then loop through on filtered list and call entity create action and pass the value for saving including status field value.
3. use refresh data to refresh aggregate value
4. call ajax refresh to refresh the table records.
5. Accept button should be ajax submit.
Please let me know.
Thanks
JitendraYadav wrote:
I'm not sure if I did it right? It still now working. Please see below my Accept button action
Do you have any sample .oml example file that I can study? Thanks!
Sorry I'm now sure what do you mean with the 1st step call list filter? I have already added call entity update action but still not working.
Thanks!
Cool enjoy OutSystems World!
In the loop you have to update records.
Call entity update action to update the value.
Thanks.
It's ok now! I got it! Thanks!
Cool finally..Thanks!
Tried this method heheh