How can i get the dialog using Granite library in AEM 6.2?? | Community
Skip to main content
saurabhg4318802
Level 2
April 12, 2017
Solved

How can i get the dialog using Granite library in AEM 6.2??

  • April 12, 2017
  • 1 reply
  • 1226 views

Hi ,

I am doing some migration of a functionality from classic UI to touch UI.

Trying to migrate this ext js code to granite library:

var contentWindow = CQ.utils.WCM.getContentWindow();var propsDialogConfig = contentWindow.CQ.WCM.getDialogConfig(dialogPath);if (!propsDialogConfig.success) { propsDialogConfig.success = function(form, action) { CQ.Util.reload(CQ.WCM.getContentWindow()); }; }var propsDialog = CQ.WCM.getDialog(propsDialogConfig,dialogPath); propsDialog.fieldEditLockMode = true; propsDialog.loadContent(CQ.WCM.getPagePath()+ "/jcr:content"); propsDialog.setTitle(CQ.I18n.getMessage("Page Properties of {0}", CQ.WCM.getPagePath())); propsDialog.show();

Not able to get same object (Like CQ.utils.WCM.getContentWindow()) using granite library (for touch ui). 

Any help will be appriciable.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

"Trying to migrate this ext js code to granite library:"

I do not believe you can write app logic that will port old code to the new granite code. They are completely different programming languages. 

1 reply

smacdonald2008
smacdonald2008Accepted solution
Level 10
April 12, 2017

"Trying to migrate this ext js code to granite library:"

I do not believe you can write app logic that will port old code to the new granite code. They are completely different programming languages.