auto_stories Knowledge Base chevron_right Form chevron_right Article

List Card Connectedv5

The form tool used when reporting is needed in a form. When used with the List Card tool, process management can be done on screen by drag and drop. 

 

Appearance in Toolbox

Appearance in Free Form

Compatibility

Free Form

Responsive Form

Flexible Form

Mobile

 

bulb-icon.pngAs an alternative for responsive use, you can use the Kanban structure.

 

Properties of the List Card Connected tool

Type (Field Type): Shows the field type of the added form tool. This value cannot be changed.

Name: Represents the field's name in actions used in the form.

Field Style: Chooses where the input comes from.

Help Text: A hint can be written on the Client side about what kind of information to enter.

Icon: Assigns an icon to the field and sets its colour and position. 

Linked Field: The name of the list to link to is written.

Color:Sets the colour of the form tool and/or the text inside it.

Height / Width:Sets the height and width of the form tool.

From Left / Top : Sets the distance of the form tool from the left and top edges.

Values:This field changes according to the choice made in Field Style. When Constant Value is chosen, values must be written one per line.

Display: Hides the form tool on the Client screen.

 

Actions that can be used in List Card Connected

Each form tool added to the form page has different actions. To see the actions defined for the List Card Connected tool, first select the List Card Connected element, then open the action menu.

 

The actions that can be used in List Card Connected and their details are as follows.  

When the row selected: The form action used when an operation is to be done according to the card selected in List Card Connected. 

Record is Added: The action that runs when a new card is added to the List Card Connected tool. 

 

Example:

 

bulb-icon.pngThis tool must be used together with List Card, so the example first explains List Card.

 

Process tracking is wanted on a form page, with sections such as to do, done, tested and shared. The information in these sections should be shown as cards, and cards should be moved between sections by drag and drop.

For this example, first add a List Card to the form page. The information in the list card comes from a table named TABLESERVICE, so its query is written in the SQL Query field. 

The query is as follows. 

SELECT 
    T.UserTableID,
    T.ServiceNumber,
    T.Customer_ID,
    T.Urgency,
    T.Status,
    T.Problem,
    T.Explanation
FROM dbo.TABLESERVICE AS T WITH (NOLOCK);

The List Card tool works when triggered from outside. The form field is triggered with the Update Value action. 

After this, save the form page and switch to the Client screen. The tool looks as below on the Client screen. 

The values to show inside cards are shown by adding Label tools inside the card. 

In the Studio interface, label fields are added for the values to show in the card. 

For each value to show in the card, add a label and return the query result with $P. If an ALIAS is used in the query, write the value after the ALIAS; otherwise write the field name as is.

If process management is to be done on List Card, it must be used together with the List Card Connected tool.

Add to the form page as many List Card Connected tools as there are values. In this example, listing by the “Status” values is wanted. In the main form, Status has 6 options. These are, in order, Open - Assigned - In Progress - Pending - Resolved - Closed statuses.

For 6 options, 5 List Card Connected tools are added to the form. One of the options is shown in the List Card , so 5 List Card Connected tools were added.

For more readable reporting, a title is written above the lists. The Label tool is used for titles. To remove the title of the groupbox in List Card, turn off its Heading property.

After the design is done, some settings must be made in the property panel of the List Card Connected tools. 

First select the list titled Assigned and open the properties window in the right panel.

Since grouping by status is wanted, write Status in Linked Field. Statuses are stored in the Status field among the form fields. 

After filling Linked Field, since this is for Assigned, write Assigned in Values. 

This means: look at the status field; if its value is Assigned, show it in this list card. 

Repeat the same steps for the other List Card Connected fields. Another example is shown below.

 

In Progress List Card Connected:

 

After these steps, you can drag the cards on the Client screen into the desired lists, managing and tracking the card values by drag and drop. 

These steps are only for display. When the form page is refreshed, the dragged fields return to their old places. To keep them on screen permanently (until the next drag and drop), the record's status must be changed with a query.  

An example is as follows. 

First select the List Card Connected titled Assigned. Open the action menu and choose the Record is Added action. Choose Update Value and select Itself in the value field section.

The Itself option is used so that queries such as update, delete and insert run.

 

Then write the query to run. In this example the Status of records in the TABLESERVICE table must be changed, so the query is as follows.

UPDATE TABLESERVICE
SET Status='Assigned'
WHERE UserTableID='$PUserTableID$'

WHERE must be added so that not every record's status is changed.

A screenshot of the action is as follows. 

This action is also defined for the other sections, changing the word Assigned each time.

After this action, changes to the cards stay on screen (until a new drag and drop). Records do not return to their starting point when the form is refreshed or reopened.

 

bulb-icon.pngExample video link for using List Card Connected: List Card Connected