Attribute-driven Data Binding
Rule/Guidelines
Example
When an expression includes string literals, double quotes can be used to contain the expression and single quotes to represent the string literal.
<div svmx-data=”’WorkOrder Id:’ + {{$D.WO.Id}}”/>
Only the following HTML elements support attribute-driven data binding: DIV, IMG, TABLE, TD, TH.
Child section field values can be included only through attribute-driven data binding used in tables Format for this is as follows: <table svmxdata=”{{<child object alias>}}”> <thead> <tr> <th svmx-data=”{{<field name>}}”><Column Label></th> ... ... </tr> </thead> </table>.
<table svmx-data=”{{$D.Work_Details__Work_Order_}}”> <thead> <tr> <th svmx-data=”
{{SVMXC__Line_Type__c}}”>Line Type</th> <th svmx-data=”{{SVMXC__Billable_Quantity__
c}}”>Quantity</th> <th svmx-data=”{{SVMXC__Billable_ Line_Price__c}}”>Price</th> </tr> </thead>
</table>
In a table, each cell can hold one or more values (data binding expressions).
Was this helpful?