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

Issue with create folder dialog in commerce area

FR20
Level 1
Level 1

Hi,

 

I have overlaid the create folder dialog to, under a certain path, create a new property for the folder, and have that property's value automatically generated when the folder is created. This was done with a taglib that is called only called under a certain condition (using a granite rendercondition so that this only happens under that path), and it generates a random number that is assigned to that property of the created folder.

 

This method has worked for the most part, but I have noticed that, if I create two folders in the same location, the taglib is only triggered the first time. If I refresh the page between creating the folders, there is no problem. If I create a folder and then a subfolder, there is no problem. But if I create two folders in the same location, only the first gets that randomly generated number in that property. Does anyone have an idea on what might be the reason for this? Thanks!

 

 

2 Replies
Arun_Patidar
Community Advisor
Community Advisor

Hi

granite rendercondition works on page load, if the page is already loaded and you navigate within older then there will not be any effect.

FR20
Level 1
Level 1

Hi Arun,

 

Thank you! I was looking for alternatives, such as the one you suggested here:

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/generating-random-number-f...

 

Do you think this approach would be preferable or would there be a way to leverage the taglib that we are using, ensuring it is triggered every time we open the create folder dialog (even without refreshing the page)?