jatin_sanghi
7th May 2005, 07:34
Hi all,

I have a type 3 multioccurance form which is having orderno as view field.
All the fields on the form are derivable fields including the view field.

I want that when i start the session, the if the view field ie, order <> 0 then the related records should get readonly while if the order no = 0 then, i can edit the related records on the form.

I'am not sure wehter we can disable a record as a whole in a form or shall we go for disableing the table fields for those particular occurance.
Please give me some suggesstions and how can it be done in both the cases.

waiting for a reply...
rgrds,

Jatin

manojsharma
9th May 2005, 10:57
Hi Jatin,

you can use the following code

after.input:
if update.status = add.set then
attr.input = true
else
attr.input = false
endif

This means when your form is not insert mode, you can not change/modify the said field.

I think this will solve your problem.

kathuria
10th May 2005, 11:59
Hi,

Thses code will help you more.

field.orno:
after.field:

if orno = 0 then
attr.input =FALSE
else
attr.input =TRUE
endif

Sanjay Kathuria

kathuria
18th May 2005, 12:37
Hi ,
Please refer hyperlink.


http://baanboard.com/baanboard/showthread.php?t=23984

Sanjay