cancel
Showing results for 
Search instead for 
Did you mean: 

sap.m.Select not showing value when model updated

former_member602416
Participant
0 Kudos

Hi,

Below field of form is displayed when clicked on Edit on form.

ctsProjects model property is set in handleEdit function in controller like below. In debugging data looks good in ctsproject model but form Select field doesn't display any value. Can anyone spot mistake here?


Accepted Solutions (1)

Accepted Solutions (1)

former_member221786
Active Participant
0 Kudos

Hi Swati,

your aggregation binding should refer to an array not an object.

So for example with the follwing code you get one entry in your select control:

this.ctsProjects.setProperty("/sapTransportTargets", [
{ systemName: "XXX", caption: "XXX" }]);

Hope this helps!

Answers (1)

Answers (1)

ThorstenHoefer
Active Contributor
0 Kudos

Hi swati.garg4

You can try to call the refresh Method of the Model after setting the property.

this.ctsProjects.refresh();