Skip to Content
-1
Aug 05, 2019 at 11:57 AM

Combobox/Select in sap.ui.layout.form

147 Views

Hello,

how can I insert a combobox in this XML? I want to bind it later on to a JSONModel:

				<f:Form xmlns:sap.ui.layout.form="sap.ui.layout.form" editable="true" class="editableForm" id="__form01">
							<f:layout>
								<f:ResponsiveGridLayout labelSpanL="1" labelSpanM="1" labelSpanS="1" emptySpanL="1" emptySpanM="0" emptySpanS="0" columnsL="0" columnsM="1"/>
							</f:layout>
							<f:formContainers>
								<sap.ui.layout.form:FormContainer id="container1">
									<sap.ui.layout.form:formElements>
										<sap.ui.layout.form:FormElement id="element1">
											<sap.ui.layout.form:fields>
												<Input id="inputFauf" liveChange="onScanFauf" editable="true" placeholder="{i18n>FERTA}" enabled="true"/>
											</sap.ui.layout.form:fields>
											<!--<sap.ui.layout.form:label>
												<Label text="{i18n>Typ}" id="label1"/>
											</sap.ui.layout.form:label>-->
										</sap.ui.layout.form:FormElement>
										<sap.ui.layout.form:FormElement id="element2">
											<sap.ui.layout.form:fields>
												<Input id="inputBund" liveChange="onScanBundnr" editable="true" placeholder="{i18n>HUNR}" value="{Bundnr}" enabled="true"/>
											</sap.ui.layout.form:fields>
											<!--			<sap.ui.layout.form:label>
												<Label text="{i18n>Matnr}" id="label2"/>
											</sap.ui.layout.form:label>-->
										</sap.ui.layout.form:FormElement>
										<sap.ui.layout.form:FormElement id="element3">
											<sap.ui.layout.form:fields>
												<!--<Input id="inputCharge" editable="true" placeholder="{i18n>CHARGE}" enabled="true"/>-->
									</sap.ui.layout.form:fields>
									</sap.ui.layout.form:FormElement><sap.ui.layout.form:FormElement id="element4">
										<sap.ui.layout.form:fields>
											<Input id="inputMenge" editable="true" placeholder="1" enabled="true" value="1"/>
											<!--<Label text="BME" id="BME_lbl" textAlign="Left"/>-->
										</sap.ui.layout.form:fields>
										<sap.ui.layout.form:fields>
											<Input id="input6" placeholder="{i18n>UNIT}" enabled="false" fieldWidth="20%" value="ST"/>
										</sap.ui.layout.form:fields>
									</sap.ui.layout.form:FormElement>
								</sap.ui.layout.form:formElements>
							</sap.ui.layout.form:FormContainer>
						</f:formContainers>
					</f:Form>			


Thanks!