Need a special offer?Find out if your project fits.
+

How do I specify customData on the Report object datasource?

Answered
Jon asked on March 23, 2019

Hello,
I'm trying to establish security and authorization protocols for our Flexmonster tool and came across the "customData" property while perusing your forums/support answers (https://www.flexmonster.com/question/cube-security-using-customdata-and-ssas/). This seems like exactly what I need for passing some ids in order to do a security check within our app before sending the requests off to the Accelerator that we have installed. However, since I am using the Angular implementation, I noticed that "customData" is defined as a string in the @types library for flexmonster of the node_modules and the property doesn't understand quotations inside this string? I tried various forms of escaping quotations, but the pivot grid crashes when hitting the property. These issues can even be seen in the JsFiddle created in the linked forum article (http://jsfiddle.net/flexmonster/faq275u1/). My question is, can "customData" accomodate a string-ified JSON object in any way?
Thanks for your time!
Jon

1 answer

Public
Vera Didenko Vera Didenko Flexmonster March 25, 2019

Hello, Jon,

Thank you for writing to us and pointing out the problem with the JSFiddle example.

The customData parameter should accept string values. We have updated the JSFiddle example accordingly. 

Regarding your question about passing a stringified JSON, please note that such format is not supported: customData can only be a string value.

.
Please let us know if you have further questions.

Best Regards,
Vera

Please login or Register to Submit Answer