Skip to Content
0
Former Member
Feb 15, 2016 at 08:21 PM

Bind oData dynamically depending on the combobox selected value

418 Views

Hello folks

I have a master-detail structure, but I need a second level before display the data, like this:

Main menu - Detail page with one combo box and the details been changed when the combobox is selected.

I still can change the data structure, but until now it is like this:

PrincipalSet is the main menu, all the data within this structure is its details, but there will be a lot of lines of the structure "Relatorios" (reports in english) and each line of "Relatorios" will have a lot of structures "DetalhesSet"

So, I need to show in the screen the DetalhesSet collection depending on the Relatorios value that the user selected at the Combobox

My combobox sourcecode:

The javascript code trying to fill out the object to display the data collection (it is not working):

The object supposed to display the data to the user:

Attachments

Sem título.png (27.3 kB)
Sem título.png (47.6 kB)
Capturar.PNG (7.3 kB)
Capturar.PNG (14.3 kB)
Capturar.PNG (34.1 kB)