cancel
Showing results for 
Search instead for 
Did you mean: 

Auto Selection on Sap.m.Table values

ganeshbabu_kd
Explorer
0 Kudos

Hi All,

How to implement Auto selection on sap.m.Table.

Scenario :

I have sap.m.Table which is binded from Odata services. and the table entries have some duplicate products with different region price value. if the users select any of the products from the table list.

Automatically related products need to select on check box ( Condition : select same product name like "Headphone" in the attached sap.m.Table output).

Will it be possible to implement this to JQuery or suggest any other way..

Thanks in advance.

-Ganesh

Accepted Solutions (1)

Accepted Solutions (1)

ganeshbabu_kd
Explorer
0 Kudos

Hi,

Can we use on selectionchange method in sap.m.table for this case... ?

Regards

Ganesh Babu

former_member182862
Active Contributor
0 Kudos

HI Ganesh

Here is an example with JSON (not XML). hope that you can use it as a reference.

-D

ganeshbabu_kd
Explorer
0 Kudos

Hi Dennis.

Thanks for your reply and input

I will try to implement this in to my code and get back to you.

Regards

Ganesh Babu

0 Kudos

Hi Ganesh,

I did small changes in the example shared by Dennis.

1. Merge duplicates rows having same name

2. Handle selection/de-selection of the rows

Modified example for your reference.

Regards,

Parag

ganeshbabu_kd
Explorer
0 Kudos

Hi Parag and Dennish,

Thanks a lot for your inputs and comments

i have implemented this example scenario in my working solution.

Have a Happy coding..

Regards

Ganesh Babu

Answers (2)

Answers (2)

ganeshbabu_kd
Explorer
0 Kudos

Hi,

Does anybody suggest any comments / ideas for this scenario?.

Thanks.

Ganesh Babu

former_member182862
Active Contributor
0 Kudos

hi Ganesh

Do you have json or XML in your oData model?

Thanks

-D

ganeshbabu_kd
Explorer
0 Kudos

Hi Dennis,

Thanks for your reply

I have configured XML structure in my oData model.

-Ganesh