cancel
Showing results for 
Search instead for 
Did you mean: 

QueryFilter Object

Former Member
0 Kudos
62

Hi all,

How can i construct a QueryFilter Object and pass the input value to the parameter using this.

How can i work with the validations.

Thanks in advance,

Sudheer.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Go through [this help doc.|http://help.sap.com/saphelp_nwce10/helpdata/en/44/6359a603b13674e10000000a114a6b/content.htm]

Example:

Person person = this.getPersonService().findByPersonId(

QueryFilterFactory.createFilter(personId));

Sampath

Former Member
0 Kudos

Hi sampath,

I am not able to resolve the "QueryFilterFactory" in NWDS.

wht is missing?

Regards,

Sudheer.

Former Member
0 Kudos

Hi,

com.sap.caf.rt.bol.util.* package contains QueryFilterFactory class.

Sampath

Former Member
0 Kudos

Hi Sampath,

I cannot find the "QueryFilterFactory" Class in the mentioned pkg. I only have QueryFilter.

Regards,

Sudheer.

Answers (1)

Answers (1)

0 Kudos

Hi,

We use Query Filter to pass our paramater to perform a query operation.

We can create it from the operation tab of our application service.

try this sample code

java.util.List emp = getEmployeeService().findByPersonalID(new com.sap.caf.rt.bol.util.QueryFilter(personalID));

Object[] values = employees.toArray();

The QueryFilter is present in "com.sap.caf.rt.bol.util"

If you get an error you can create an new instance of this class.

Like:-

new com.sap.caf.rt.bol.util.QueryFilter(personalID)

I hope your error will be resolved

Reward if helpful.

Thanks,

Chaitanya.