cancel
Showing results for 
Search instead for 
Did you mean: 

Smart Field Value Help

02-05-2018 10:09 PM
developerone Contributor
2055 views 3 comments Go to solution
SAP Managed Tags
Subscribe

Hello,

I have a smart field in my UI5 application which has value help which returns Key and Description. When using the F4 help the smart field gets updated with the chosen value say (key field). I have created a normal input field which needs to be updated with the description of the input selected by user.

How can I achieve this as I do not find any control over the OK button of the value help attached to the smart field.

Thanks,

Kabir

Accepted Solutions (1)

Accepted Solutions (1)

sagarikagattu
Participant
0 Likes

You can try the below code.

in View

<form:content>

<smartField:SmartLabel labelFor="idPrice"/>

<smartField:SmartField value="{Price}" id="idPrice" change="onSelect"/>

<Input id="input" editable="false"/>

</form:content>

In Controller

onSelect: function(evt){

var oView = this.getView();

var pri = evt.getParameter("value");

oView.byId("input").setValue(pri);

}

Answers (2)

Answers (2)

developerone
Contributor
0 Likes

Thanks for the response Sagarika.

The following annotation in my ABAP CDS view helped.

ObjectModel.updateEnabled: true

Regards,

Kabir

sagarikagattu
Participant
0 Likes

Hello,

did you try with change event on SmartField?

Regards,

Sagarika.