Wednesday 1 April 2015

Select Validation in Form

Select list in Form:

<Label text="Group" />
          <Select width="100%" id="group">
            <items>
              <core:Item text="Select" key="1"/>
              <core:Item text="B.Tech" key="2"/>
              <core:Item text="M.C.A" key="3"/>
              <core:Item text="M.Tech" key="4"/>
            </items>
          </Select>
          
            <Label text="Sex" />


var select =  this.getView().byId("group").getSelectedKey();
    
     if(select==1){
        
         sap.m.MessageBox.alert("Please select the course");
         return false;
     }



2 comments:

  1. how to add new simple form to the existing simple form upon click on button

    ReplyDelete