Hi,
I have a page layout with a textgrid2 (w_lines) inside a rowtablearea2 (w_grid_lines), that means every row of rowtablearea2 contains a textgrid2. This is how my variables are declared:
1 W_GRID_LINES (1:)
2 SELECTED (L)
2 TRANSPARENT (U) DYNAMIC
2 W_ASS_ELETRONICA (U) DYNAMIC
2 W_CPF_ALUNO (U) DYNAMIC
2 W_DATA_EMISS_2 (U) DYNAMIC
2 W_DA_FIM_TURMA (U) DYNAMIC
2 W_DA_INI_TURMA (U) DYNAMIC
2 W_DATA_EMISS_1 (U) DYNAMIC
2 W_DATA_NASC (U) DYNAMIC
2 W_DOCTO_IDENT (U) DYNAMIC
2 W_ESTABELEC (U) DYNAMIC
2 W_LINES (1:)
3 W_NO_INSTRUTOR (U) DYNAMIC
3 W_NO_MODULO (U) DYNAMIC
3 W_NU_HORAS (U) DYNAMIC
I populate them using the code below (i put part of it here):
FOR #I 1 TO 25
*
EXPAND ARRAY W_GRID_LINES TO (1:#I)
*
MOVE #NO-ALUNO-SORT TO W_NOME (#I)
MOVE #DA-NASC-SORT TO W_DATA_NASC (#I)
MOVE #DOCTO-IDENT-SORT TO W_DOCTO_IDENT (#I)
MOVE EDITED #NU-CPF-SORT (EM=999.999.999/99) TO W_CPF_ALUNO (#I)
*
MOVE #NO-ESTABELECIMENTO TO W_ESTABELEC (#I)
MOVE #NO-MUNICIPIO TO W_MUNICIPIO (#I)
MOVE #SG-UF TO W_SG_UF (#I)
MOVE #NO-MUNICIPIO TO W_LOCAL (#I)
MOVE EDITED DATX (EM=DD/MM/YYYY) TO W_DATA_EMISS_1 (#I)
MOVE #NO-DIRETOR TO W_NO_DIRETOR (#I)
*
FOR #L 1 TO 5
EXPAND ARRAY W_LINES TO (,1:#L)
MOVE #NO-MODULO (#L) TO W_NO_MODULO (#I,#L)
MOVE #NU-HORAS (#L) TO W_NU_HORAS (#I,#L)
MOVE #NOME-INSTRUTOR (#L) TO W_NO_INSTRUTOR (#I,#L)
END-FOR
END-FOR
Notice that textgrid2 is a bidimensional array.
When i run my application both grids are populated and showed with success.
Now, to print this page layout I´ve created a Print Form (PDF output) where I´ve put a cisfo:textgrid2 inside a cisfo:rowtablearea2. I´ve set the cisfo:textgrid2´s gridprop to w_lines and cisfo:rowtablearea2´s gridprop to w_grid_lines. I´ve added 3 columns to cisfo:textgrid2 setting its valueprop property to w_no_instrutor, w_no_modulo and w_nu_horas respectively ( see figure below).
The issue occurs here, when I set the cisfo:textgrid2´s gridprop to w_lines the Print Form is no more rendered on develop time, on runtime a blank Print Form is showed. So i have some questions about it:
-
Does gridprop property support bidimensional array?
-
Can i put a cisfo:textgrid2 inside a cisfo:rowtablearea2?
-
Is there a way to make a master detail (grid inside another grid) Print Form?