SIMPOL Documentation

Chapter 92. tableview

ttableview

Description

Type Tags

None

Object Value

Objects of type ttableview have no value, and it is an error to try to get or set this value.

ttableview.new()

Description

Prototype

ttableview.new ( ttableview me, integer width, integer height, type(db1table) table, type(db1index) idx, type(wxcontainer) window, integer highlightbackcolor, integer oddbackcolor, integer evenbackcolor, string defboolean, string definteger, string defnumber, string defdate, string deftime, string defdatetime, SBLlocaledateinfo datelocale, SBLNumSettings numlocale, wxfont font, type(db1record) record, tdataview dataview, boolean useview, string inifilename, integer error )

Parameters

ParameterDefault valueType nameDescription
meNonettableview
widthNoneinteger
heightNoneinteger
tableNonetype(db1table)
idxNonetype(db1index)
windowNonetype(wxcontainer)
highlightbackcolor12632256integer
oddbackcolor16777215integer
evenbackcolor16777168integer
defbooleanT|Fstring
definteger.string
defnumber999999.00string
defdateyyyy.0m.0dstring
deftimehh:mm:ssstring
defdatetimeNonestring
datelocaleNoneSBLlocaledateinfo
numlocaleNoneSBLNumSettings
fontNonewxfont
recordNonetype(db1record)
dataviewNonetdataview
useview.falseboolean
inifilenameNonestring
errorNoneinteger

Properties

PropertyTypeDescription
_type(*)
__type(*)
_privatettableviewprivate
assignfilterobjectfunction
clearfunction
columninfoarray
columninfoviewarray
currentrowinteger
currentrowmodifiedboolean
currentviewtdataview
datelocaleSBLlocaledateinfo
defbooleanstring
defdatestring
defdatetimestring
defintegerstring
defnumberstring
deftimestring
deleterecordfunction
displayformatstring
displaymessagesboolean
duplicaterecordfunction
evenbackcolorinteger
filterdataform1filter
fontwxfont
formdataform1
getcolinfofunction
getindexdisplayformatfunction
griddataform1grid
gridinfottableviewgridinfo
heightinteger
hidefunction
highlightbackcolorinteger
idxtype(db1index)
inifilenamestring
isreadonlyboolean
lastusedrecordtype(db1record)
messagetitlestring
newrecordfunction
numlocaleSBLNumSettings
oddbackcolorinteger
ondeleteevent
onnewrecordevent
onsaveevent
recordsarray
resizefunction
saverecordfunction
selectcurrentfunction
selectfirstfunction
selectkeyfunction
selectlastfunction
selectnextfunction
selectnextpagefunction
selectpreviousfunction
selectpreviouspagefunction
setdataviewfunction
setfilterfunction
setinitialrecordfunction
setlastusedrecordfunction
setreadonlyfunction
settablefunction
showfunction
showviewfunction
tabletype(db1table)
temprecordtype(db1record)
typetype
updategridrowfunction
useviewboolean
widthinteger
windowtype(wxcontainer)

Methods

assignfilterobject()

Description

Prototype

ttableviewvar.assignfilterobject ( ttableview me, dataform1filter dffilter )

Parameters
ParameterDefault valueType nameDescription
meNonettableview
dffilterNonedataform1filter

clear()

Description

Prototype

ttableviewvar.clear ( ttableview me )

Parameters
ParameterDefault valueType nameDescription
meNonettableview

deleterecord()

Description

Prototype

ttableviewvar.deleterecord ( ttableview me, integer error )

Parameters
ParameterDefault valueType nameDescription
meNonettableview
errorNoneinteger

duplicaterecord()

Description

Prototype

ttableviewvar.duplicaterecord ( ttableview me, integer error )

Parameters
ParameterDefault valueType nameDescription
meNonettableview
errorNoneinteger

getcolinfo()

Description

Prototype

ttableviewvar.getcolinfo ( ttableview me )

Parameters
ParameterDefault valueType nameDescription
meNonettableview

getindexdisplayformat()

Description

Prototype

ttableviewvar.getindexdisplayformat ( ttableview me )

Parameters
ParameterDefault valueType nameDescription
meNonettableview

hide()

Description

Prototype

ttableviewvar.hide ( ttableview me )

Parameters
ParameterDefault valueType nameDescription
meNonettableview

newrecord()

Description

Prototype

ttableviewvar.newrecord ( ttableview me )

Parameters
ParameterDefault valueType nameDescription
meNonettableview

resize()

Description

Prototype

ttableviewvar.resize ( ttableview me, integer width, integer height )

Parameters
ParameterDefault valueType nameDescription
meNonettableview
widthNoneinteger
heightNoneinteger

saverecord()

Description

Prototype

ttableviewvar.saverecord ( ttableview me, integer error )

Parameters
ParameterDefault valueType nameDescription
meNonettableview
errorNoneinteger

selectcurrent()

Description

Prototype

ttableviewvar.selectcurrent ( ttableview me, type(db1index) index, boolean lock, integer error )

Parameters
ParameterDefault valueType nameDescription
meNonettableview
indexNonetype(db1index)
lock.falseboolean
errorNoneinteger

selectfirst()

Description

Prototype

ttableviewvar.selectfirst ( ttableview me, boolean lock, boolean setcolwidths, integer error )

Parameters
ParameterDefault valueType nameDescription
meNonettableview
lock.falseboolean
setcolwidths.falseboolean
errorNoneinteger

selectkey()

Description

Prototype

ttableviewvar.selectkey ( ttableview me, anyvalue value, boolean lock, integer error )

Parameters
ParameterDefault valueType nameDescription
meNonettableview
valueNoneanyvalue
lock.falseboolean
errorNoneinteger

selectlast()

Description

Prototype

ttableviewvar.selectlast ( ttableview me, boolean lock, integer error )

Parameters
ParameterDefault valueType nameDescription
meNonettableview
lock.falseboolean
errorNoneinteger

selectnext()

Description

Prototype

ttableviewvar.selectnext ( ttableview me, boolean lock, integer error )

Parameters
ParameterDefault valueType nameDescription
meNonettableview
lock.falseboolean
errorNoneinteger

selectnextpage()

Description

Prototype

ttableviewvar.selectnextpage ( ttableview me, integer error )

Parameters
ParameterDefault valueType nameDescription
meNonettableview
errorNoneinteger

selectprevious()

Description

Prototype

ttableviewvar.selectprevious ( ttableview me, boolean lock, integer error )

Parameters
ParameterDefault valueType nameDescription
meNonettableview
lock.falseboolean
errorNoneinteger

selectpreviouspage()

Description

Prototype

ttableviewvar.selectpreviouspage ( ttableview me, integer error )

Parameters
ParameterDefault valueType nameDescription
meNonettableview
errorNoneinteger

setdataview()

Description

Prototype

ttableviewvar.setdataview ( ttableview me, array fieldlist, string name, tdataview dataview, boolean useview, integer error )

Parameters
ParameterDefault valueType nameDescription
meNonettableview
fieldlistNonearray
nameNonestring
dataviewNonetdataview
useview.trueboolean
errorNoneinteger

setfilter()

Description

Prototype

ttableviewvar.setfilter ( ttableview me, string filter, string errtext, integer errindex )

Parameters
ParameterDefault valueType nameDescription
meNonettableview
filterNonestring
errtextNonestring
errindexNoneinteger

setinitialrecord()

Description

Prototype

ttableviewvar.setinitialrecord ( ttableview me, type(db1record) r, integer error )

Parameters
ParameterDefault valueType nameDescription
meNonettableview
rNonetype(db1record)
errorNoneinteger

setlastusedrecord()

Description

Prototype

ttableviewvar.setlastusedrecord ( ttableview me, type(db1record) record )

Parameters
ParameterDefault valueType nameDescription
meNonettableview
recordNonetype(db1record)

setreadonly()

Description

Prototype

ttableviewvar.setreadonly ( ttableview me, boolean setreadonly )

Parameters
ParameterDefault valueType nameDescription
meNonettableview
setreadonly.falseboolean

show()

Description

Prototype

ttableviewvar.show ( ttableview me )

Parameters
ParameterDefault valueType nameDescription
meNonettableview

showview()

Description

Prototype

ttableviewvar.showview ( ttableview me, boolean show )

Parameters
ParameterDefault valueType nameDescription
meNonettableview
show.trueboolean

updategridrow()

Description

Prototype

ttableviewvar.updategridrow ( ttableview me, integer row, type(db1record) r )

Parameters
ParameterDefault valueType nameDescription
meNonettableview
rowNoneinteger
rNonetype(db1record)