Hello all,
Is there a way to declare a variable in a text or item property.
In my case, I use a ColumnChart and I directly create a table in Item property like it:
Table(
{
val1: Value(inputText1.Text);
val2: Value(inputText1.Text) * Value(inputText3.Text) * Value(inputText4.Text);
};
{
val1: Value(inputText2.Text);
val2: Value(inputText2.Text) * Value(inputText3.Text) * Value(inputText4.Text);
}
)
It works, but to have not to repeat Value(inputText3.Text) * Value(inputText4.Text), I would like use a variable directly in the property, maybe like it :
localVar(coef; Value(inputText3.Text) * Value(inputText4.Text);;
Table(
{
val1: Value(inputText1.Text);
val2: Value(inputText1.Text) * coef;
};
{
val1: Value(inputText2.Text);
val2: Value(inputText2.Text) * coef;
}
);
But I don't find the solution to do it.
Is it possible ? If yes, could you help me ?
If no, I think the best way is to use a Set(_coef, ...) in each concerning inputText (3, 4, ...). No ?
Thank in advance.