Versions Compared

Key

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

...

Table of Contents

...

borderColorgreen
borderWidth1
titleBGColor#ddffcc
borderStylesolid
titleDefinition

Introduction

The Grid enables one to capture structured and related data.


Get Started

The easiest way to see how the Grid works are to use the existing built-in App Expenses Claims. Here are the steps:

StepsScreens (Click to view)
  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)

  3. Under FORMS column, click on Expense Claim Resubmit 

  4. Hover the mouse over the Grid element on the canvas under Approval Comment(s) section and click on Edit to open up the Edit Grid properties.

Image Added

Figure 1

...



Figure 1: Screenshot highlighting Grid in sample HR Expenses Claim app

Figure 2:

Grid Properties

Edit Grid

NameDescriptionScreen (Click to view)
IDElement ID (By declaring as "approval_comments", a corresponding database table column "c_approval_comments" will be created)

Image Added

LabelElement Label to be displayed to the end-user.
Options

Column definition and column label.

Column

The column name is defined in the value column whereas the corresponding label is defined in the label column.

...

...

UI & Validation

NameDescriptionScreen (Click to view)
Readonly

Determines if the element is editable.

Image Added

Validator

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

Info
titleWhen will validation takes place?

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

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 MessageError message to be shown when row requirements set above is not met.

...

...

Data Binder

NameDescriptionScreen (Click to view)
 Load Binder

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

another form.

Image Added

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

...

...

Data Binder - Multirow Form Binder

NameDescriptionScreen (Click to view)
FormForm to store to or load from

Image Added

Foreign KeyForeign Key for records lookup.

...