Skip to Content
0

How do I set up an read-only extended attribute, which is set by a trigger and never changes again?

Aug 09, 2017 at 09:32 AM

40

avatar image

Hi PD-Users,

I want to implement an extended attribute, which is read-only, so that no user can edit it. By default it is empty (value=""). With a trigger, the value is set and if it is set, the value must never change again.

I tried the compute/read-only(get method) function, but it did not work out. It seems that every time the get method is called, the value is resetted.

Does anyone know a workaround?

Any hints would be very much appreciated.

Thanks in advance.

Regards

Jan

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

George McGeachie Aug 14, 2017 at 03:18 PM
0

You could use the 'create' event handler to populate the property when the object is created

OR

The function could check the value of the extended attribute, and only update it if is empty

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Thanks for the reply.

I already experimented with the "Validate" Event handler and my logic works.

But I did not manage to set the Extended Attribute as read-only.

0

If you set the extended attribute to 'get only', and the script doesn't set it, is it effectively read-only?

0