Label containing expression or a variable containing expression?

Hello everyone,

Sometimes I want to return data on a Label item.
As I see there's at least two ways to do the job.

- Expression like GetEntity.List.Current.Field
- Set the expression above as a local variable on screen

Wich one is the best?


Hi Amaury, 

If you don't need that variable for additional logic check, I would say that you should use the direct value from the aggregate. 

If a variable is used, this is additional data that needs to be saved on the Web page. 

The best practice is avoid to load unnecessary data to the Web page. 

Hope that it helps 


Thanks for your reply, Alexandre!

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