Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Regardomg siteadmin grid selection with different colours

boomar53364785
Level 2
Level 2

Hi,

 

I have a requirement to differentiate the colours in the grid for the different workflows while selecting the grid in the siteadmin. i can override the by adding new classname "x-grid3-row-selected" But i am unable to get the workflow for each grid.

 

I could able to get the JCR path by the below code snippet on row click event. Does we can get the workflow process by passing the JCR Path  Please provide the any views.

                var grid = CQ.wcm.SiteAdmin.getActiveGrid();
                var selections = grid.getSelectionModel().getSelections();

                    // populate workflow options
                        var record = grid.getStore().getAt(rowIndex);
                        var path = record.id;

Thanks in Advance

2 Replies
Lokesh_Shivalingaiah
Community Advisor
Community Advisor

That grid should already have the workflow and its status in the column 'status'. I think you should be able to get that info from there. Did you try that ?

boomar53364785
Level 2
Level 2

I could able to get the status for the workflow which is running. I am unable to get the status already completed.