I have panel in my dialog, & a afterrender listener on panel. I am not able to get the dialog.path in this listener. Below is my code.
function()
{
var count;
var select2opts = [];
var dialog = this.findParentByType('dialog');
var dropdown = this.getComponent("dropdown1");
console.log(dialog.path);
console.log(dialog);
console.log(dropdown);
}
I am able to get dialog object in which i can see the property path which i require. But on console dialog.path prints null. Any Idea. dialog.path should be like content/site/uk/en/site1/jcr:content/par-followlink/tabs
Below is sample dialog.xml
<items jcr:primaryType="cq:Widget" xtype="tabpanel"> <items jcr:primaryType="cq:WidgetCollection"> <tabcontrolpanel //props <items jcr:primaryType="cq:WidgetCollection"> <items jcr:primaryType="cq:WidgetCollection"> <typeconfigs //props <fieldConfigs jcr:primaryType="cq:WidgetCollection"> <option //props <optionval //prop </fieldConfigs> </typeconfigs> <displayoptions //props <options jcr:primaryType="cq:WidgetCollection"> <one jcr:primaryType="nt:unstructured" text="Click to refresh tabs list." value="on"/> </options> </displayoptions> <opentab //props <options jcr:primaryType="cq:WidgetCollection"> <one //props </options> </opentab> </items> </items> <listeners jcr:primaryType="nt:unstructured" afterrender="Here Code Applies that i sent"/> </tabcontrolpanel> </items> </items>