Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Academy] 1.11 ToDo Challenge!

$
0
0

Bruno Henriques wrote:

Hi,


How do I make an automatic update to the IsCompleted and CompleteDate attributes with an action?

The update action only let's me choose a group of records (Entity) for me to say what is going to be update if I'm doing a manual update.

Nothing like this was referenced during the One Hour tutorial...


Best regards


Hi Bruno,

Since no one answered you question, i will give it a go. You probably already figured it out by now, but if not, maybe i can help you.

The best and simplest way to update a record, is to retrieve the record using a aggregate or advanced SQL query (if you know the id of the record, you can also use the Entities Get action or depending on your needs, the GetForUpdate action). 

Once you have the original record you can set the new values for that record and use the Entities Update action to save the changes to the db.

Hope this helped, if not let me know what i should clarify!

Regards



Viewing all articles
Browse latest Browse all 1476385


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>