Using this handy post: https://www.googlecloudcommunity.com/gc/Tips-Tricks/Bulk-Select-Multiselect-Select-All/m-p/361654, I made myself a SelectAll action that selects all of the rows in my view.
(Basically I have an inbox view with a bunch of rows where each row is a thing. Using an overlay SelectAll action, the user can select all the rows with one click. Great.)
But I realized immediately after clicking it that I want to click it again to Select None. So, my question: Is there a way with an expression to "get the link" of the view I'm at, or otherwise know if anything is selected?
My thinking is that the LINKTOVIEW action I used that does the select can be conditional: If I'm on a view where items are already selected, it redirects to the view with nothing selected. That way the button can basically be a toggle between select all and select none.
Any ideas? I tried looking at CONTEXT to see if it could give me the URL of the current view, but looks like that's not the answer.
Thanks everyone!
Billy
PS. It's totally unrelated, but I just wanted to shout out MultiTech for this unrelated post about ordering rows which was really amazing and super helpful and detailed.
Solved! Go to Solution.
While you can set the "selected" property through URL parameters, I don't think there is a way to retrieve that parameter to inspect it
I think all you would need to do is provide a second overlay button to unselect all rows using the second expression found in the post you linked.
When only a few rows are selected, you want BOTH buttons to appear. While it would be nice to hide the other buttons when they don't apply it's not really necessary. If they are tapped they just put the view back into the state it is already in - i.e. does nothing.
@1billyfw wrote:By the way - is there a way to inspect / see the parameters that can be passed into a deeplink or to view the URL
Yes.
What I typically will do is launch the browser version of the app where you can see the URL, perform the activity I want and then review the URL see what parameters are being used. Then you concatenate those to the function you use inside of an action. It will likely take some testing to get it right. See images below.
URL before selected rows
URL after rows selected
While you can set the "selected" property through URL parameters, I don't think there is a way to retrieve that parameter to inspect it
I think all you would need to do is provide a second overlay button to unselect all rows using the second expression found in the post you linked.
When only a few rows are selected, you want BOTH buttons to appear. While it would be nice to hide the other buttons when they don't apply it's not really necessary. If they are tapped they just put the view back into the state it is already in - i.e. does nothing.
Yes, I agree - it's possible with two buttons, and I can see the appeal of wanting both if only a few are selected, although I figured a double-tap of a "toggling button" would give you that anyway.
OK, thanks - appreciate the answer!
By the way - is there a way to inspect / see the parameters that can be passed into a deeplink or to view the URL while I'm using the app? I'm not sure how I'd have discovered the ability to select items via the link without the forum. Thanks again.
@1billyfw wrote:By the way - is there a way to inspect / see the parameters that can be passed into a deeplink or to view the URL
Yes.
What I typically will do is launch the browser version of the app where you can see the URL, perform the activity I want and then review the URL see what parameters are being used. Then you concatenate those to the function you use inside of an action. It will likely take some testing to get it right. See images below.
URL before selected rows
URL after rows selected
Many thanks!
User | Count |
---|---|
17 | |
11 | |
7 | |
4 | |
3 |