I have data from the database appear in the screen. and I need a value of a one attribute. i need it in local variable.
And I want to give it value just once. and the value is given when the screen is opened.
senario:
-attribute what i need is : total price of old order.
-when i open the screen, i want to give the local variable, the entitie attribute [total price] value.
-^and this action I want to start it once when the screen is opened.
-so now when i open the screen. the value of the local variable is 0. (what i need is: when i open the screen, attribute total price = the local variable. so when i open the screen the local variable should be the value of the attribute).
Hello Are you working on Reactive web application?
If yes then You can do the After the aggregate get fetched, when you go to Aggregate Properties
Create A On After fetch action and on that action assign a total calculated value from a aggregate to your Local variable.
Hope this helps.
Thanks
Hi,
You just need to have the aggregate on that screen, so you can assign the local variable.
Cheers
hi,
i have aggregate on that screen. and local variable. how can i assign the local variable ?
You create an on after fetch action and assign the value with an assign node
Hello KA,
Please see below available documentation. It may help you to understand the concept.
https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Data/Handling_Data/Variables/Local_Variable
https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Data/Data_Types/List?
Thanks & Regards,
Sachin