Gallery view - possible to "disable" one image?

In the Evac Centers view there is a status - open, closed, full. By default these will be set to closed until we activate. Would that work even if the evac center list is a different table?

1 Like

I’ve never heard the term composite action - what is that?

1 Like

The group actions - where you create a stack of actions to run.

The technical name is “Composite Action” - I’ve been making videos so I’m trying to get my vernacular right. :laughing:

Here’s an example of a menu action I have in an app.

  • You can see there’s a “Ref Set” action first - this finds a record in another table and clears a value
  • Then there’s a couple of contingent navigation actions that take you places to change settings (depending on what you’re doing, how the app is currently set, etc.)
  • And the fall back is to just go to whatever the link is from the menu.

So by including a fall back that always runs, then stacking conditional actions on top, I can ensure that something will always happen - and if I do the logic right it will also always be what I’m expecting.

1 Like

Ah - ok thanks for the explanation. Yes that is what I’ve done. Each icon has an action and then all the actions are grouped for the gallery view.

To determine whether to link to the form or not, can I create a virtual column in the table that the menu is created on that checks the status column of the evac center table and if any evac center status is set to open then the form can be live (green), if not then the form is disabled (grey)?

If that is possible I will need some help figuring out that expression.

All good ideas. The only comment I have to make is to use Pop-Ups VERY sparingly! I can tell you from experience, users get annoyed with pop-ups very quickly.

2 Likes

Can you help figure out how to “trigger” the activation? Is there a way to use the status col from another table?

1 Like

How do you currently know if something haas been activated or not?

1 Like

From the evac center list. When the decision is made to open the evac centers the status is changed from closed to open-accepting evacuees. The form has a drop-down for residents to select their evac center and this drop down is populated from that list. Only the open ones show.

But obviously “closed” has another meaning as well or you probably wouldn’t have asked the question “how to trigger activation”?

My recommendation is to have a dedicated column for [Activated?]. Initially set to “N”, once activation has happened then set it to “Y”. You can also have the option to “de-activate” at any time, regardless of status or state.

Storage is cheap these days so having extra columns, even they don’t do much, is NOT a big deal.

Think of support as well as users usage of the app. If you ever need to be able to determine if “activation” actually happened or some other error occurred, you’ll have a column to tell you immediately.

If you try to use an already existing column that has another meaning (e.g. Status) then as soon as the state changes, you loose the information that “activation” happened or not.

Bottom line, I would suggest to never mix multiple meanings into a single column. It often creates headaches later.

I hope this makes sense!!

1 Like

That makes sense. What table should I add the activated column to?

I have a table for the menu/gallery, the evac center list table, and then the actual evacuation record table that collects all the form data.

And it doesn’t sound like this should be a virtual column. Is that accurate?

Okay so I’m taking it that you have a slice of “Activated Evac Centers” right?

What you need now is a way for the app to know where someone is at?

You said this way public based yes? So people are not logging in I take it.

We need a way to be able to tell the app (The current user is at “this” location) - then we can see if that location is activated or not.

Geofencing? Is that an option? Do you have geolocations for each evac center?

we aren’t using user location. and i don’t have a slice for activated evac centers - instead using data validity (SORT(SELECT(Gen Pop Evac Center List[EvacCenter], [Status]=”Open Accepting Evacuees”)) - which works well for what we’ve done so far.

I think I will try to add an “activated” field to the menu table and see what I can do with that.

So what exactly are you activating?

Your initial image showed “Form” at the same level as “Evac Centers”. Your comment was…

This made me think you are activating for the user. Is that not the case?

Never mind. I went back to re-read the comments to find this in response to how you know if something is activated or not.

I gather from this that you are activating centers. So I need to ask two different questions.

  1. What does active/activate mean? How does it differ from closed?

  2. I assume there are several Evac Centers. So, which one triggers the enabling of “Form”?

Were you able to remove if from the list in your attempts at this?

The form option I mean - were you able to remove that from the options shown already? Have you figured that part out?

no, sorry, county activation (opening evac centers).

How does one user from one county receive data different from a user in another county?

If I’m in County A - you’d want me to see Count A’s information. How is that happening in the app right now?

I’m not sure I understand your question. This has been created just for our county.

I added an “activated” column and changed the action from just [Item]=Form to AND([Item]=Form, [Activated]=Yes) and this prevents the form from opening.

How would I swap out the images though?