Chrome 18.0.1025.152
SC_SNAPSHOT-2012-01-19_v8.2p/PowerEdition Deployment 2012-01-19
Windows 7 64bit
RSA 8.0.4 WAS 8.0
I have a hibernate datasource that includes a field from a related datasource. When I add a dynamicform with canEdit = false, the included field is displaying an editable textbox rather than a <div> label like the rest of the fields.
Datasource
Dynamic Form
SC_SNAPSHOT-2012-01-19_v8.2p/PowerEdition Deployment 2012-01-19
Windows 7 64bit
RSA 8.0.4 WAS 8.0
I have a hibernate datasource that includes a field from a related datasource. When I add a dynamicform with canEdit = false, the included field is displaying an editable textbox rather than a <div> label like the rest of the fields.
Datasource
Code:
isc.DataSource.create({
fields:[
{
title:"TransmissionID",
type:"sequence",
name:"transmitSessionId",
primaryKey:true
},
{
title:"Employee #",
name:"employeeNumber"
},
{
includeFrom:"device.serialNumber",
title:"Device Serial #",
type:"text",
canEdit:"false",
name:"serialNumber",
valueXPath:"device/serialNumber"
},
{
title:"Start",
type:"date",
name:"startTime"
},
{
title:"Finish",
type:"date",
name:"stopTime"
},
{
title:"Telxon Completed",
type:"boolean",
name:"telxonCompleted"
},
{
title:"Server Completed",
type:"boolean",
name:"serverCompleted"
},
{
title:"Shopback Requested",
name:"shopbackFileNumber"
},
{
title:"Transaction Count",
type:"integer",
name:"transactionCount"
},
{
title:"Error Log",
type:"boolean",
name:"errorLogExists"
},
{
hidden:true,
name:"device",
foreignKey:"device.serialNumber"
}
],
ID:"transmission",
serverType:"hibernate"
})
isc.DataSource.create({
inheritsFrom:isc.DataSource.create({
xmlFromConfig:"true",
generatedBy:"SC_SNAPSHOT-2012-01-19_v8.2p/PowerEdition Deployment 2012-01-19",
entityName:"amgreetings.telxondatawedge.rest.bean.Device",
dataSourceVersion:"1",
fields:[
{
type:"text",
name:"landmarkCode"
},
{
type:"text",
name:"loginCode"
},
{
type:"text",
name:"employeeNumber"
},
{
type:"text",
name:"serialNumber"
}
],
ID:"device_inheritsFrom",
serverType:"hibernate"
})
,
fields:[
],
ID:"device",
serverType:"hibernate"
})
Code:
public class DetailGroupForm extends DynamicForm implements HasText{
public DetailGroupForm(){
this.setIsGroup(true);
this.setNumCols(12);
this.setWidth100();
this.setWrapItemTitles(false);
this.setCanEdit(false);
this.setStyleName("detail-group-form");
}
@Override
public String getText() {
return this.getGroupTitle();
}
@Override
public void setText(String text) {
this.setGroupTitle(text);
}
}
Comment