background image
C H A P T E R 5
Stationery
Stationery Summary
5-17
newtRollShowStationeryButton
5
aRollShowButton := { // the Show button in paper roll apps
_proto: newtRollShowStationeryButton,
types: [
typeSym,...
],// can specify type slots of viewDefs
sorter: '|str<|,// sorted alphabetically by Sort function
shortCircuit:
Boolean
,// controls picker behavior
StatScript:
// called when picker item chosen
func(
stationeryItem
)..., // define actions in this method
SetUpStatArray:// override to intercept picker items to
func()..., // be displayed
}
newtRollShowStationeryButton
5
anEntryShowButton := { // Show button in paperroll apps
_proto: newtEntryShowStationeryButton,
types: [
typeSym,...
],// can specify type slots of viewDefs
sorter: '|str<|,// sorted alphabetically by Sort function
shortCircuit:
Boolean
,// controls picker behavior
StatScript:
// called when picker item chosen
func(
stationeryItem
)..., // define actions in this method
SetUpStatArray:// override to change entry displayed
func()..., // can display different view for each
}
Functions
5
RegDataDef(
dataDefSym, newDefTemplate
) // register dataDef
UnRegDataDef(
dataDefSym
) // unregister dataDef
RegisterViewDef(
viewDef, dataDefSym
)// register viewDef
UnRegisterViewDef(
viewDefSym, dataDefSym
)//unregister viewDef
GetDefs(
form, symbols, types
)// returns view or data defs array
GetDataDefs(
dataDefSym
)// returns dataDef
GetAppDataDefs(
superSymbol
)// returns an app's dataDefs
GetEntryDataDef(
soupEntry
) // returns the entry's dataDef
GetEntryDataView(
soupEntry, viewDefSym
)// returns the entry's
// viewDef
GetViewDefs (
dataDefSym
)
// returns viewDefs registered
// with the dataDef
GetDataView (
dataDefSym, viewDefSym
) // returns a specific
// viewDef of the dataDef
© 2007-2024, o7 studio » при воспроизведении материала сайта ссылка обязательна