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:
>>>>>> Example <<<<<<<
On the application side – Design Studio.
When I start DS
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
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).
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.