Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Design Studio 1.3 SDK – SAPUITable component only works fine when a button click is made in Design Studio.

$
0
0

Hi all

 

I’m developing a new SDK component - based now in SAPUI5Table - to return to the application side (DS-Design Studio) several simple functions (as example: the number of rows within a data source) – please find attached my code.

 

However, when I start DS I don’t get the correct number of rows – as you can see below. ONLY after I click on the button “Get the number of rows in Data source” the “5” appears correctly.

 

All steps done so far are described in post:

http://scn.sap.com/message/15986780#15986780

 


>>>>>> Example <<<<<<<

On the application side – Design Studio.

When I start DS

1.jpg  


Note :

 

"0" rows --> "0" comes from the defaultvalue in contribution.xml. (<defaultValue property="countrows">0</defaultValue>)

But we MUSTsee "5" since this crosstab has in fact 5 rows (as in the above example).

 

 

After I click on the button


2.jpg

5 rows --> which is correct and expected!!! But ONLY when I click on this button.


On the “On Startup” + “On Result Set Changed” events (inside DS).

3.jpg

 

But unfortunately none of these 2x workarounds are working fine!!! I still get “0” instead of “5” when starting DS.

 

 

So, what we need to change on SDK side to have “5” when start the application – not only after I click on button?

 

The goal is this component to work correctly when DS starts but also whenever a change is made on the data source level (example: swap a dimension or measure…) or a filter is modified by the user.

 

 

Best regards

Armando Santos.


Viewing all articles
Browse latest Browse all 6178

Trending Articles