Hello, I have an application, and I have a UI where I show information about a selected metric type field.
The thing is that those fields of type metric are loaded in a dropdown list once a new data source is selected in another dropdown list.
What I am doing, to be more specific, is that when I select a new data source, I automatically call the getDatasourceMetadata(source, provider) function and get the meta.objectFields that the function returns, finally I filter them to show in the dropdown list only fields of type metric (‘NUMBER’, ‘INTEGER’, ‘MONEY’, ‘PERCENT’).
Is the way I’m doing it right or is there a more efficient way?