What is a Formlink?

When a Entry is edited we what to have the possibiltity to not only edit the values of the entry, we also what to connect entries together.  

Whats is the Concept in the Background?

 

 

Example:

We edit a Project Entry and want to link persons to te project. So somehow we have do define which connection should be possible. 

Parameters:

  • Project
  • Form
  • Parent Entry
  • Child Entry
  • DataTable
  • Datatable LinkModal (Optional)
  • Title
  • Show Only unlinked entries
  • Link button
  • Min LInks
  • Max Links
  • Order

Parent Entity:

Because we never have definded which entity is used in a form, her we have to start.

Eg. Parent Entity is Project

Child Entity:

Which Entity is used as a Child? For each link we get an entry in the table wp_wr_link.

DataTable:

Only DataTables which contains the Child Entity are visible. The DataTable is Displayed in Modal of the Form.

 

LinkModal DataTable:

If you want to use a Different DataTable in the Link Modal (Eg. without subtables, show only specific informations, etc..) you can create one and select this datatable here.

Title:

This title is show in the Modal as Title of the DataTable 

Parent Entry:

Because we never have definded which entity is used in a form, her we have to start. 

Eg. Parent Entity is Project

 

Child Entity:

Which Entity is used as a Child? For each link we get an entry in the table wp_wr_link.

 

DataTable:

Only DataTables which contains the Child Entity are visible. The DataTable is Displayed in Modal of the Form.

LinkModal DataTable :

If you want to use a Different DataTable in the Link Modal (Eg. without subtables, show only specific informations, etc..) you can create one and select this datatable here.

Title:

This title is show in the Modal as Title of the DataTable 

Show only unlinked entries:

If a entry should only connect to one parent, this is the way

Link Button:

The default case is to “create and link” an entry to a parrent. if it should be possible to do linking without create a new entriy, this option is for you

Min. Links:

If this option is set, you can give the user the hint, that you expect a number of links. Like a Invoice has to have Invoice Positions.

Due to technical reasons (you cannot force users to link), this is only informal.

Max. Links:

In some cases, you what to limit the number. Eg a Project should only have one manager. 

Order:

This is the Order the FormLinks (DataTables) are displayed in the modal.