I tried to use a dynamic form in the portlet.
The date button and listbox don't work.
Below the source code.
Is it a bug or there is something wrong with the code below ?
Could you help ?
isc.ListPalette.create({
ID: "listPalette",
width: 150,
leaveScrollbarGap: false,
fields: [
{name: "title", title: "DataSource Name"}
],
// specify paletteNodes that will create ListGrids bound to specific DataSources
data: [{
title: "Animals",
type: "ListGrid",
defaults: {
dataSource: "animals",
autoFetchData: true,
showFilterEditor: true
}
},{
title: "Supply Categories",
type: "ListGrid",
defaults: {
dataSource: "supplyCategory",
autoFetchData: true,
showFilterEditor: true
}
},{
title: "Supply Items",
type: "ListGrid",
defaults: {
dataSource: "supplyItem",
autoFetchData: true,
showFilterEditor: true
}
},{
title: "Edit Form",
type: "DynamicForm",
defaults:{
autoDraw:false,
dataSource:"supplyItem",
useAllDataSourceFields:true,
fields: [{name:"savebtn", editorType:"ButtonItem", align:"center", width:100, colSpan:4, title:"Save Item", click:"alert(1)"}],
width:650,
numCols:4,
colWidths:[80,200,100,200],
margin:5,
cellPadding:5,
autoFocus:false
}
}]
});
The date button and listbox don't work.
Below the source code.
Is it a bug or there is something wrong with the code below ?
Could you help ?
isc.ListPalette.create({
ID: "listPalette",
width: 150,
leaveScrollbarGap: false,
fields: [
{name: "title", title: "DataSource Name"}
],
// specify paletteNodes that will create ListGrids bound to specific DataSources
data: [{
title: "Animals",
type: "ListGrid",
defaults: {
dataSource: "animals",
autoFetchData: true,
showFilterEditor: true
}
},{
title: "Supply Categories",
type: "ListGrid",
defaults: {
dataSource: "supplyCategory",
autoFetchData: true,
showFilterEditor: true
}
},{
title: "Supply Items",
type: "ListGrid",
defaults: {
dataSource: "supplyItem",
autoFetchData: true,
showFilterEditor: true
}
},{
title: "Edit Form",
type: "DynamicForm",
defaults:{
autoDraw:false,
dataSource:"supplyItem",
useAllDataSourceFields:true,
fields: [{name:"savebtn", editorType:"ButtonItem", align:"center", width:100, colSpan:4, title:"Save Item", click:"alert(1)"}],
width:650,
numCols:4,
colWidths:[80,200,100,200],
margin:5,
cellPadding:5,
autoFocus:false
}
}]
});
Comment