Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8635

sap.ui.ux3.ExactAttribute and Calculation View

$
0
0

I have a table in Hana, did put a Calcview on top of it with some hierarchies and now I am trying to render a selection area using a ExactAttribute browser. CalcView has a Title hierarchy - hence one attribute with all used titles. CalcView has a Geo hierarchy, hence it renders an attribute tree with area -> country -> city.

 

I wonder what would be the best method. Are there any shortcuts available? Please note that I am all new to data binding, OData, server side JS etc. Just implemented the first things.

 

My plan would be to

  1. Create a .xsodata file for my table, hence having an URL that provides the data.
  2. Declare a JSON model and using OData queries manually create the attribute tree the ExactAttribute browser requires.
  3. Bind that JSON object to the ExactAttribute browser.

 

Above plan is obviously very complex, does not utilize the calc view information of hierarchies and worst, loads the entire selection properties at once.

Hence I wonder if there is a simpler way of doing that. Basically I would assume this to be a standard case, the ExactAttribute selection area shows all calcview hierarchies and dynamically loads what has been expanded, e.g. when the AREA='Europe' node is expanded, the ExactAttribute calls the OData service to fetch all countries of Europe at that time.

 

And if there is no simple way, do you have any code snippets that show how such on-demand fetching can be implemented?

 

Thanks in advance, any pointers greatly appreciated!

 

(I am using this blog as reference REST your Models on SAP HANA XS)


Viewing all articles
Browse latest Browse all 8635

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>