extools.ui.custom_table

Custom Table UI

A simple UI for any custom table. Simply point this UI class at any table and it will render the fields for you.

If poplar_screenperms is installed, a permission code can be provided to control access to the screen or its fields.

class extools.ui.custom_table.CustomTableUI(tablename, permcode)[source]

Bases: object

CustomTableUI Class

Create a new custom UI for the given table and permissions code.

Parameters:
  • tablename (str) – Custom Table name
  • permcode (str) – Permissions code
from extools.ui.custom_table import CustomTableUI

TABLENAME = "MYTABLE"
PERMISSION_CODE = "VIMYTA"

def main(*args, **kwargs):
    CustomTableUI(TABLENAME, PERMISSION_CODE)
CheckSaveRecord(cb=None)[source]
NewHeaderLoaded()[source]
OnDocumentNumberChanged()[source]
UnsavedChangesExist()[source]
UpdateButtons()[source]
UpdateLookupLabel(fname)[source]
UpdateLookupLabels()[source]
addButtons()[source]
createScreen()[source]
csr_default(bProceed)[source]
ds_onAfter(e, fieldName, value)[source]
ds_onAfterOpen()[source]
ds_onBefore(e, fieldName, value)[source]
fecKeyField_click(btnType)[source]
getFieldControlByName(fname)[source]
isKeyField(fieldName)[source]
loadTable(tableName)[source]
name_finder_cancel()[source]
name_finder_ok(e)[source]
name_finder_ok_part2(bProceed)[source]
onBtnClose_Click()[source]
onBtnClose_Click_part2(bProceed)[source]
onBtnDelete_Click()[source]
onBtnDelete_confirmed(r)[source]
onBtnSave_Click()[source]
onConfirmDelete(r)[source]
onConfirmSave(r)[source]
saveRecord()[source]
class extools.ui.custom_table.EnhancedFieldControl(ui, fec)[source]

Bases: object

calcFinderFilter()[source]
click(btnType)[source]
finder_cancel()[source]
finder_ok(e)[source]