Skip to Content

SimpleForm binding Issue

I have created a simple form control. In its content I have created two fields – “Userid and First Name”. I have provided a F4 value help to Userid field. When I select the values in Userid F4 popup the corresponding value of First Name does not get bind.


			<f:SimpleForm id="idForm" adjustLabelSpan="false" layout="ResponsiveGridLayout" title="Update Employee Details" labelSpanL="1" labelSpanM="2" labelSpanS="12" emptySpanL="5" emptySpanM="5" emptySpanS="0" columnsL="1">
					<Label id="lblUserId" design="Bold" width="10em" text="User ID" textAlign="Center"/>
				    <Input id="inpUserId" showValueHelp="true" valueHelpRequest="onShowF4" width="10em"/>
				    <Label id="lblFirstName" design="Bold" width="10em" text="First Name" value=""/>
				    <Input id="txtFirstName" enabled="false" width="15em" value="{FIRSTNAME}"/>

Fragment for F4:

	createContent: function(oController){
		return new sap.m.SelectDialog({
			confirm:[oController.onSetInpVal, oController]


    onSetInpVal: function(oEvent){
    	var selectedItem = oEvent.getParameter("selectedItem");
    	var selectedData = selectedItem.getTitle();
    	var oUrl = selectedItem.getBindingContext().getPath();        //Url --> /ZEMP_ADD_SET('00000014')
    	var oFrm = this.getView().byId("idForm");
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Nov 22, 2018 at 07:52 PM

    you have firstname attribute under?

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 23, 2018 at 06:30 AM

    Can you check if the property "FIRSTNAME" is correct?

    Also check if the model is only binded to F4 help fragment.. if yes it should be binded to view or the component also.



    Add comment
    10|10000 characters needed characters exceeded