cancel
Showing results for 
Search instead for 
Did you mean: 

how to retain the checked checkbox data in table across all the tabparfilter in sap ui5?

Ranjith
Participant
0 Kudos

i have multiple tabparfilter. Whenever i click the anyone of the tabparfilter it gives the filter item list in table according to the filter. i want select some item across all the filter using checkbox.i'm using "Multiselect" for showing checkboxes.but whenever i select some checboxes in the one tabparfilter and move on to the another tabparfilter the checked data in the previous tab bar is going to unchecked.So how to retain the checked checkbox data across all the tabpar.

If u have any doubt in the question pls reply back...

Accepted Solutions (0)

Answers (1)

Answers (1)

CristianBabei
Contributor
0 Kudos

Hello,

Take a look at TableSelectDialog the remember type, you have to enable the rememberSelections="true"

Regards.

Ranjith
Participant
0 Kudos

Where i have to enable. Wheather is in table or where?

and this rememberSelections is only for "sap.m.TableSelectDialog".

i am using sap.m.Table and mode = "MultiSelect".

Whenever i am selecting the checkbox it should be same as checked even i move on the another tab par.it should be unchecked while i'm clicking the 'submit' or 'cancle' button.

CristianBabei
Contributor
0 Kudos

Only saw it to be able on that type of table.

For a normal table, probably you will have to manage youself in code.

But anyway, what you do when change of tab? you refresh model or bind the table?

Ranjith
Participant
0 Kudos

i have different category item across all the tab and i have to select some data in the different and save it when i am clicking the save button.Whenever i change the tab the model is refreshed and give the filter data according to that category in the table. so i want to select and save some data in every category.whenever i checked some data in the one tab(category) and move on to another tab(category) i cannot able to retain the selected data and also when i came back to same tab(before selected category) the checked checkboxes are now unchecked.How can i do it.

CristianBabei
Contributor
0 Kudos

Ok, got it.

For this, I would recommend to do like a shopping cart:

You select the items, and when you going to change of tab, ask the users, "Want to process those items" or whatever,

and read them and get all the selected items in local.

Also have a button , to display that selected items, in a pop-up

Think, with this way, can solve your problem, and I think it's a nice solution 🙂

Hope this helps