Is there a way to easily set a value to null/empty in an action type form?

Does anyone know a way to easily set values to null/empty in OMA without creating a custom ts function? It is not allowing me to leave it blank.

My expected behaviour would some way like this in Pipeline Builder where you can choose different representations of “empty”.

For the parameter mapped to the property you want to set to null, I think you can just toggle off Required so it ends up Optional. This allows a user to “clear” the current value on that property when the action form pops up and it will set the property to null (appears as “No value” on Workshop by default). I just tried this on a test object type and it worked!

You sir deserve a mighty fistbump for this great idea :right_facing_fist::left_facing_fist:

I figured, we can even do this without any user involvement by just leaving the default value empty (it looks a bit weird cause it is framed red - but still works)

Just one little thing I am a bit confused. The object table renders this newly set No value slightly different. It appears a wee bit darker (or am I stupid - middle row is the resetted). I will do some further tests

image

1 Like

It does look a little darker to me, but I’d probably miss it if I weren’t looking super closely — if it is indeed darker then it’s perhaps a way to subtly visually indicate that its current value is null after the fact (ie someone set it to null rather than it being null from upstream pipeline into backing dataset).

I’m pretty sure the object table widget has a toggle that allows you to customize “No value” into something else where you can input a custom value though!

1 Like

yes with custom no value rendering it also appears slightly darker.
But I think we are good here. Thanks again!

image

1 Like

Interesting! My hunch is that that was probably intentional from the Workshop dev team in this case. Thanks for sharing!

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.