mysticfall / pivot4j

Pivot4J provides a common API for OLAP servers which can be used to build an analytical service frontend with pivot style GUI.
Other
128 stars 101 forks source link

Displaying compact properties #196

Open kikisp opened 8 years ago

kikisp commented 8 years ago

I was looking through code base and all the issues and couldnt find anyithing usefuul.. We are using pivot4j 0.9 and have simillar problem described here https://github.com/mysticfall/pivot4j/issues/188 So to go around this and compact table we want to find some way to maybe display all properties from all levels in a popup.So what the best way or is there a way to get all properties programmably,so we can send them as json to frontend. Thanks, Stefan

mysticfall commented 8 years ago

If you are willing to write a custom code to read properties and send them as json data, it becomes a much easier problem as the difficulty lies mostly in how to render them as a grid.

Maybe you can start by making a command(extending UICommand) to render a 'show properties' button for each members. Then you can implement its execute method to extract the parameter and get an instance of the relevant Olap4J Member.

From there, the rest is quite easy as all you have to do is invoke getProperties() on it and convert the returned data as JSON and send them to the client side.

If you need any further assistance in implementing it, please don't hesitate to ask. And sorry for the late response.