Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Nickel Contributor
Posts: 57
Registered: ‎03-18-2010

Tasklet: Get selected rows in a group



How can I get the selected rows from a group?


I made this:



// Get contexts GroupContextService groupContextService = ApplicationContext.Current.Services.Get<IGroupContextService>() as GroupContextService; CachedGroup currentGroup = groupContextService.GetGroupContext().CurrentGroupInfo.CurrentGroup; GroupInfo gInfo = currentGroup.GroupInformation; // Get all rows DataTable dt = currentGroup.GroupDataTable.Copy(); //Get the selection service ISelectionService srv = SelectionServiceRequest.GetSelectionService(); // GetSelectionContext need a key... ISelectionContext selectionContext = srv.GetSelectionContext("");


My problem is the paremeter in the GetSelectionContext method...






Libert Damien
Copper Elite Contributor
Posts: 39
Registered: ‎07-13-2010

Re: Tasklet: Get selected rows in a group

I used this string as paramter for GetSelectionContext:







For my task, it worked. Maybe it helps you?