I want to read value entered in input field of fragment in controller below is my fragment and controller method.
<core:FragmentDefinition xmlns:core="sap.ui.core"
xmlns:form="sap.ui.layout.form"
xmlns:l="sap.ui.layout"
xmlns="sap.m" >
<Dialog
id="idSettings"
draggable="true"
title="{i18n>Settings_Title}" >
<content>
<form:SimpleForm
id="idSettings_Form"
backgroundDesign="Transparent"
editable="true" >
<form:content>
<Label text="{i18n>Settings_DeliveryStatus}" />
<Input
id="idSettings_storeId" />
</form:content>
</form:SimpleForm>
</content>
<buttons>
<Button
text="SAVE"
press="onSettingsSaveBtn" />
<Button
text="CANCEL"
press="onSettingsCancelBtn" />
</buttons>
</Dialog>
I have tried below options but not working.
1) **********************************************************************
var fragmentId = this.getView().createId("webapp.ZSO_ES4.viewFragments.Settings");
var tab = sap.ui.core.Fragment.byId(fragmentId, "idSettings_storeId");
2) **********************************************************************
var user = sap.ui.core.Fragment.byId("webapp.ZSO_ES4.viewFragments.Settings", "idSettings_storeId").getValue();