on 03-30-2016 1:15 PM
Hello Experts,
I'm using the script function isResultSetEmpty() to check if there is any data in my data source but I don't get the right result.
Example:
I have 2 drop downs and 1 crosstab in my application. I have assigned data source DS_1 to the crosstab. DS_1 is a query with 2 input (optional variables - I set these variables with the values selected in the drop downs. I want to hide the table when the source is initial. When I start the application there is no data so crosstab is invisible, when I change the selection in one of the drop downs data source is not initial but table is still invisible because the function isResultSetEmpty() returns "true". My check is in the "On result set change event" of the data source.
if (DS_1.isResultSetEmpty() == true) {
CROSSTAB_1.setVisible(false);}
else { CROSSTAB_1.setVisible(true); }
If I remove this code the table is visible - first time it's initial and second time, when I select the same value like in the example above - table with the data is displayed.
Do you have any ideas how if there is any other way to check the result set? Or why the script function doesn't work?
Aylin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Tammy,
Thanks for the quick reply!
My code is in "On Result Set Change" event of the data source - first suggestion.
I already tried with some debugging statements. I mentioned that the script function returns "True" when there is data.
"When I start the application there is no data so crosstab is invisible, when I change the selection in one of the drop downs data source is not initial but table is still invisible because the function isResultSetEmpty() returns "true".
Are you on SP1?
I also see a fix coming for something related coming for SP2 - https://launchpad.support.sap.com/#/notes/2272231/E
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.