Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

how to make searchfield as mandatory in formelement

$
0
0

We need to make the searchfield label as mandatory  in a formelement.

 

GIven below is the code we have used. but not working.

 

new sap.ui.layout.form.FormElement({fields: [oSearch = new sap.ui.commons.SearchField("sf_srvcRecipient",{       
        value: "",
        enableListSuggest: false,
        layoutData: new sap.ui.layout.form.GridElementData({hCells: "5"})}
       )],
       label: new sap.ui.commons.Label("lb_srvcRecipient",{
        required: true, text: "Service Recipient", labelFor: oSearch
        })
      }),


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>