Skip to main content
Participating Frequently
March 16, 2018
Question

Dialog Save State - Persistence

  • March 16, 2018
  • 1 reply
  • 319 views

Hi

I have a c++ filter plugin which is invoking an HTML5 extension which has a modal dialog window with controls. I want to save the state of controls on the modal dialog. So to do so I have tried to make my extension persistent by adding this code on onloaded()

var event = new CSEvent("com.adobe.PhotoshopPersistent", "APPLICATION");

event.extensionId = csInterface.getExtensionID();

csInterface.dispatchEvent(event);

But it didn't worked as expected. For testing purpose I am running extension directly even then it didn't persisted the values. So I tried to dispatch this event on checkbox click from modal dialog itself, but that also didn't helped.

Please help,its urgent.

This topic has been closed for replies.

1 reply

Kukurykus
Legend
March 16, 2018

That's part of coding Davide_Barranca should help you with...

query111Author
Participating Frequently
March 18, 2018

Hi
Thanks for the revert. I have followed Davide Barranca's link on persistence
https://www.davidebarranca.com/2014/02/html-panels-tips-9-persistence/

and implemented above code. I am trying to figure out what I have done wrong.