cancel
Showing results for 
Search instead for 
Did you mean: 

Question: Understanding SAPUI5

former_member614481
Participant
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

saurabh_vakil
Active Contributor

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.

former_member614481
Participant
0 Kudos

Thank you for your answer, it is very informative!!!

Why is f: even needed? What does it add to SimpleForm?

ibibhu
Product and Topic Expert
Product and Topic Expert
0 Kudos

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 info

Namespaces in XML Views

Regards,
Bibhu

Answers (0)