on 01-22-2020 12:03 PM
Hello,
I have certain questions regarding understanding SAPUI5.
1. Within the View certain times you see the following <f:SimpleForm columnsL="2" columnsM="2"> </f:SimpleForm>
It acts as a table so why SimpleForm? and not Table?
2. Why <f:SimpleForm> and not just <SimpleForm>? What does the f stand for? What is it needed?
3. ColumnsL -> Columns for large size. Large size based on how many characters are in the Title of the column?
4. If you choose ColumnL why also ColumnsM?
1. Within the View certain times you see the following <f:SimpleForm columnsL="2" columnsM="2"> </f:SimpleForm>
It acts as a table so why SimpleForm? and not Table?
-- SimpleForm does not act as a table. The columnsL, columnsM indicates how many columns should be shown in the SimpleForm control on a screen with a large and medium size respectively.
2. Why <f:SimpleForm> and not just <SimpleForm>? What does the f stand for? What is it needed?
-- f stands for the alias that has been defined for the library sap.ui.layout.form, which will be replaced as sap.ui.layout.form.SimpleForm at runtime.
3. ColumnsL -> Columns for large size. Large size based on how many characters are in the Title of the column?
-- size depends on the device the app is running on. Usually small size is for a phone, medium size for desktop and tablet and large size for high resolution wide screen systems.
4. If you choose ColumnL why also ColumnsM?
-- columnsL and columnsM aare used in combination to set how many columns should be shown on different sizes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi saurabh.vakil
Posted on
f: can be anything the example code you might be referring will have
xmlns:f="sap.ui.layout.form"
i.e sap.ui.layout.form namespace is defined with alias f,
Technically, you can define any alias for namespaces.
<core:FragmentDefinition
xmlns="sap.m"
xmlns:l="sap.ui.layout"
xmlns:custname="sap.ui.layout.form"
xmlns:core="sap.ui.core">
<custname:SimpleForm columnsL="2" columnsM="2"> </custname:SimpleForm>
</core:FragmentDefinition>
Please check this UI5 link for more infoNamespaces in XML Views
Regards,
Bibhu
User | Count |
---|---|
74 | |
8 | |
8 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.