mashtable.Initialize(page,"mashtable")
mashtable.ZDepth = ABM.ZDEPTH_2
mashtable.SetTableType(mashtable.EnumTableType.DataTable)
mashtable.IsResponsive = True
mashtable.DataTableKeys = False
mashtable.UseInputControls = True
mashtable.MaterialControls = True
mashtable.DataTableSaveState = False
mashtable.AddColumn("id","id",mashtable.EnumDataType.istext,True,True,True,False)
mashtable.AddColumn("Name","Name",mashtable.EnumDataType.istext,True,True,True,True)
mashtable.AddColumn("JobTitle","Job Title",mashtable.EnumDataType.istext,True,True,True,True)
mashtable.AddColumn("Location","Location",mashtable.EnumDataType.istext,True,True,True,True)
mashtable.AddColumn("Age","Age",mashtable.EnumDataType.isnumeric,True,True,True,False)
mashtable.AddColumn("StartDate","Start Date",mashtable.EnumDataType.isdate,True,True,True,False)
mashtable.AddColumn("StartTime","Start Time",mashtable.enumdatatype.istime,True,True,True,True)
mashtable.AddColumn("Gender","Gender",mashtable.EnumDataType.isselect,True,True,True,True)
mashtable.AddColumn("Active","Active",mashtable.EnumDataType.ischkbox,True,True,True,True)
'mashtable.AddColumn("Email","Email",mashtable.EnumDataType.isemail,True,True,True,True)
'mashtable.AddColumn("History","History",mashtable.EnumDataType.istextarea,True,True,True,True)
'add the data
mashtable.AddRow(1,Array As String(1,"Anele Mashy Mbanga","Chief Software Architect","East London","44","2017-01-01","10:00","Male","1","[email protected]","A little about Mashy"))
mashtable.AddRow(2,Array As String(2,"Usibabale Ozzie Mbanga","Apprentice","East London","14","2017-02-01","11:00","Male","0","[email protected]","A little about Ozzie"))
mashtable.AddRow(3,Array As String(3,"Olothando Orio Mbanga","PA","East London","8","2017-03-02","12:00","Female","0","[email protected]","A little about Orio"))
mashtable.AddRow(4,Array As String(4,"Esona Ernesto Mbanga","Assistant","East London","7","2017-04-01","13:00","Female","0","[email protected]","A little about Ernesto"))
mashtable.DataTableSelect = True
mashtable.DataTablePageSize = 3
page.Cell(1,1).AddComponent(mashtable.ABMComp)