How can binding data with template card UI builder
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 01:12 AM - edited 10-18-2022 01:42 AM
Hi, i have to binding data in the template card, i already have a repeater with the array:
and i have to binding this data in the template card, for example name in the heading label:
i tried to do this, but i doesn't works:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2024 02:40 AM
Two years later, I had the same doubt 🙂 Maybe it will help someone who comes across this post as I did.
Also didn't manage to pull in data with data-binding, but solved this issue by using script possibility within data-binding.
In your case the script would probably look like so:
/**
* @Param {params} params
* @Param {api} params.api
* @Param {TransformApiHelpers} params.helpers
*/
function evaluateProperty({api, helpers}) {
var hd = { label: api.data.look_up_records_1.results[0].name.displayValue, level:3 };
return hd;
}
If you pull data from a repeater component, it would start with