Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8635

Re: 2 Models, 1 Control (HTMLView)

$
0
0

Hey Rahil

 

Thanks for your patience.

 

My use case is similar to what you might see on some signup website or wherever you need to put in your address.

 

You usually have some fields (name, street, city), and a drop down where you can select your country.

And then there's the submit button.

 

Now I have a Model where I store country names and code (United States/USA;DE/Germany;IN/India etc.). I use this model to create that dropdown (sap.m.Select - not a table).

 

So I'm binding this country model to this select-component. And at the same time, since I need your name, address and your country and I want a model to store all that information - I want to bind the userInformation model to the value of that sap.m.Select component (preferably the ID (so USA, DE, ..).

 

So I use one model to fill the selection-list and I want to use to bind the selected value to another model.

 

I hope this helps

 

Thanks!

 

Regards,

Phil


Viewing all articles
Browse latest Browse all 8635

Trending Articles