PDA

View Full Version : Pathfield as a editor for elements in EditorGridPanel, value not getting restored



niharikabhattraj
29 May 2013, 2:42 AM
I have provided a pathfield as a editor to the element in Formpanel and the issue is that after the path is selected in the dialog, the value is not being restored to the element.(Below is the code snippet.)


var editable_pathfield = new CQ.form.PathField({
id:"mypathfield",
name:"./urlfield",
value:this.urlfield,
rootPath: "/content/dam",
"selectOnFocus":true

});


var urlsCM = new CQ.Ext.grid.ColumnModel( [ {
header : "FE BRAND PRODUCT",
width:60,
dataIndex : 'feBrandProduct'

}, {
header : "PATH",
dataIndex : 'jcr:path',
hidden : true

}, {
header : "URL To Enter",
width:200,
dataIndex : 'content',
editor : editable_pathfield
}
]);


var urlsGrid = new CQ.Ext.grid.EditorGridPanel({
id : gridId,
title : gridTitle,
store : urlsStore,
frame : false,
autoWidth : true,
height: 400,
clickstoEdit : 1,
cm : urlsCM,


Please Help.

mitchellsimoens
31 May 2013, 5:05 AM
What is CQ? What is PathField?