How to save the data automatically with out clicking on the done button in cqDialog | Community
Skip to main content
New Participant
Feb 23, 2023 6:09 PM UTC
Solved

How to save the data automatically with out clicking on the done button in cqDialog

Hi Team,

  I want to save the data (authored by content authors) on the dialog automatically with out clicking on the submit button.

 

Thanks,

Pradeep Kumar.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Feb 24, 2023 10:07 AM UTC

This is gonna happened once in 100000. There is always a monitoring from Adobe and Production always has maintenance mode.

 

You are trying over engineering here. OR If your dialogs are that big then problem is the design.

Arun Patidar

4 replies

Umesh_Thakur
New Participant
Feb 24, 2023 4:05 AM UTC

Not sure why you need this but you can as :

1. create a js with extra clientlibs for the dialog;

2. read all the authored properties in the js;

3. create one servlet, which will save the dialogs data in jcr;

4. now make ajax call to the servlet with all the authored value;

one sample example you can see in image core component, which is making call to read asset infromation from the DAM.

 

Hope this helps

Umesh Thakur

 

Translate
New Participant
Feb 24, 2023 5:12 AM UTC

Thanks for your help. Whenever there is an outage from Adobe, I have lost all my data which I added in the dialog prior to that of outage. Inorder to prevent this, I need to save all the data in the dialog in the jcr without clicking on the submit button. This will help me, eventhough there is an outage from Adobe, when I reopen the dialog again, I can see my data.

Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Feb 24, 2023 10:07 AM UTC

This is gonna happened once in 100000. There is always a monitoring from Adobe and Production always has maintenance mode.

 

You are trying over engineering here. OR If your dialogs are that big then problem is the design.

Translate
Arun Patidar
Saravanan_Dharmaraj
New Participant
Feb 23, 2023 8:57 PM UTC