Read only field

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
scorpio_x73
Posts: 11
Joined: 2013-11-28 21:00

Read only field

Post by scorpio_x73 » 2013-12-07 23:49

If i select "read only" in a calculated field the calculation is not done.

I mean that i i choose "read only" only to make the filed non editable from users but i cant get the calulation when its enable.

Is this normal behavior ?

Thank you again all.

User avatar
a.gneady
Site Admin
Posts: 1354
Joined: 2012-09-27 14:46
Contact:

Re: Read only field

Post by a.gneady » 2014-01-02 19:25

Yes ... currently a read-only field can't be set from the $data array in hooks. Please note that if you set it as editable, any value entered to it by users won't be applied anyway because the calculation would overwrite it. However, if you still want to set the field as read-only, you should perform the calculation in hooks using an SQL update query rather than modifying $data array.
:idea: AppGini plugins to add more power to your apps:

Post Reply