Jam.py documentation

Field Editor Dialog

Use the Field Editor Dialog to create a new or modify an existing field.

Field Editor Dialog

The Field Editor Dialog have the following fields:

  • Caption - the field name that appears to users.
  • Name - the name of the field that will be used in programming code to get access to the field object. It should be a valid python identifier.
  • Type - type of the field — one of the following values:
    • TEXT
    • INTEGER
    • FLOAT
    • CURRENCY
    • DATE
    • DATETIME
    • BOOLEAN
    • BLOB
  • Size - the size of the field for text fields.
  • Default value - the default value of the field, for boolean fields use 0 or 1
  • Required - if this checkbox is checked, the post method will raise an exception if this field is empty. See Modifying datasets.
  • Read only - this checkbox is checked, the field value can not be changed in the interface controls created by the create_inputs method on the client.
  • Lookup item - the lookup item for Lookup fields
  • Lookup field - the lookup field for Lookup fields
  • Master field - the master field for Lookup fields
  • Typeahead - if this checkbox is checked, typeahead is enabled for the lookup field
  • Lookup values - use it to specify a lookup list for an integer field
  • Alignment - defines the alignment of the text in the interface controls, created by the create_inputs method on the client.
  • Placeholder - use this attribute to specify a placeholder, that will be displayed by input, created by the create_inputs method on the client.
  • Help - if some text/html message is specified here, there will be an question mark displayed to the right of the input, such that, when user click this mark, the popup will appear displaying this message.
  • Default - if this checkbox is checked, in the Default code a search is enabled in the table for this field.