Fiori Elements:Enabling Search in the association view
In the last post Fiori Elements- Use of value help we have seen the value help assignment to a search field. The consumption view is build on SCARR table and then it has association to the SPFLI table. And the Search is enabled on the SCARR fields. In this post let’s see how to enable search on the association view.
The consumption view on SCARR table with association to spfli.
Run the app . The first appears the SCARR search and list display. Select a line.
Here the details of the SCARR line are displayed and then all the SPFLI records with SCARR carrid are shown. Here the countryfr and countryto label are same, let’s assign suitable different label for these two fields and then create a search option for SPFLI list table and the search should work on COUNTRYFR field.
Enable search for the view and make COUNTRYFR as the default search field and provide suitable text label for country from and country to field. Activate the view and test the app.
Here the search option appears on the SPFLI list and the text label appears correctly for the countryfr and countryto field.
The search works on the country from field. Provide a country name and the spfli list appears for that countryfr.