Skip to content
This repository has been archived by the owner on Jul 24, 2019. It is now read-only.

How to view Dimension properties #180

Open
surendiranganesan opened this issue Feb 25, 2015 · 3 comments
Open

How to view Dimension properties #180

surendiranganesan opened this issue Feb 25, 2015 · 3 comments

Comments

@surendiranganesan
Copy link

Hi,

For ex I am taking dimension " Store" from FoodMart

how to view properties like [store type,store manager etc] of the level "Store Name". Please help me on this.

Regards,

@surendiranganesan surendiranganesan changed the title Hos to view Dimension properties How to view Dimension properties Feb 25, 2015
@mysticfall
Copy link
Owner

Hi,

Unfortunately, there's no feature which allows you to configure dimension/level properties with UI in Pivot4J Analytics for now.

However, Pivot4J core has a basic API for displaying the properties(https://github.com/mysticfall/pivot4j/tree/master/pivot4j-core/src/main/java/org/pivot4j/ui/collector), and the Analytics client has a built-in implementation which renders all non-internal properties of a level.

If you need more complex operation, I'm afraid you'll have to extend one of the PropertyCollector implementations and make your own for now.

Cheers,
Xavier

@surendiranganesan
Copy link
Author

Thank you Xavier for replying

You mentioned about

However, Pivot4J core has a basic API for displaying the properties(https://github.com/mysticfall/pivot4j/tree/master/pivot4j-core/src/main/java/org/pivot4j/ui/collector).

can you please attach any screenshots of how the properties are getting displayed.

Regards

@mysticfall
Copy link
Owner

Ah, sorry, I was mistaken in saying that the default behavior is to show every non-internal properties.

It's been a while since the last time I checked the relevant code myself. The actual default behavior is not displaying any properties, so you need to set proper PropertyCollector implementation to the renderer somewhere, like in ViewHandler as:

// in ViewHandler.initialize()
renderer.setPropertyCollector(new NonInternalPropertyCollector());

The result would look similar to below image:

properties

You might want to use ConfigurablePropertyCollector instead, if you need more fine-grained control. Either way, I'm afraid they're rather limited in usefulness without any UI to configure them.

Hope this helps!

Cheers,
Xavier

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants