I have an asset details page built on a
UIViewComponent with a data source that
gets a single asset record based on the page’s ID. This loads correctly and I can populate attributes/metrics with the asset’s record data.
I want to build a histogram with one of the fields (a collection of child types) on this asset. I’m using a
UIViewChartMetricsHistogram component as the child component, as discussed and debugged in a previous post.
Now, I want my histogram’s data source to fetch and filter where a field in the child type matches a parameter - whether that’s a
record.data... parameter or a
pageParams ID, I don’t really have a preference as long as one works. I’ve scoured Community, Slack, API documentation, and other app repos to no avail. I think the crux of my problem has to do with this line from the
UIViewChartMetricsHistogram API, but I don’t know how to get around it.
This means that the "autoLoadData" config does nothing for this component, and the method onRenderDataLoaded, while still triggered be every render, won't mean that the data for this component is fully loaded.
For Clarity: by “as long as one works”, the problem I’ve been running in to is that the dataSource for the child component (histogram) doesn’t populate its filter criteria with