List Form Component
Last updated
Was this helpful?
Last updated
Was this helpful?
The "List Form Component Container" component is a container that has 1 inside it. However, it displays in the application one instance of the contained form component for each record of the foundset. It has no additional UI decorations. The contained form component can optionally show related data.
It is suited for use in both Advanced (Responsive) and Simple CSS forms.
Form Components are an advanced feature. Please first see other types to explore options for nesting forms within forms.
Here are the steps for placing a container on the form:
Open the Form Editor of the form where you need to place an List FormComponent Container
Find List FormComponent Container in Form Containers section in the components' pallet
Drag and drop the List FormComponent Container component in the desired place of the form, the Select Form Component
wizard will appear
Select the desired Form Component (it can be related or unrelated to the form's dataSource), then click OK
Edit the elements of the contained Form Component, when it's necessary
Instances of the contained form component can de displayed in two ways:
List View : instances are displayed one under the other
Card view : instances are displayed as cards, on multiple columns and rows (when the case)
Because a Form Component form doesn't have its own logic (.js file), events like onAction
of an element can be assigned only to scopes or entity methods.
Example:
You can add logic for a label created in a Form Component form (placed in a Liat Form Component Container) by accessing that label in the main form and assign the label events to the main form's scope (.js file):
Elements of a contained Form Component can be accessed in the main form where its List Form Component Container is placed.
Example:
In case rowStyleClassDataprovider
or rowStyleClass
are used, make sure that the selection styleclass definition is last in the solution stylesheet, to avoid overwriting it.
Example:
Having a different background color according to an order delivery date. To achieve this there are a few steps to be followed:
create a calculation in orders
table:
make sure the the classes used in calculation exist, otherwise create them in a .less file:
This is a dataprovider that will return true or false. In case it is true, that row is editable, otherwise it is not.
Example:
Having a read-only card/row according to an order shipped date:
orders_calculations
-->
Edit other needed
This view can be obtaiend by selecting listview
in the List Form Component Container property
This view can be obtaiend by selecting cardview
in the List Form Component Container property
The user can define a custom style for the selected instance of the contained form component, using the List Form Component Container property.
This property adds a adds a styleclass to the row. It is usually used in combination with a to parse a piece of text that is used as the styleclass.
access the list form component container in the main form and set the calculation name in
in case there is not already a boolean table column of the foundset/datasource, then a is needed:
access the list form component container in the main form and set the calculation name in