Conditional Hide a Shortcut ???

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
PointsWell
Posts: 1457
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Conditional Hide a Shortcut ???

Post by PointsWell »

So if you use a peer single attribute on a BO but don't want it to appear as an editable field then the shortcut is great.

But... how do you hide this field on a form based on a condition. If you use READ PROTECT you get an error
"Invalid attribute path BOName.scAttributeName in READ PROTECT action" Which is sort of to be expected as you can't edit a shortcut in a form (only a grid).

So it seems that the only way to achieve the hide/show of the data that you'd ordinarily use a shortcut for is via HTML SHOW SECTION_START, except there isn't a way to stop the label showing in this instance.

Or am I missing something?
Rennur
Posts: 1191
Joined: Thu Mar 01, 2012 5:13 am
Location: Sydney, Australia

Re: Conditional Hide a Shortcut ???

Post by Rennur »

READ PROTECT the reference attribute hides the shortcut i think
joben
Posts: 221
Joined: Wed Nov 06, 2019 9:49 pm
Location: Sweden
Contact:

Re: Conditional Hide a Shortcut ???

Post by joben »

PointsWell wrote:But... how do you hide this field on a form based on a condition.
Hiding attributes in forms based on conditions can be done by putting the attribute(s) inside a separator.
The separator can have display conditions.
condition.png
condition.png (31.57 KiB) Viewed 6111 times
Regards, Joakim

Image
PointsWell
Posts: 1457
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Re: Conditional Hide a Shortcut ???

Post by PointsWell »

joben wrote:
PointsWell wrote:But... how do you hide this field on a form based on a condition.
Hiding attributes in forms based on conditions can be done by putting the attribute(s) inside a separator.
Unfortunately AIM does not render separators consistently across browsers and they apply to all columns - this shortcut would need to sit in a second column with the first one holding permanently displayed fields.
Post Reply