Let's follow up this discussion at the Neptune Community

(this forum will be kept in read-only mode)
Answered

Enable/Disable form controls

Hi


I have a sap.m.page with a simple form and a number of inputs on the form.


The form is bound to a record called gs_record on the application class and I used the wizard (love this) to insert the input boxes.   These are all bound and work perfectly.


The sap.m page is bound to a different model source e.g. gs_form_settings.  This structure controls various items on the form. 


I bound the editable attribute of all input boxes to gs_form_settings-form_enabled, but this is not setting the enabled state of the input boxes.


I think this is happening because the form has a different model source to page.  

In the attributes of an input box I can bind editable to  

gs_form_settings-form_enabled and I can bind the value to gs_record-lifnr, but when I do this the input does not enable/disable as expected.


Any thoughts


Darren


Best Answer

Hi Darren


Binding will only apply for the mother structure. 


The binded structure you have on the form will then be used for the child objects of the form. Mixed binding to two different models is not possible.


Regards

Ole Andre 


Ok, thanks Ole Andre

Answer

Hi Darren


Binding will only apply for the mother structure. 


The binded structure you have on the form will then be used for the child objects of the form. Mixed binding to two different models is not possible.


Regards

Ole Andre 

Login or Signup to post a comment