Skip to Content

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Aug 14, 2017 at 03:18 PM

    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

    Add comment
    10|10000 characters needed characters exceeded