Hi
I need to know the component path when clicking on the ok button.
i have written handler for ok button and it is working fine.
Now, i need to get the component path.
Any help?
Thanks,
Vikram.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi Vikram,
talking of extjs, I assume you are have a dialog?
I you handler add a an onclick listener to your button.
After clicking the button, use the field to fine the dialog.
From the dialog you can get your component path.
Exemple:
function listnerOnButton(field) {
var dialogPath = field.findParentByType("dialog");
//TODO: split path to remove dialog
}
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi Vikram,
talking of extjs, I assume you are have a dialog?
I you handler add a an onclick listener to your button.
After clicking the button, use the field to fine the dialog.
From the dialog you can get your component path.
Exemple:
function listnerOnButton(field) {
var dialogPath = field.findParentByType("dialog");
//TODO: split path to remove dialog
}
Views
Replies
Total Likes
var dialogPath = field.findParentByType("dialog").responseScope.path;
give the current component path which the dialog belongs to.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Like
Replies