UI Builder: How to populate a single score from a Transform?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2023 06:18 PM
I have a single score that I want to populate from a Transform data resource. Here's what I tried:
Define Data Manually is set to true.
Data is set to Use Script:
function evaluateProperty({
api,
helpers
}) {
var output = [{
"data": [{
"value": "0"
}],
"metadata": {
"format": {
"unitFormat": "{0}",
"precision": 0
}
}
}];
output[0].data[0].value = api.data.getmytransformresource.output.count;
return output;
}
There is no table I could draw the single score from. The number comes from calculations and lookups done by the Transform.
Visually that looks fine, but the Click handler doesn't run. The handler is Link to Destination but it does not run. What I want is that clicking the visualization opens a page which expands on the data in that transform. What am I missing here?
0 REPLIES 0