Versions Compared

Key

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

Table of Contents

Introduction

The "URL Request Parameters for the Popup form Form" is a new feature for for Form Grid. It will pass the selected field ID as URL request parameters to the popup form which is the configured form grid target form that will pop up upon adding or editing a row in the form grid. In this article, we will demonstrate 1 example of using this feature. 

Steps Example

This example app will

Step 1

Create 4 forms and generate a CRUD for each of them after creation and configuration.

Item Form - 2 text fields

LabelID
Item IDitemID
Item NameitemName

Image Added

Figure 1:  Item Form Layout

Dummy Data - 2 text fields

LabelID

Dummy Data 

Parent form 
Image Removed

Child Form
Image Removed

Item IDitemID
Dummy NamedummyName

Image Added

Figure 2: Dummy Data Form Layout

Parent form - 1 select box & 1 form grid

Image Added

Figure 3: Parent Form Layout


Select box settings
Image Added

Figure 4: Parent Form Select Box Settings - 1 


Image Added

Figure 5: Parent Form Select Box Settings - 2 


Form Grid Settings
Image Added

Figure 6: Parent Form Form Grid Settings - 1


Image Added

Figure 7: Parent Form Form Grid Settings - 2


Child Form - 1 hidden field & 1 text field & 1 select box

Image Added

Figure 8: Child Form Layout

Hidden Field Setting
Image Added

Figure 9: Hidden Field Setting


Text Field Setting

Image Added

Figure 10: Text Field Setting

Select Box Setting
Image Added

Figure 11: Select Box Setting - 1


Image Added

Figure 12: Select Box Setting - 2


Image Added

Figure 13: Select Box Setting - 3

Step 2

Populate some data into the Item and Dummy forms. 

Note

The inputted data (Item and Dummy CRUD) must have matching Item IDs.

Image Added

Figure 14: Item CRUD

Image Added

Figure 15: Dummy CRUD

Step 3

Result
Image Added

Figure 16: Result

Properties


Figure 17: Properties 

NameDescription
Parameter

Map values as the URL parameters.

Field IdField ID of the form element in the current form.
Default Value

Default Value when there's no existing value found/selected.

A hash variable is accepted here. For example, you may key the following

Code Block
#currentUser.firstName# #currentUser.lastName#


to pre-populate the field with the currently logged-in user's name.

Sample App

View file
nameAPP_kb_dx8_urlParamPopupForm.jwa
height250

...