Visual Functions

Test Your Knowledge

Task: Create a Visual Function

  1. Create a global data type "Test.Users" with fields "FirstName" (string (32)), "LastName" (string (32)), "Phone" (string (32)), "Email" (string (64)).
  2. Add three data items to the data type.
  3. Create a Visual function “Test.UserRendering”.

Task: Adjust Settings

  1. Edit the Test.UserRendering function.
  2. Write a description for the function.
  3. Set the maximum number of data items to display to 5.
  4. Select the LastName field to sort data items by.
  5. Save the function.

Task: Customize Layout

  1. Edit the Test.UserRendering function.
  2. Remove a table row that renders the FirstName data field.
  3. Rename “LastName” to “Name”.
  4. Insert the FirstName field in the same table cell before the LastName field.
  5. Save the function.

Task: Preview Output

  1. Edit the Test.UserRendering function.
  2. Preview the output.
  3. Change the preview template to some other page layout template.
  4. Preview the output.

Task: Insert a Visual Function on a Page

  1. Edit a page.
  2. Insert the Test.UserRendering function on the page.
  3. Change the maximum number of items to display to 2.
  4. Save and preview the page.