Quantcast
Channel: SCN : All Content - SAP BusinessObjects Design Studio
Viewing all articles
Browse latest Browse all 4216

Issue with setFilter() on SDK Data Source component

$
0
0

Hey guys,

 

I have a question which may not entirely be new to this forum, however I haven't found any answers, so here goes.

 

Why does setFilter() return all of my data when it does not find the specified value, and is there a way to control this?

 

This is happening on my SDK Data Source component.


Here's an example of the behavior:

 

Table:

Year   Amount
2004     10
2005     15
2006     20

 

If I apply setFilter("Year", "2004"), I'll get:

Year   Amount

2004     10

 

Now if I apply setFilter("Year", "2003"), I'll get the whole initial table, as opposed to "No Data":

Year   Amount

2004     10

2005     15

2006     20


Am I missing something or is this really part of design?

 

Is there any way possible for me to control this without having to code my own version of setFilter() for my SDK data source component?

Note that my SDK data source component is extending "sap.designstudio.sdk.DataBuffer".

 

Thanks!

Scott Renaud


Viewing all articles
Browse latest Browse all 4216

Trending Articles



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