Use the Search Editor to Find Required Data
You can configure each layout of the workbook to allow a user to specify search values for filtering the data Oracle Visual Builder Add-in for Excel downloads to the layout.
For example, you might have a Form-over-Table layout that displays a purchase order in the form and associated lines in the table. In this scenario, you'll want to create a search that allows business users to enter the order number for a specific purchase order that they want to view.
You can use the Search Editor to create a filter on two or more fields. So, you could create a search that returns employee records where the job title equals "software developer" and the salary is over 95000. When you configure more than one condition, the add-in uses the logical AND operator between each one.
The Search Editor is supported for workbooks that integrate with ADF REST, VBBO, ORDS, or NetSuite services.
About Searches
You can create search conditions on one or more fields in the layout using the Search Editor. A search condition consists of a business object field, an operator, and a value.
An operator determines how items are matched based on the given value and is based on the field's data type. For example, available operators for strings include "starts with", "contains", and "ends with". Those for numbers include "greater than" and "less than". For dates: "before" and "after".
To download data for employees making over $95,000, for example, you'd choose the "Salary" field, select the "greater than" operator, and type "95000" in the value field.
If you configure more than one condition, the add-in always inserts the logical AND operator between each one. So, if you have two conditions such as "Job Title = Software Developer
" and "Salary > 95000
", the add-in downloads only those items that match both these conditions.
You can also use expressions for the condition value. For example, you could use the Today()
date function along with an integer ({ Today() - 90 }
) to find employees with hire dates in the last 90 days. See About Expressions.
Configure a Search for a Layout
You can configure a search for a worksheet using the Search Editor available from the Layout Designer. Using the Search Editor you can create one or more search conditions.
Before you begin, be aware that there are two business object field settings in the Business Object Field Editor related to search: Searchable and Required for Search. If a field isn't searchable, it won't appear in the Available Business Object Fields window. If a field is required for a search, the business user must provide a value at download. Required fields are indicated by an asterisk (*) in the Search Editor. See Configure Business Object Fields.
To create a search for a layout:
When a search is configured, your business users are presented with the Search prompt during download. If a search condition contains an expression, this is evaluated at this time. Our sample expression, { Today() - 90 }
, is converted to a value 90 days before today's date, as shown here:

The add-in stores the details of the business user's search definition with the layout. This cached definition is used for subsequent downloads.
You can configure a list of values for a field so that, when the business user is presented with the Search prompt, they can select an appropriate value from a list. See Configure a List of Values with a Business Object.
Searches even support cascading lists of values with dynamic filters. Let's suppose you want to download data for employees based on department and job title and have added the Department and Job Title fields to your search in order to do so. If the Department field has a LOV, you can choose the required department from the list. If the second field, Job Title, has a dynamic filter based on the Department field, the Job Title list shows only those job titles that are associated with the department you selected in the first field. See Configure a Cascading List of Values.
The IN Operator in Searches
Oracle Visual Builder Add-in for Excel supports the "in" comparison operator in searches for integer and string data-type fields. This operator is available for ADF REST, VBBO, and NetSuite (integer fields only) services .
The "in" operator allows you to return items with a field value that matches a value in a list you provide. The service treats the "in" condition like a series of OR
conditions.
Suppose you have an Employees workbook and want to download employee rows for Sophie Ren, Dave Brown, and Julia Nayer. You could use the "in" operator on the Last Name field and include a list of the last names, like this:
The add-in returns all items matching any of the last names provided.
When entering your list of values, enclose string values in single quotes like this: 'Ren', 'Brown', 'Nayer'
.
You can also use the "in" operator on an integer-type field and provide a list of the integers you want to match. Do not enclose integer values in single quotes.
Note:
The "in" operator is not supported for fields configured with list of values.- The list of search values must conform to the expectations of the service. For example, ADF REST services require that values for a string field have single quotes whereas values for an integer field must not have single quotes.
Refer to the documentation for the target service for more information.
- The search editor does not impose any limit on the number of items you can enter. If you provide a very long list of items for an "in" search, you may run into errors. For example, the Oracle database supports a maximum of 1000 items for the "in" operator. If you run into an error, reduce the size of the list.
- For URL-based search, you may run into a problem with the total length of the URL used in the GET request for download.
- If you create an "in" search, the workbook can no longer be used with versions of the add-in prior to 4.1.