我的代码:
//add validator
var dv1 = {
type: "list",
source: "0,5,10",
inputTitle: "Please choose a number:",
inputMessage: "0, 5, 10",
inCellDropdown: false,
highlightStyle: {
type: "dogEar",
color: "red",
position: "outsideRight",
},
};
//bind a view to the table sheet
var myView = productTable.addView("myView", [
{
value: "oilFishCostId",
width: 200,
caption: "oilFishCostId",
isPrimaryKey: true,
},
{ value: "fCompanyid", width: 200, caption: "fCompanyid" },
{
value: "remarks",
width: 200,
caption: "remarks",
validator: dv1,
},
]);
|