org-scn-design-studio-community / sdkpackage

SDK Package of SCN Design Studio Community
Apache License 2.0
32 stars 29 forks source link

Error for Facet Filter Component #47

Closed mrbensan closed 8 years ago

mrbensan commented 9 years ago

A script error occurs with the Facet Filter when attempting to implement a cascading filter for an Initial View that does not contain dimensions.

Initial View: initialviewnomeasures

Properties: properties2

Error Log: errorlog

Application: dsapplication

OnStartup Script: FACETFILTER_1.reloadDataSource(); FACETFILTER_1.reloadSelection();

On Result Set Changed Script: FACETFILTER_1.reloadDataSource(); FACETFILTER_1.reloadSelection();

KarolKalisz commented 9 years ago

Hi Mustafa,

the isse is due to parsing of this array - your " character is not correct (it is a bit italic, I think it cannot be correctly parsed). check this entry on JSON parser: http://jsonformatter.curiousconcept.com/

this one should be correct: "

The issue will be solved as soon we can generate also APS for array (on the way).

now, to the general topic - the cascade filter.

I think I have not fully described the properties. when you use the "Zero-Values Mode" with "Hide" then members which do not have a value will be not displayed - and in your case, as you have no dimensions in resultset - this means all, as value is read from resultset. This means, you can make cascading filter with this property ONLY when you use dimensions from resultset.

the second option is to reload data source every time, exactly like you do, but for this, you need to allow showing also Zero-Values, so the property must be on "Show".

helps? Karol ps. thanks for taking this topic.

ps2. ups, I have broken the functionality yesterday with the "Hide" option - now no Zero-Value members are inserted, I will recompile today.

KarolKalisz commented 9 years ago

Mustafa, preview is updated with a fix for the "Hide" issue.

KarolKalisz commented 8 years ago

closing as the issue is fixed.