In my application When the button is clicked I want to save the information so the user can view later, how can I do that, what to write in the source after createorupdate service action, I've attached the picture below?
Hi shifa
Create a form for the information and take the information from the user in run time and try to assign the values in source of creation of the entity action.
Hope this helps
Thanks
Prince
Any video tutorial on this?
Yes here it is.
https://youtu.be/HJB9k7FPeEM?si=-75oDCCMMuMfT6v9
As easy it is to ask here it is to search for the answer yourself.
Hi @shifa asif ,CreateOrUpdate is an action that requires some data to act.You will need the data to pass in this action, if you move your cursor to the source you will find the "+" icon after clicking on it you will find the attributes that can be filled.As already suggested create a form with required inputs where you can receive responses from the user then you can assign those to the resource of the createorupdate action.This might solve your problem but you will need to first go through the basic training videos, you can follow the guided path (become a web developer).
Hello shifa, I hope you are well.
1. On the screen, create an aggregate to bring the information that the user can see.
2. Still on the screen, create a form to display the information and allow the user to change it.
3. On the form's save button, point to your screen action.
4. In the screen action flow you place your create or update crud.
5. After the crud, you can direct the user to the screen where the information is displayed or just update the page aggregate to bring the new data.
6. If you prefer, I can rewrite the steps with images.
yes please if you can upload the images as well will be really helpful
Hi Shifa, the explanation containing the images and the .oml so you can download and look in your environment.
I created a table called "UserInformation" and dragged it to the "MainFlow" in the "Interface" tab; In this way, OutSystems automatically created the screens to "list the records" and "edit" the records in the table (entity).
On the screen for editing the "UserInformationDetail" records there is a form that takes information from an aggregate and a button to "save".
When the user clicks on the save button, the "SaveDetail" client action is called, so the flow within this action I validate the form with an "if" and after validating I call the CRUD of the "UserInformationCreateOrUpdate" entity, passing the form's record .
After persisting the form data into the table, I finish the flow by redirecting the user to the listing screen, where they can see the record they just created or updated.
I'm attaching my application file here, so you can download and open it in your environment to see how it was built.