HTML5 Data Bindings Support Product Page

How can I calculate values if the values coming from the database as $FORM or $URL?

Asked 20 Jul 2016 10:34:33
has this question
20 Jul 2016 10:34:33 Bekhzod Shamsiev posted:
For example:
<div data-binding-repeat="{{}}" data-binding-id="repeatQuery">
<input name="Field[{{id}}]" type="text" value="{{formula}}" />

I have a table with 3 rows and in the column "formula" I have the values:
For Field with ID 1: 1
For Field with ID 2: 3
For Field with ID 3: ($FORM.Field[1].toNumber()+$FORM.Field[2].toNumber())
but after loading the repeat region I see only text of my formula but not calculated...


Replied 20 Jul 2016 13:05:23
20 Jul 2016 13:05:23 Teodor Kuduschiev replied:
Is the Field with ID 3: ($FORM.Field[1].toNumber()+$FORM.Field[2].toNumber()) inside the repeat region?
Replied 20 Jul 2016 13:48:06
20 Jul 2016 13:48:06 Bekhzod Shamsiev replied:
Yes, but the Field with ID 3 has also {{formula}} as data-binding-value. In database for Field with ID 3 I have the value ($FORM.Field[1].toNumber()+$FORM.Field[2].toNumber())... How can I re-render dmxDataBinding?
Replied 20 Jul 2016 13:52:49
20 Jul 2016 13:52:49 Teodor Kuduschiev replied:
So where exactly the ID 3 {{formula}} goes?
Replied 20 Jul 2016 14:33:15
20 Jul 2016 14:33:15 Bekhzod Shamsiev replied:
In the database I have the following data:
Replied 21 Jul 2016 06:49:45
21 Jul 2016 06:49:45 Teodor Kuduschiev replied:
I am afraid what you are trying to achieve is not possible. You can use the sum filter, from the data bindings formatter and sum the values of the repeat region outside of it.

Reply to this topic