Datacell操作

var myDatacell=document.all.tablename;
myDatacell.addrow();
myDatecell.deleterow();
myDatecell.submit();
myDatecell.reset();
对应页面上的4个按钮
//判断datacell是否有数据修改
isData_Modified(myDatacell)

//取datacell行数据
var myRow=myDatacell.row(i).entity;
myRow.setProperty("xxx");
myRow.getProperty("xxx");

Datacell Table editor:
//设置默认值,是否允许编辑
<TD width="160" name="CUSTNAME" editor="textEditor" modify="true" defaultValue="guest"></TD>
//设置日期格式
<TD width="160" name="BIRTH" editor="calendarEditor" format="yyyy-MM-dd"></TD>
//设置是否排序
<TD width="160" name="SEX" editor="selectEditor"  nosort="true"></TD>
//验证数据类型
<TD width="160" name="PHONE" editor="textEditor" eos_isnull="false" eos_maxsize="8" eos_datatype="phone" eos_displayname="电话号码"></TD>
<TD width="160" name="ADDRESS" editor="textEditor" eos_isnull="true" eos_maxsize="100" eos_displayname="地址"></TD>
//checkBox类型
editor=checkBoxEditor(uncheckedValue:checkedValue)

你可能感兴趣的:(table,电话)