Skip to Content
-4
Jul 13 at 05:44 PM

Difference in Form and SimpleForm tag

48 Views

Hi,

If we use Simple form tag then we can use Label and Input tag but when we use Form tag we cannot use Label and form tag . The IDE gives error.

Both Simpleform and Form extends same class sap.ui.core.Control .

Also Label and Input is not present in the SimpleForm details page.

Can someone explain me the reason or how they are linked.

    <f:SimpleForm editable="true"
                  title="Employee Details">
            <Label text="Employee No." />
            <Input id="Emp_no"  />
    </f:SimpleForm>


    <f:Form editable="true"
                  title="Employee Details">
            <Label text="Employee No." />
            <Input id="Emp_no1"  />
    </f:Form>