Skip to Content
avatar image
Former Member

valueHelp and custom data binding issue using named model

Hi All,

I need help I am trying to open a fragment as below

<Input app:custvar="/NotSuitableForCust" 
value = "{worklistView>/NotSuitableForCust}" id="oNSutbleForCustId" 
showValueHelp="true" 
valueHelpRequest="onCustomerSearchHelpOpen">				
</Input>

This is working Fine.

When the Item inside the fragment is selected

Following code gets executed:

When I debug i can see the value in Input. However later it gets cleared. Any pointers would be help ful.

var sCustvar = this._oModel.getProperty("/CustomerToSearch");
	       this._oModel.setProperty(sCustvar, "ABC", true);
	
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Nov 03, 2017 at 09:13 AM

    I think maybe you are setting the property, because of which, the value of your input field is getting cleared.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 03, 2017 at 02:22 PM
    var sCustvar = this._oModel.getProperty("/CustomerToSearch");
    	       this._oModel.setProperty("/CustomerToSearch","ABC", true);

    sCustvar is the value from the binding CustomerToSearch. You are trying to set the value instead of the binding itself. Try using "/CustomerToSearch" in the setProperty.

    Add comment
    10|10000 characters needed characters exceeded