Precursor:

The app must have a login with a corresponding data source to hold the user’s login information. See this article to create a login

The List from Data Source is a powerful prefab component in Fliplet Studio that will help you easily display, sort and filter items. This article will explain how to use the LFD filters and the user profile data value type to show only the logged in users data. 

Features

The user profile data value type offers the following features:

  1. Set a filter using the logged in profile user’s data
  2. Allow the user to only see their own information

Get Started

To use the user profile data value type you’ll need to:

  1. Create an LFD screen, such as a Directory screen
  2. Set the Data Field, Logic, Value Type, and Value
  3. Test that the filters work in Preview Mode

Step 1 – Create an LFD screen, such as a Directory screen

  1. Create a list from data source/directory screen. For more information on creating a directory, read this article.

Step 2 – Set the Data Field, Logic, Value Type, and Value

  1. Click on the directory / LFD component.
  2. The configure your list menu will open on the right. Scroll down.
  3. Under How do you want to filter your list? Click Add a new filter.

  4. The field dropdown menu will appear.

    In this example, we will set the filters to show the logged in user only the employees in the same office as them. (keep in mind that the office value needs to be found in both the data source attached to your LFD and the user information data source used by the login screen):

    Under the Data field dropdown, select “Office”.

  5. Under the Logic dropdown, select “Equals”. 
  6. Under the Value type, select “User profile data”.
  7. Under Value, type “Office”. (Note this should be the name of the field in the data source.) The menu should look like this:

  8. Click on the blue “Save & Close” button.

Step 3 – Test that the filters work in Preview Mode

  1. Go to Preview Mode.
  2. Click on the Login screen from the list of screens on the left. Then click on the Enable security button in the bottom right and log in.
  3. Click on the LFD / Directory screen you created earlier from the screens on the left. You should only see entries from the same office.

 

Was this article helpful?
YesNo