E esse código aqui…montando a grid na action…rsrs
[code] ClasseX classeX = new ClasseX ();
classeX .addColumn(“Tipo Réu”, “%dsTipo” );
classeX .addColumn(“Sequência”, “%cdSequencia” );
classeX .addColumn(“Documento”, “%cdDocumento” );
classeX .addColumn(“Nome”, “%dsNome” );
classeX .addColumn(“Período”, “%periodo” );
classeX .addColumn(“Advogado”, “%dsNomeAdvogado” );
classeX .addColumn(“OAB”, “%cdOABAdvogado” );
classeX .addColumn(“UF”, “%cdSiglaUFDocumentoAdvogado” );
classeX .setTitle(“Detalhes”);
classeX .setSubTitle(“Réu”);
classeX .setWindowHeight(“400”);
classeX .setWindowWidth(“500”);
TableGrid grid = new TableGrid();
GridText label;
GridText field;
grid.setTitle( new GridText(“Réu”, “ttltab1”) );
grid.setMultiSelection( true );
grid.setVisibleCheckBox( true, “ttltab2” );
grid.setVisibleError( false, “ttltab2” );
grid.setVisibleStatus( false, “ttltab2” );
grid.setVisibleStatus( true, “ttlTab2” );
grid.setMaxRecordsShown( 5 );
grid.setMaxPagesBlock( 5 );
grid.setPaginacao( true, “ttltab1”, ACAO_PAGINACAO );
grid.processPage( “0” );
grid.setImageGridPath( “/gcpj/imagens/” );
grid.setImagePath("/imagens/");
if(pIndTipoOperacao.equalsIgnoreCase(“A”)){
label = new GridText(“Nº Documento”, “ttlTab2”);
field = new GridText(“cdDocumento”, “txtTab1”);
grid.addColumn(new GridColumn(label, field, 140));
label = new GridText(“Nome”, “ttlTab2”);
field = new GridText(“dsNome”, “txtTab1”);
grid.addColumn( new GridColumn( label, field, 370, “”, “”,
“javascript:abrirPopUpDetalhes(’%cdCodigoReu’, ‘%cdCodigoGCC’, ‘%cdCodigoFilialGCC’, ‘%cdCodigoControleGCC’,
‘%cdIndicativoOrigemTabela’,’%dsTipo’, ‘%flagFunc’, ‘%cdEmpresaIncorporada’ )”));
label = new GridText(“Seq.”, “ttlTab2”);
field = new GridText(“cdSequencia”, “txtTab1”);
grid.addColumn( new GridColumn(label, field, 46));
} else {
label = new GridText(“Nº Documento”, “ttlTab2”);
field = new GridText(“cdDocumento”, “txtTab1”);
grid.addColumn(new GridColumn(label, field, 130));
label = new GridText(“Nome”, “ttlTab2”);
field = new GridText(“dsNome”, “txtTab1”);
grid.addColumn( new GridColumn( label, field, 340, “”, “”,
“javascript:abrirPopUpDetalhes(’%cdCodigoReu’, ‘%cdCodigoGCC’, ‘%cdCodigoFilialGCC’, ‘%cdCodigoControleGCC’,
‘%cdIndicativoOrigemTabela’, ‘%dsTipo’, ‘%flagFunc’, ‘%cdEmpresaIncorporada’ )”));
label = new GridText(“Período”, “ttlTab2”);
field = new GridText(“dataIni”, “txtTab1”);
grid.addColumn(new GridColumn(label, field, 30));
label = new GridText("", “ttlTab2”);
field = new GridText(“dataFim”, “txtTab1”);
grid.addColumn(new GridColumn(label, field, 30));
label = new GridText(“Tipo”, “ttlTab2”);
field = new GridText(“dsTipo”, “txtTab1”);
grid.addColumn(new GridColumn(label, field, 150));
label = new GridText(“Seq.”, “ttlTab2”);
field = new GridText(“cdSequencia”, “txtTab1”);
grid.addColumn(new GridColumn(label, field, 39));[/code]
:roll: :roll: :roll: :roll: :roll: :roll: :roll: