Pool variable can not be assigned in form text field (read only) initial data groovy script

Hi everybody,

I can not assign value to pool variable (global) , inside the groovy script of the form text field initial value, if this field set to read only.
The field display the correct value, but the pool variable still contain null !!

Can anyone help me.

I am using version 6.2 community edition

Thanks for your support

1 Like

If you are using a read-only data, it makes sense not to be able to save the data to a variable.
You cannot assign a value to a variable from within a Groovy script. To do so, you can create an operation on a task level. You can also give an initial value to your process data, that would be the same as the initial value of your read-only field.
Hope this helps,
Haris

Are you using process initialization form (start process form) or a form on a task in the process?

Hi haris,

I am using form on a human task in the process, some fields are read only (ID, Department, User) others are input fields (cost center & work needed).
I need to assigen the field values to Pool varibles, to be inserted in my DB.
while doing in the groovy script for the read only fields, the varibles still hold the null value.

Thanks for your reply

Thank you haris for your help, I used the form actions ti get the value from the text fields directly, and avoid rereuning the scripts again.

again your support will be always appriciated.

Thank you haris for your help, I used the form actions ti get the value from the text fields directly, and avoid rereuning the scripts again.

again your support will be always appriciated.