edgar_luna_h
17th March 2004, 13:08
Hello All,

We have a simple Maintain Session with form type 1 with one table, but one field has depth 2 (tdxxx999.fiel(1) & tdxxx999.fiel(2)), and based on some conditions the depth 1 (tdxxx999.fiel(1)) must be restricted to enter (attr.input = false).

I tried to use attr.input in a before.input but it is affecting the 2 depths or none, do you know a way that the attr.input just affect one of the depths or even better, how to handle the 2 depths in a different way in the program script? When I tried to put in the fields section:
field.tdxxx999.fiel.1:
or
field.tdxxx999.fiel(1):

are not working.

Thanks and Best Regards,
Edgar.

Hitesh Shah
17th March 2004, 15:16
U can use predefined variable attr.element to reference the field arrays e.g. tdxxx999.fiel(attr.element) in ur conditions like

if attr.element > 1 then
if tdxxx999.fiel(attr.element -1 ) = 0 then
attr.input = false
endif
endif

edgar_luna_h
24th March 2004, 13:00
Hello Hitesh,

Just to say thank you, it is working fine.

Best Regards,
Edgar Luna