3 Replies Latest reply: May 3, 2011 11:30 AM by johann zerrouki RSS

Access index table with FormCalc script langage in adobe lifecycle designer

johann zerrouki
Currently Being Moderated

Hi all,

 

I have some issue to hide a field in form adobe using FormCalc langage.

The link to the data is :

$record.DOCUMENTS.DATA[*].HEADER.EVALUATEUR_SECONDAIRE.NAME

 

On Each page of the Adobe form contains the data element of the line Document, it is ok  :

$record.DOCUMENTS.DATA[1].HEADER.EVALUATEUR_SECONDAIRE.NAME

$record.DOCUMENTS.DATA[2].HEADER.EVALUATEUR_SECONDAIRE.NAME

$record.DOCUMENTS.DATA[3].HEADER.EVALUATEUR_SECONDAIRE.NAME

........

$record.DOCUMENTS.DATA[n].HEADER.EVALUATEUR_SECONDAIRE.NAME

 

Now, I just want to hide this data element if EVALUATEUR_SECONDAIRE.ID is initial, so i write a script at initialize event like this :

 

-


data.MAIN.Page1.Identification.Identification.ES ::initialize  -  (FormCalc, client)  -


 

If ( not HasValue($record .DOCUMENTS.DATA[*].HEADER.EVALUATEUR_SECONDAIRE.ID)) then

  $.presence = u201Chiddenu201D

endif

 

The problem is that FormCalc consider DOCUMENTS.DATA[*] as all the line of the table DOCUMENTS, I just want the current line of DOCUMENTS.

 

Please, do you have some solution ?

 

Thank's in advance.

 

Regards.

Johann

Actions