I’ve been fighting with this for a day now. Ultimately I’ll be using the form to received data via a dataprocessor and a custom connector. However I can’t get this example to load at all.
What am I missing here?
this.cellBlocks = this.layout.cells("c");
this.cellBlocks.setText("Stored Blocks");
this.cellBlocks.setHeight(100);
var BlockFormStr = [
{ type:"settings" , labelWidth:80, inputWidth:250, position:"absolute" },
{ type:"label" , name:"form_label_1", label:"Total Blocks Stored", width:175, labelWidth:175, labelAlign:"left", labelLeft:45, labelTop:5 },
{ type:"label" , name:"form_label_2", label:"Timestamp of first stored Block", width:250, labelWidth:250, labelAlign:"left", labelLeft:265, labelTop:5 },
{ type:"input" , name:"rowcount", labelWidth:0, labelHeight:0, labelAlign:"left", inputWidth:125, labelLeft:250, labelTop:50, inputLeft:50, inputTop:25, disabled:"true" },
{ type:"input" , name:"earliest", labelWidth:0, labelHeight:0, labelAlign:"left", labelLeft:258, labelTop:46, inputLeft:270, inputTop:25, disabled:"true" }
];
this.BlockForm = this.cellBlocks.attachForm(BlockFormStr);
this.BlockForm.load('<data><rowcount>5</rowcount><earliest>2014-11-21 22:13:56.802</earliest></data>');