auto_stories Knowledge Base chevron_right Form chevron_right Article

List Cardv5

Another form tool used for reporting on the form page. The requested information is shown on the user's screen as cards. List Card can also be used to manage work moving through a process. For this visual system, List Card must be used together with List Card Connected. 

Appearance in Toolbox

Appearance in Free Form

bulb-icon.pngThis form tool is used only on Free Form. 

Compatibility

Free Form

Responsive Form

Flex Form

Mobile

 

When the List Card tool is dragged onto the white canvas, it comes with two elements. The widest container is the List Card. The Group Box represents the card(s) inside the List Card.

Click to see the Group Box form tool.

Properties of the List Card form tool

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.

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

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.

SQL Query: A query must be written for the values shown in List Card. If the query is empty, no data appears in List Card.

Fit Horizontal: Stretches the form tool horizontally to the full screen width on the user's screen.

Pin Right: Pins the form tool to the right.

Display: Hides the form tool on the Client screen.

Auto Height: Sets the height on the client screen automatically according to the data in the form tool.

Paging: Turns on paging in the List Card. 

If List Card contains many values, turn this on to add paging. 

Actions that can be used in List Card

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

The actions that can be used in List Card 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. 

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

bulb-icon.pngFor the values sent to List Card to be shown on the Client screen, it must be triggered by an action from outside. You can trigger the List Card field with the update value action when the form page opens.

Example 1:

Let's create a design in a form to show our users. Since the XPODA_CLIENT_USERS table contains our users, let's show the information we want from it as cards. 

For this example, first open a free form and add the List Card tool. 

Since the information in List Card comes from the XPODA_CLIENT_USERS table, the query below is written in the SQL Query field. 

The query is as follows. 

 SELECT 
XPODA_CLIENT_USERS.UserID,
XPODA_CLIENT_USERS.UserFullName,
XPODA_CLIENT_USERS.UserEmail
FROM dbo.XPODA_CLIENT_USERS WITH (NOLOCK)

The values to show inside cards are shown by adding Label tools inside the card. First click the small box in the ListCard tool, write the desired title in the Text property, then drag Label fields into the box.

Fill the Label fields in $P…$ format. This format brings in the dynamic values from the table. Arrange the fields in this format as in the image below.

bulb-icon.png The List Card tool works when triggered from outside, so add a When the form is opened action to the form to trigger List Card when the form opens. The final action looks as below.

bulb-icon.png If an ALIAS is used in the query, write the value after the ALIAS; otherwise write the field name as is.

After the changes, save the form page and go to the client screen with Run. List Card looks as below on the Client screen.

bulb-icon.png If process management is to be done on List Card, it must be used together with the List Card Connected tool.
Click for the List Card Connected tool.


Example 2:

In this example we make a form to watch the production status of a company's products with the list card tool. To use List Card, we need information that we add in a separate form. 

First, to create the form we add data to, create a new form from the area marked in red in the image below.

Then choose Flexible Form on the form selection screen.

This form will save our products' data. For the data to be saved to the database, it must have a table. So when the form opens, set the names in the properties on the right as below. After creating these, we can add form elements.

Name: Products

Table Name: PRODUCTS

Type: Form

Then add the tools below to enter product details:

Picture tool for Product Image, 

Text Box tool for Product ID and Product Name, 

DropDownBox tool for Category,

Figures Box for the Price, Planned Quantity, Produced Quantity and ProgressNumber fields,

Finally, drag the Circular Progress Bar tool for a visual display. After naming, create a view like the one below.

After preparing the fields we want in the table as above, we can arrange them and start adding actions.

First click the DropDown Box and set Field Type to Combo Box. Since we will write constant values instead of getting them from the database, set Field Style to Constant Value. Then add the options to show in the Drop Down to Values as below. 

Electronics
Clothing
Food
Home and Furniture
Sports and Outdoor

After setting the Category values, add actions to the Planned Quantity and Produced Quantity fields. Whenever these two fields change, the action writes what percentage of the planned quantity has been produced to the numeric field we added as ProgressNumber. First select Planned Quantity and switch to the action tab in the properties on the right. Then fill the fields as below and save the action with its own save button.

Type of action; On Value Change

Operation; Calculate Form Fields

Linked Field; ProgressNumber 

Calculate Grid; ('$PProducedQuantity$'*100)/'$PPlannedQuantity$'

The final action looks as below:

Do the same for the Produced Quantity field, create the same action there and save it. 

Since we want the Circular Progress Bar to be triggered when ProgressNumber is triggered, add one more action. Click the ProgressNumber tool, then go to the actions tab on the right. Fill the action as below and save it with its own save button.

Type of action; On Value Change

Operation; Update Value

Value Area; CircularProgressBar_1

SQL Query; SELECT ‘$PProgressNumber$’

Then, since we do not want users to see the ProgressNumber field, set an authority. First select the form and click the authority tab on the right. Fill the fields as below and save the authority with its own save button.

Type of Authority; Authority of Field

Action; It can not see fields

Fields; Lbl_10- (ProgressNumber), ProgressNumber (contains both names of our ProgressNumber tool.) 

Condition Type; Manually select users…

User Type; Those Selected

Users; Admin (In our example we applied this authority to the admin user. To hide it from all users, set User Type to “All Users”.)

When we save the form and run it, a screen like the one below opens.

After entering information here as we like, click the green button at the bottom right to save. An example record looks as below:

Now let's create another form to list the List Card. This form must be a Free Form. 

blobid0.pngThe ListCard tool works only on Free Form.

 This form's Type must be Report. After setting the names as below, drag the ListCard tool from the tools on the left onto the form. 

Name; ListCard_Report

Type; Report

Report Type; List

Display Name; ListCard Report

Next, we make the data in our Products table appear in the list card. Drag the fields from our first form from the toolbox on the left into the GroupBox inside the Listcard. This time also add a Picture tool and a Button. The Picture tool holds our Icon. With the action on the Button we go to the record's detail.

blobid0.pngSince we get data from a table, these dynamic values must be written in $P…$ format.

After dragging the tools and naming them, the final view looks as below.

Since we want the data inside List Card, click the List card and write the query containing the fields of our first table in its SQL Query property. In addition, since images with different extensions can be placed in the list card, we added a case when structure that decides which image the Picture tool (Icon) shows. If ProgressNumber is 45 or less, the .gif image is shown; otherwise the .png image. The query is as follows.

SELECT 
PRODUCTS.UserTableID,
PRODUCTS.ProductID,
PRODUCTS.ProductName,
PRODUCTS.Category,
PRODUCTS.Price,
CONVERT (NVARCHAR(50), CreatedDate, 104) AS CreatedDate,
PRODUCTS.PlannedQuantity,
PRODUCTS.ProducedQuantity,
CASE WHEN ProgressNumber<= 45 THEN 'https://cdn.pixabay.com/animation/2023/10/08/03/19/03-19-26-213_512.gif'
 else 'https://cdn.pixabay.com/photo/2018/02/26/14/47/check-3183217_1280.png' END as Icon,
PRODUCTS.ProductImage,
ProgressNumber as [Percent]
FROM
dbo.PRODUCTS WITH (NOLOCK)

We need to add an action to the button. Click the button and switch to the action tab on the right. Fill the fields as below and save the action with its own save button. 

After the linked form window opens, so that the fields in the detail form are filled automatically, a FigureBox is added to the form and its ID field is given the related name. Then, for the FigureBox, the On Value Change > Update Value > All Forms action is defined. This way, when the value changes, all form data in the linked form is transferred to the detail form and the related fields are filled automatically.

Type of action: When clicked

Operation: Open Form- Linked

Condition: In New Window

Module: Documents

Form: Products

Mapping:UserTableID|0|ID



After saving all data, before running the form, since we want List Card to get data when the form opens, we need an action on form open that triggers List Card. Select the report form and switch to the actions tab on the right. Fill the fields as below and save the action with its own save button.

Type of action; When the form is opened

Operation; Update Value

Value Area; ListCard_1

Finally, since the application is ready, click save and go to the client screen with the run button. The final view looks as below: 

After the button is pressed, the detail form opens.