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
BedrockMission!

Learn More

View all

Sign in to view all badges

Sort aem 6.5 inbox based on column

Avatar

Avatar
Give Back 5
Level 2
manisha594391
Level 2

Likes

4 likes

Total Posts

43 posts

Correct Reply

1 solution
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 5
Ignite 3
View profile

Avatar
Give Back 5
Level 2
manisha594391
Level 2

Likes

4 likes

Total Posts

43 posts

Correct Reply

1 solution
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 5
Ignite 3
View profile
manisha594391
Level 2

10-02-2021

Hi Team,

I have a requirement to sort aem 6.5 inbox based on custom column.

OOTB availability, steps-

1. Navigate to /aem/inbox

2. Select settings from right panel and opt sort

3. It opens a dialog which shows the fields which could be sorted (populated via /libs/cq/inbox/content/inbox/dialogs/inboxsettingsdialog/items/inboxsettingsform)

 

Now ,in the above dropdown I want my custom column name to be added and available for sorting.

I was able to achieve adding the new column in the dropdown. However the sort is not working as expected.

 

On click of save of this dialog it saves the data to /libs/cq/inbox/gui/components/inbox/preferences.json and the submitted json looks like below-

manisha594391_0-1612996458846.png

 

I wanted to understand in order to do this customization, what should be the sortByProperty value. Also, which ootb aem service gets invoked to do the sorting

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

510 likes

Total Posts

645 posts

Correct Reply

213 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

510 likes

Total Posts

645 posts

Correct Reply

213 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile
Vijayalakshmi_S
MVP

12-02-2021

Hi @manisha594391,

On submit of Inbox Settings dialog (after selecting sort property and sort order), this preference is saved to user node via a POST call to user path/preferences

(Eg: http://localhost:4502/home/users/8/8knGQKO0VU9chrDmTnwz/preferences - Cross check your preferences node in CRXDE after saving settings dialog, you should see the property named cq.inbox.settings ) 

This preferences are considered for Filtering while rendering the Active Inbox items and the implementation is hidden.

 

High level detail of OOTB flow for Inbox items display.

Customization in this case is like rewriting whole of the implementation. 

Answers (0)