Skip to Content
0

valueHelp and custom data binding issue using named model

Nov 03, 2017 at 07:42 AM

37

avatar image
Former Member

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);
	
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Arjun Biswas Nov 03, 2017 at 09:13 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Noël Hendrikx Nov 03, 2017 at 02:22 PM
0
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.

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Tried . But its not working

In View File :

app:custvar="/NotSuitableForCust"
0