Retrieve measure groupName

Answered
Marius Hulduban asked on April 23, 2021

Hi,
 
for apply some logic we need to retrieve the "groupName" field (retrived by "DiscoverMeasures http call").
We try with "getMeasures" api, but in the Flexmonster.Measure class there is no groupName field.
 
There is any way to get it?

5 answers

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster April 23, 2021

Hello, Marius,
 
Thank you for reaching out to us.
 
We want to confirm that the groupName property cannot be accessed from the outside. Currently, it is used to maintain the internal structure.
Could you please provide us with some details on the functionality you try to achieve? It would allow us to get a better understanding of your use case and find a suitable solution.
 
We are looking forward to hearing from you.
 
Kind regards,
Illia

Public
Marius Hulduban April 26, 2021

HI Illia,
we expose data of various type, and the final user can choose from "fields popup" some combination that "are not valid" (link some fact and dimension that are not linked).
We need that information on Measure class, so we can apply some "check logic" and if needed show a warning message.
For this scenario, i have another question for you, there is any callback that we can use, for handling "apply button" on "fields popup"? At the moment we found one report's callback, but it's applied after the popup has been closed.
 
Kind regards

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster April 27, 2021

Hello, Marius,
 
Thank you for providing us with details.
 
We will expose the groupName property so that it is returned by the getMeasures and `getAllMeasures` API calls. This will be included in the minor update ETA May 17. Our team will notify you as soon as the appropriate version is available to download.
 
Concerning your question about the callback of the "Apply" button.
We want to explain that the built-in Field List does not provide an option to retrieve the configured slice before it is applied.
If the configuration needs to be adjusted before applying it to the component, we suggest developing a custom Field List that would suit your needs.
We have a sample demonstrating implementation of the custom Field List for SSAS data source: Custom Field List with prefiltering for SSAS - JSFiddle - Code Playground.
Please note that it is only a sample, it may need to be complemented or modified in order to suit your needs.
 
We hope it helps.
Do not hesitate to contact us in case other questions arise.
 
Regards,
Illia

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster May 18, 2021

Hello, Marius,
 
We are glad to inform you that now getMeasures and getAllMeasures methods return the groupName property for SSAS.
 
This is provided in the 2.8.33 version of Flexmonster: https://www.flexmonster.com/release-notes/.
You are welcome to update the component: https://www.flexmonster.com/doc/updating-to-the-latest-version/.
 
Please contact us in case any questions arise.
 
Best regards,
Illia

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster May 25, 2021

Hello, Marius,
 
We are wondering if the provided functionality works well for you.
 
Looking forward to your feedback.
 
Kind regards,
Illia

Please login or Register to Submit Answer