Hi Team,
I am currently developing a reactive app using Outsystems. I have a problem where when I refreshed my page after being published, I can't save my data anymore in the database when I clicked on the save button. I have to delete all my data in my database in order for me to save the data again. May I know what is the problem? Thanks in advance.
Ivan.
Hi Tousif Khan,
I'm sorry for the late reply. I've managed to solved it. I just changed the action of CreateOrUpdate to Create only. I don't know how it works after changing it as from my understanding it could have work if I use CreateOrUpdate too. Thanks for the assistance.
Best Regards,
Ivan
Hello
There might be some issue on your logic due to which you are not able to save the data to your data base. Also if you can attach your oml that will help to check the logic you implemented
I am attaching a simple sample for you that shows a logic to save a record to Db
I hope it will help
ThanksTousif Khan
Thanks for your reply with attached OML. Actually I don't think there's any error on saving as I implemented the way you did. Plus, I could save my data continuously in my database if I did not refresh my page on my browser. It happens every time I refreshed my page on my browser. Is there any other solution on solving this?I'm really sorry I could not attached the OML file. Thanks in advance.
Hi,
I forgot to add that I am using a ForEach to save the data as well.
Thanks
Can you show the flow you have, any snapshots, Also
As you said on refresh you are not able to see data, I guess it is getting stored locally,
Save one record and go to your OutSystems service studio and see whether data is saved into your entity or not
Yup I already checked on my local database on Outsystems. It did not store inside that database. I have to delete all the data inside of that in order for me to save and store my data back into the local database.
It is hard to understand without looking at the scenario and code, I would love to help butAs I have already mentioned what could be the scenarios of not getting saved, You can debug your code and see what is the real problem.
Is there any snapshot you need that will make you understand better?
Yes you can add a snapshot of your flow,Also how you are saving
Hi Ivon Kong,
After doing all the above process if you are unable to save the data yet in your database , you should try the debugging method in Outsystems . How to Debug link is given, go and try that then also if you are unable to save ,kind share the OML .
Hope this will help you!!
Kind regards
Sourabh Sharma
Hi Sourabh Sharma ,
I'm already able to do it. Thanks a lot!
Great to hear that !