45
Views
5
Comments
Solved
How to give the value of entitie attribute to local variable

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).



2023-10-21 19-42-11
Tousif Khan
Champion
Solution

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

2022-07-22 08-49-20
Laura Fidalgo

Hi,

You just need to have the aggregate on that screen, so you can assign the local variable.

Cheers

UserImage.jpg
K A

hi,

i have aggregate on that screen. and local variable. how can i assign the local variable ?

2022-07-22 08-49-20
Laura Fidalgo

You create an on after fetch action and assign the value with an assign node

2023-10-21 19-42-11
Tousif Khan
Champion
Solution

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

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.