46
Views
3
Comments
Store values ??generated by expression in the GetProduct entity table
Question
How do I get a value generated by an expression stored in an entity table? In my application, on a product registration screen, among several entries related to product data such as thickness, width and length, there is an expression that calculates the volume, however, when checking the data, all values are stored in my entity GetProductById, except the values of the expression that calculates the volume of the product.

problemespressionvsentity.jpg
2025-08-22 10-19-44
Pramod Jain
 
MVP

Hi Andre,

The expression widget displays text or the result of an expression at runtime. It's similar to the print command in other programming languages. 
In order to store the calculated value you need define variable and assign the calculated value in the  variable . You can also use this variable in expression to show the text .

Assign the variable on the specific attribute of the record that you are using to Create the record in dB and that’s it.


Reagrds,

-PJ-


2020-06-04 15-38-19
Samiksha Manekar

Hi Andre ,

You have to use variable to calculate value and store that variable in database. you can pass that variable into expression to display value.

Thanks,

Samiksha

2020-07-29 19-08-40
Sanjay Kumar Sahu

Hello Andre,


You have already got the suggestion to use a variable to store calculated expression value.

Just to add on that, As you already have Volume attribute, you don't need to create any additional variable, just assign the calculated value to the GetProductById.Volume . 

Eg:  Assign widget : GetProductById.Volume = YourExpression

Demo Snap :

Hope it helps!


Regards,

Sanjay


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