Button Function: Pulling Data Randomly, User Specific

I have a home/selection screen that includes 3 buttons (Reflect, Sense, and Draw). The intention is that when you click Sense, for example, it will pulls from Activity Table data with the tag “Sense” at random and provides the user an activity that focuses on that subject.

I have a Users Table where I’m trying to create the random activity values and a means of tracking completion (so activities are not repeated and you can track progress). I’ve also created an Activity Table which provides each Activities data.

Current issue:
When I click a button, nothing happens. Activity data does not populate the Users Table cells and a new screen with random activity content does not pull up. I’m very new to this program so it is VERY likely I’m simply approaching the intended functions incorrectly.

Here are some images of the User Table



And a view of the Activities Table

And an example of a Sense button workflow. I’m noticing “Run” is not an option (grey). However, when I remove the condition that Current Studio Type is Sense, Run re-appears. I’m thinking Current Studio Type currently has no value, so when a condition requires it to match a value it is not going to function.

Any help or suggestion would be appreciated!

1 Like

Can you show me the button configuration?

1 Like

Hi Maxime -

The buttons look like this.

1 Like

Do you have actual data so far and have tried scenarios where the relations and the single value column are filled.

1 Like

Hi @ThinhDinh and @MaximeBaker - thanks for viewing.

I do have actual data and while trying to describe my issues I’ve managed to solve some things.

here is where I’m at now:
I can click buttons and they take me to a random activity (detail screen) filtered by activity type that is selected. I’m happy to make it this far!
Next I would like to populate the detail screen with all the other content associated with the activity randomly selected. For example, I have specific images and text that go along with every activity.

Current User Table:

Current Activity Table:

Workflow Example:

This is the column that randomly selects from the filtered list based on which activity type was selected:

And lastly, when i click a button, this is the detailed screen that shows up.

When i try to add another component on this screen I dont see options for activity-specific content (text or images). I am guessing i need to populate those via new user-table columns and maybe new actions in each workflow? Any help on best practices would be appreciated.

Ultimately when a user completes an activity they can mark it as complete. I would like it so when a random activity is selected it will NOT select an activity that has already been done. Additionally I want to incorporate a progress bar for each activity type.

Thank you,

2 Likes

I assume you mean the activity details screen here?

For this part, you should:

  • Go back to the User table, configuring: Activity ID should be a single value > whole row > random from the list of Matching Activities, it will return some sort like a relation.
  • Add a lookup column on top of the single value to return the actual Activity ID (if you still need that).
  • In your workflow, instead of show detail screen for “this item”, show it for the single value column.
  • You will have access to all columns from the Activity table to continue building.
2 Likes

i just tried it and it works! thank you again.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.