Create a line per row in a collection

Hi,

I have a collection and I want each item in it to point to a different screen, how can I do that with the new glide?

Use a custom action with a conditional branch for each item in the collection.
Each branch should use a Show New Screen action.

I am sorry, could you elaborate on that, it does not seem to work

I see you marked my reply as the solution. Does that mean you figured it out?
If you can’t get it working, please show me what you have and I’ll try to point out what needs to be changed.

Sure!


This is what I have with the previous version of Glide with each item pointing to a different screen. How can I do that with the new version of glide?

hehe, I know what you are trying to do, so you don’t need to show me that.

Show me how you configured the action as per my previous reply, so I can see where you’ve gone wrong.

Sorry. Here it is.

Okay, it looks like you are on the right track.

A suggestion: matching names in the conditions should generally be avoided, because it’s very easily broken. What I would do instead is number the rows (1,2,3,etc) and then check the numbers in the conditions instead of the names.

That said, it should work the way you have it setup as long as the values you are using are exact matches for values in the “Nom” column. What happens when you click on an item? If nothing happens, check the workflow run log for errors.

2 Likes

It works if I add a choice selector for the name otherwise it does not work

I think I’m missing something. Can you show me what the data table looks like?
Also, did you try my suggestion of numbering your rows?


here is the data
I have not tried numbering yet

Okay, thanks.

I suspect that you probably have an extra space somewhere in the workflow conditions that cause them not to match. This would be why it works with the choice component, because you get an exact match.

I would suggest numbering the rows. It will be a more robust solution.

I feel I have to ask…is the Item Click action for your collection actually using the workflow action you created, or is it still set to ‘Show Detail Screen’?

I have numbered the roows and used the numbers in the condition but it only displays 1 screen. How can the action button lead to different screens?

it uses the workflow

The item click action should be using your workflow. Otherwise the workflow will not do anything because nothing is calling it.

yes I understand. the action button uses the workflow. I just dn’t understand how to select a row number t trigger one of the options.

When you click on an item in the collection, it will execute the workflow, which will travel down the correct path based on the number in the item you clicked.

You keep mentioning an Action Button, but I’m not sure where that applies to this situation. You should be able to just click on a collection item.

If I only use a collection item, then every item gets the same detail screen when I want each item to have aa different detail screen

No it won’t because you are calling the workflow, which opens separate screens for each item.

Show me how the Item Click action is configured for the collection.