Label containing expression or a variable containing expression?
Question

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?

Thanks!


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 

Regards 

Thanks for your reply, Alexandre!

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