Expression Sanity Check - this row before does not equal this row after statement

Been on vacation and came back a little more dense than before i left?

I created a button that triggers a group of actions to flag a patient as deceased. It sets the status of a column in the patient record and also captures who flagged the patient as deceased, along with a timestamp, and also records the date of death. This is currently set as a button at the top of the patient record, with the display set to "Display Prominently," and further filtered to only show on certain views.

The providers would prefer it not be quite so easy to flag a patient as deceased, despite there being a confirmation popup where they must confirm that they wish to flag [Patient Name] as deceased before sending them to the form with some pre populated data using LINKTOVIEW()

I have an idea but wanted to ask if this will even work, since to my knowledge I cannot place that action button at the bottom, requiring scrolling to see it (please correct me if I'm wrong).

Can I trigger a group action based on a column value being toggled from an Enum List? For example, present buttons for the Status with Alive or Deceased, created from an enum list, then trigger the Deceased action? I would only want the action to be triggered if the patient status is toggled from Alive to Deceased, which i "think" i can do with this expression for the event, however the "plain english" text is not matching my expectation.

Screenshot 2022-05-24 10.18.46.png

0 12 296
12 REPLIES 12

Hello @mykrobinson, yes, you can execute grouped actions from bots, which can react to any edits in your data.

Your expressions seems to be correct as well, let me know if it works as expected once you give it a go.

Having a problem in that i cannot target the singular action I want to run ๐Ÿค”.

Let me try to explain. For this to work, simply want to call this following action:

Screenshot 2022-05-24 10.57.07.png

 

however the selector is not showing me the selection i want:

Screenshot 2022-05-24 11.00.26.png

so have i done something wrong or have i discovered a weird bug? The action i want to call takes effect on the same table.

>>" to my knowledge I cannot place that action button at the bottom, requiring scrolling to see it (please correct me if I'm wrong)."

You can attach it to a column, as inline prominence. At which point the entire column value becomes clickable. Like this:

Marc_Dillon_0-1653415402245.png

I used a format rule to color both the action and the column value green.

would you mind explaining a bit about how you do this? I see the display prominence option for Inline and i tried that, setting the column attachment to [Status] but i do not see the action available. I'm guessing it needs to be tied to something in a table view in order for this to work?

Is there a condition on the action that would make it not show up?

No, this isn't for a table view, it's for a detail view.

the years have been unkind to my test patient, Demi Lovato, who may or may not look a lot like me ๐Ÿ™‚ Anyways, here's how it looks with Display Prominently" set, notice the Deceased button up top:

Screenshot 2022-05-24 13.16.40.png

 

Now, when i switch it to Inline Prominence and set it to attach to the Status column (Enum List, currently at the bottom of the view to hinder accidental clicking for the time being),  I guess I expected to see "Patient Deceased" listed somewhere around that field, but i do not see anything:

Screenshot 2022-05-24 13.13.53.png

I think since your status column is a quick edit field in the detail view, the inline action is not available.
If you remove "status" column from quick edit, you should see an action icon inline of status column.

>>"I think since your status column is a quick edit field in the detail view, the inline action is not available."

Correct

thank you both. I'll clone the app and test to make sure it behaves as I need it. if this works, there will be no need for the quick edit anyway, as the status by default is alive until it isn't ๐Ÿ˜ฅ

this is heavy subject material ๐Ÿค”

Still no luck, and I can't figure out why. Is this particular "type" of action just not usable in this method?

Screenshot 2022-05-25 10.22.18.png

UPDATE: @Marc_Dillon @YogeshLaddha 

I changed to the grouped action and it shows up, so it would seem that my LINKTOVIEW() based standalone action is not compatible with this method?

Is there a way to customize this further so I can include some text with the icon?

Screenshot 2022-05-25 10.25.26.png

Hi,
All the actions are compatible for inline prominence.
There are couple of reasons why it wouldn't appear next to status.
1) Below the "Appearance" section in action details, there is a behaviour section. Please check if there is any condition that might be preventing it from appearing.
2) If you have created a slice and are using it for your detail view, then you might want to check if the action you want to use is in the slice actions list.

As for formatting,
1) You can create a virtual column and in the app formula enter whatever text you want to keep.
Attach your inline action to this virtual column.
2) In the Display Name for the virtual column just put " ".
3) Use format rules to apply any color or formatting you need.
Also if you don't want to show the action icon for inline, you can just remove the icon in the action by selecting and deselecting any icon.

I hope it makes sense.


Top Labels in this Space