SmartClient 8 release, Firefox 3.6.13
Simply create a staticText and assign to defaultValue the result of function Date.create(), the result is "Invalid Date".
Simply create a staticText and assign to defaultValue the result of function Date.create(), the result is "Invalid Date".
Code:
isc.DynamicForm.create({
ID: "startStopForm",
valuesManager:"infoValuesManager",
//dataSource: "registerDataSource",
cellPadding: 5,
width: 200,
height: 90,
numCols:2,
//colWidths: [100, "*"],
titleAlign:"center",
//titleOrientation:"top",
fields:[
{title:"Note", name:"note", type:"text", width:200},
{title:"Started", name:"started", type:"staticText", width:200, defaultValue:isc.Date.create({})},
{title:"Time", name:"time", type:"staticText", disabled:true, showDisabled:false, width:200, defaultValue:"00:00:00", textBoxStyle:"clockText"}
]
});
Comment