Page layout – Configuring selective search in components

When searching within a page component (say, a table in a page layout), we can restrict the search to columns we specify only. For example, in this particular app, we can limit our search to only the Opportunity Name, Stage, or ID column, if we like:

We can have different search criteria for different pages in our flow, configurable based on our business needs, rules, or context.

Click the Edit Metadata icon on the right-hand-side of the page layout.

We can add the ID of the property of the type to search by in our search criteria in the metadata. Here goes:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

{

"pageComponents":[

{

...

"id":"e84509d8-195b-4e5e-9cd6-1d696e155568",

"objectDataRequest":{

...

"listFilter":{

"searchCriteria":[

{

"columnTypeElementEntryId":"<the ID of a type property to filter the search by>"

},

{

"columnTypeElementEntryId":"<the ID of a type property to filter the search by>"

}

]

},

...

},

...

}

]

}

A word of caution. The search criterion functionality must be supported by the underlying service if we are getting the table data from an external service; otherwise adding this metadata will appear to do nothing!