Expand my Community achievements bar.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

How to handle datasource performance in multifield

Avatar

Level 3

Dears
I found that multifield seems to query the datasource every time when rendering data, which affects performance, is there a way to handle it?

ChaoXiong_0-1661938253758.png

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

You can do it client side as well.

https://aemlab.blogspot.com/2022/01/aemaacs-touch-ui-dialog-dynamic-dropdown.html 

 

Use hidden field to store the authored multifield item dropdown value and set the drop from json response on dialog load.

Arun Patidar

AEM LinksLinkedIn

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

You can do it client side as well.

https://aemlab.blogspot.com/2022/01/aemaacs-touch-ui-dialog-dynamic-dropdown.html 

 

Use hidden field to store the authored multifield item dropdown value and set the drop from json response on dialog load.

Arun Patidar

AEM LinksLinkedIn

Avatar

Community Advisor

Client side has flexibility to improve the performance by populating the drop downs items once(byXHR call) and append drop down items to each multifield item and set the selected value.