cancel
Showing results for 
Search instead for 
Did you mean: 

UI5 Example dropdown in Dialog fragment

gary_king2
Participant
0 Kudos

Does anyone know of an example where a dropdown, either <Select> or <DropDownBox> is being used in Dialog (Fragmented) XML, and where the values are NOT hard-coded in the XML itself.

All the examples I can see in Explored, and elsewhere, seem to have hard coded the values in the XML itself, and what I'm looking for is how they prepare the data in the controller and bind it.

So, I have XML/controller which then opens a Dialog to display further information. I have lots of dropdown values in standard Views, but the Dialog seems to be more challenging, and trying to find a good example is proving very difficult.

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos

there is no difference for your case(xmlview or fragment),

what's your problem now?

create the the dialog and add it as dependent to the view, that should be all you have to do.

gary_king2
Participant
0 Kudos

If that is the case Jun, then why are there NO, and I mean NO examples, anywhere on the internet?. Even the Explored Dialog examples hard code the drop down values within the XML.

I'll test it further in that case, but, I am pretty sure there are subtle differences between using a dropdown on a Dialog compared to a standard XML view. Will get back to this posting when I am 100% sure of my facts. 😉

junwu
Active Contributor
0 Kudos

WHY EVERYTHING NEEDS AN EXAMPLE?