Workshop variable/status indicator

Hi, I would like to indicate status of my tasks in workshop app. For that I have written function in code repository which returns boolean value based on some ontology objects properties values. Then in workshop I have created variable that loads this value via this function, but I havent find any suitable way to display this value. I am looking for some widget, which will show this value and let me put some conditional formatting on it, like if the retrieved value is true, then display “Done” in green color or red “In progress” if false. Is that possible in workshop? If not, I will appreciate any other way to display variable/status.

(The closest solution I have found is using checkbox, but this option doesnt seem right to me)

Does the schema for your Task object type have a status property? If not, that’s the best place to start. When new tasks come in (i.e., created via an Action Type triggered from a button), you can set the default status to something along the lines of “New Task” and have other “update” Action Types that will also update the value of a Task object’s status property to one of your pre-defined statuses (i.e., “In Progress”) until “Done”.

On the Properties page of the Task object type, you can click on the status property in the table view in the center of the screen and a configuration panel on the right should pop up. If you switch to the Display tab within that config panel, you can add conditional formatting rules to color “Done” as green, “In Progress” as orange/red/whatever color you want, etc. and these will be picked up in Workshop, Quiver, Object Explorer, etc. for consistent formatting.

In Workshop, you can use the Filter List widget to give you an out-of-the-box interactive histogram view of how many Task objects have which statuses where clicking on one can filter local Workshop variables. You can then display these in other widgets like the Object Table or Object List widgets; when you configure either widget to show the status property, it will then show the value with the color you assigned it from OMA.

Hope this helps!

Hi, thank you for your reply, but this is not what I was looking for.

In the future, I will probably combine statuses from more than one ontology object to dynamically compute variables value based on some objects statuses. And this computed variable will not be part of any object. Also updating status from any action is time consuming and prone to mistakes.

I am looking for a way to display bool or string variable in workshop in the way I have described above. For this case I think we can ignore where does this value come from.

Perhaps you can use a Metric card with variable transformation? Boolean comparison > If true == “Done” and then put som dynamic coloring showing “Done” as green?

Hi MVP,

I think Enok9090 is pointing you in the right direction.

The key to this will likely be a looped layout, where you construct a small module which will replicate across projects.

You can then use this module to take any number of inputs, e.g. the project object displayed + any other variables you need to display that can’t be derived from the object itself or you can run the function inside of the module itself.

Note: I’ve found performance issues with the latter at scale, but it depends on the size of your data.

You can then use either metric card, or you can use conditional visibility to show anything from coloured buttons to actual images if you so desire. The latter can often spruce up a Workshop application quite a lot, and is a reasonable workaround to the styling limitations in Workshop.

Let me know if this solves your problem or anything needs further explanation.