Customize search screens
You can customize search screens based on your business model.
All the application-provided search screens contain List screen to display the search results. For example, the Order Search screen contains Order List screen that displays the search results.
When you add a field to criteria, ensure that the attributes corresponding
to the target binding of the field are added to the input definition
of the list mashup. The list mashup id exists in the List screen that
is embedded in the Search screen for conforming to mashup
security.
For example, in the Order Search screen, to add
the Order Number field for which the target
binding is Order/@OrderNo
, get the mashupRefId
from
the http request made on click of Search. In
the OrderListScreenBehaviorController.js file,
search for the mashupid
corresponding to the mashupRefId
,
and add OrderNo to Order Element in the mashup input, if not present.
To retrieve the list of Order By
that is used for a search screen, the search
screen calls the getOrderByList
service. This service considers entities such as
Order, Return, Item, User, Inbox, PriceMatch, and Competitor as input. For example, Order entity is
passed to the getOrderByList
service to retrieve the list of Order By that is used
in the Order Search screen. To add new entities or Order By
, modify the
getOrderByList
service.