Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Introduction


English

Advanced Grid is best described as a Grid with rich inline editing transformation.

Depending on the target field, the Advanced Grid element would mimic the original target type for accurate and richer data entry capability.

The Advanced Grid is only available on Professional and Enterprise Edition.

Get Started

The easiest way to see how the Advanced Grid works is to use the existing built-in App Expenses Claims and create a new form to mimic an existing form in the app. Here are the steps:

...

...

  1. Start the Joget Server and open the App Center.

  2. Log in as admin and click on the pencil icon on the Expenses Claim to open the Design App. (see Figure 1)

    Image Added
    Figure 1

  3. Click on "Create new form" and fill up the Form Details as follows (see Figure 2):
      1. Form ID: advGrdTest
      2. Form Name: Advanced Grid Test
      3. Table Name: test

    Image Added
    Figure 2

  4. Click on the Save button and you will be directed to the Form Builder.

  5. Drag and drop the Advanced Grid element on to the canvas.

  6. Hover the mouse over the Advanced Grid element on the canvas and click on Edit to open up the Edit Advanced Grid properties

...

  1. .

  2. Fill up

...

  1. the Edit Advanced Grid properties as follows and click on OK (see Figure 3):
    1. ID : entries
    2. Form: Expense Claim Entry
    3. Columns : 

      Field ID*LabelFormat Type
      dateDateDate
      categoryCategory
      purposePurpose
      amountAmountDecimal

    Image Added
    Figure 3

  2. Click on Preview to open up the Preview tab

...

  1. , try clicking on each column in the Advanced Grid and notes each column's behavior. (see Figure 4)

...



  1. Image Added
    Figure 4

  2. Open up Expense Claim Entry and note the Field ID's are the same as written in the Edit Advanced Grid. This is how the Advanced Grid mimics the targeted fields we listed in the step 7c from said target form. (see Figure 5)

...


  1. Image Added
    Figure

...

  1. 5

Advanced Grid Properties

Edit Advanced Grid

Image Added

NameDescription

...

Image Removed

Figure 2: Screenshot highlighting Advanced Grid on Date Picker element

A Date Picker will show up when editing if the source field itself is a date picker element.

Image Removed

Figure 3: Screenshot highlighting Advanced Grid on Select Box element

A Select Box will show up when editing if the source field itself is a select box element.

Image Removed

Figure 4: Advanced Grid Properties

Advanced Grid Properties

Edit Advanced Grid

Screens (Click to view)Image Removed
NameDescription
ID

Element ID. (By declaring as "entries", a corresponding database table column "c_entries" will be created)

Please see Form Element for more information about defining the ID and list of reserved IDs.

LabelElement Label to be displayed to the end-user.
FormTarget form for record editing.
Columns

The columns defined here must be correspondent to the Form chosen above.

NameDescription
Value

Field ID of the target form.

Info
iconfalse
titleExample

In "Expense Claim Entry" form, there are Form Elements with the ID "date", "category", "purpose", and "formattedAmount"

LabelColumn Label.
Format Type

If you would like to format the returned value, you may make use of the format type.

Available Format Types

  • Date - formats the field as date.
  • Decimal - formats the field as decimal.
Width

Column width in characters.

Code Block
titleSample
200px
Readonly

Determines if the column is editable.


UI

Grid

Image Added

Image Removed
NameDescriptionScreens (Click to view)
SearchEnable search capability within the grid data itself.
Readonly

Determines if the element is editable.

Disable Add FeatureDetermines if a new row can be added.
Disable Delete Feature

Determines if a row can be removed.

Default Sorting Column Number (Start from 1)

Defines the column index to sort by default. This field accepts integers starting from 1 onwards only.

Example: If the grid has 5 columns, inputting a "4" will sort the 4th column from the left in ascending order.

Delete confirmation messageConfirmation message when deleting a row.
Show Row Numbering?Shows numbering on the grid.


Editing

Image Added

Image Removed
NameDescriptionScreens (Click to view)
Key to save cellKeyboard key to use to determine when to save and move on to the next cell.
Edit hintEdit hint message.


Paging

Image Added

Image Removed
NameDescriptionScreens (Click to view)
Record Per PagePaging Parameter - Record to show per Page
Paging OptionsPaging Parameter - Paging Options

...

Validation & Data Binder

Validation

Image Added

Image Removed
NameDescriptionScreens (Click to view)
Validator

Attach a Validator plugin to validate the input value. Please see Form Validator.

Info
titleWhen will validation takes place?

Validation will takes take place whenever a form is submitted except when it is submitted as "Save as Draft".

Unique ColumnColumn/Field ID to identify record ID.

Min Number of Row Validation (Integer)

Min Number of Row Validation (Integer)

Max Number of Row Validation (Integer)

Max Number of Row Validation (Integer)

Error Message

Error message to be shown when row requirements set above is not met.


Data Binder

Image Added

Option by default. Grid data will be saved/loaded in JSON format in its defined database cell.

In this example, Multirow Form Binder is used to load data from other form. See list of available Form Binder .
NameDescriptionScreens (Click to view)
Load & Save Binder

Load Binder allows you to customize the method for data retrieval to populate the advance grid in the form.

Save Binder allows you to customize the method on how the advance grid row records are saved to.

This option is empty by default. An empty binder means that the advance grid records

Load Binder

Option by default. Grid data will be saved/loaded in as a JSON format in its defined database cell.In this example, Multirow Form Binder is used to load data from other form. See the parent form & database table. See the list of available Form BinderBinders.

Image Removed

Store Binder

The recommended binder to use is the Multirow Form Binder so that each record is saved into a child database table via a subform definition. The binder will update the foreign key "parent id" into each child record to point to the parent database table..


Related Tutorials