cancel
Showing results for 
Search instead for 
Did you mean: 

Binding incoming oData with radio button group & check button in XML views UI5

former_member230136
Contributor
0 Kudos

Hi Guyz,

I am having trouble while creating a new view with Radio button group & Check button.

Requirement:-

Basically on a multi input field in the (main view), when the user press the value help button, a new view should get open & display the view (attached).

User has to select the value (from the radio button & check boxes) and when SAVE, all these values should come back to the search field (multi input).

Need help here. Searched SCN but couldn't find any dynamically binding of radio button group.

Thanks,

Rohit

Accepted Solutions (1)

Accepted Solutions (1)

saivellanki
Active Contributor
0 Kudos

Rohit,

Here you go, hope this will fulfill your requirement: Plunker

Regards,

Sai Vellanki.

former_member230136
Contributor
0 Kudos

Hey

Thanks Sai.

Now i am able to get the selected values in my 1st view.

Regards,

Rohit

Answers (3)

Answers (3)

former_member230136
Contributor
0 Kudos

Thank you Sergio & Justin for replying.

I am able to show the View. But now how to retrieve the selected table value from 2nd view to 1st view.

I know i have to play with the model but kind of very naive with the javascript.

@Justin

If i create a model in my 2nd view, how will it handshake with the 1st view ?

Can we declare any global model & then access them from both of theviews.

justin_kemp
Participant
0 Kudos

on click of save button create a json model with the updated data(radio button and check box) and use it back in your main view.

SergioG_TX
Active Contributor
0 Kudos

Rohit,

can you share any code attempt you have done?

I can suggest you should use a model to bind to a list of objects (checkbox/radio buttons)

using a model, then you can set the property as selected so that when the end user clicks on it, you know which item is selected