Expand my Community achievements bar.

SOLVED

null value by dialog.path

Avatar

Level 5

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>
1 Accepted Solution

Avatar

Correct answer by
Level 10

Can you package up your CQ app and component and email it to me. I will look at it and find out what is happening. Email to scottm@adobe.com

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Can you package up your CQ app and component and email it to me. I will look at it and find out what is happening. Email to scottm@adobe.com