In this post, we will see how to use Row Finder in ADF BC REST services.
Open REST resource VO and create a View Criteria as shown below having 2 bind variables for Department name and Location ID.
Go to Row Finders section and create new one with searhByDeptName.
Here we can observe that above VC is selected by default. In Variables section as shown below, we can also set whether bind variable is allowed to be passed in REST resource URL along with Required settings.
Deploy the application and use any REST client to test GET method using the following urls. Observe the usage of row finder and bind variables.
Passing single bind variable:
http://localhost:7001/departmentApi/rest/r1/departments?finder=searchByDeptName;bindDeptName=A
Passing both bind variables:
Now mark bindLocId variable as required and try to test without using it in the URL and you will observe the error as shown below.
Can I associate more than one View Criteria with a specific row finder? I have a business use case for this.
Not exactly… I think In one view ceriteria you can other use VC as inline view criteria . It should solve ur use case
Hi Siva,
Can we apply multiple RowFinders (multiple filters ) in the REST service ?
Thanks,
As a fact i never tried.you can try once using the separator
Did you get this to work?
Yes we can have multiple row finders.
We can have multiple row finders but when using in url we can’t use more than one..