LCM form variable "identity"?

Which IIQ version are you inquiring about?

Version 8.3

Share all details related to your problem, including any error messages you may have received.

We are using the LCM addon for create/update an identity.

Im looking for a way to identify changes through the user in the forms. In which variable is the current identity accessable?
(With a simple check of old/origin identity-value an current form-value.)

In some other examples i found variables like “form” and “field”, but “identity” doesnt exists, where is my mistake?

Where can i found a useful documentation about existing variables, maybe only for LCM?

Hi @chriskk ,

Can you please explain it more and provide us with more information like the form you have created, what exactly is your requirement etc. This will help to give people from the community provide you meaningful resolution.

LCM is an extension on the right side, by the gearwheel.
image

Forms can be accessed on the third tab.

You can store a script in any field.

→ I want to access the current “identity” there, like other variables “form” or “field”.

Hi @chriskk ,

The variable identityId is available in the namespace.
You can use the following to get identity object.

context.getObjectById(Identity.class, identityId)

Thanks for this variable.

I have activate the hibernate-sql logging and can see one select per server request.
Is there a way to use the origin object/identity during the working-time on a form?
(Wich means no additional database call and use the initial identity during the form process.)

Another side question, is there an optimistic or pessimistic locking check done per save or is the last writer always the winner? Maybe if another process or user change the same identity during the form processing. :wink:

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