amitava
27th July 2010, 13:36
I've created one maintain session. There is a field named -- status.
I'm selecting any of the row of the maintain session and run some process
and after the end of the process the status field is updated.

I'want to disable the particular row fully where status field is updated.
Rest shoud be enabled.

I've written code like this
if tipct001.stat = tcyesno.yes then
disable.group(3)
else
enable.group(3)
endif

But the whole session behave according to its last record i.e. if the last record's status is 1 then whole session is disable else whole session is enable.

Please advice.

Amitava

NPRao
27th July 2010, 21:25
After your function is executed, you call refresh.all.occs() and use disable.fields() in before.display.object section.

rahul.kolhe22
28th July 2010, 07:49
Hi,

Try to specify the optional arguments needed to be passed to the function disable.group (http://www.baanboard.com/programmers_manual_baanerp_help_functions_form_and_form_field_operations_disable_group)
like:
disable.group(3, DISABLE, actual.occ)

Hope it helps you.

Regards,
--Rahul

amitava
14th September 2010, 09:28
Dear Rahul,

Thanks so much. My problem has been solved with the help of your advice.
Thanks lot.

Amitava