setHeaderText() Problem
Hello,
I have a grid with 9 colums. When I run my web aplication, the grid show data correctly but not the header row.
The header row only show 3 colums name.
I use setHeaderText(["Proyecto","Cliente","Version"...]) but not show all the names, only show 3 headers name.
Please can you help me?
This is what i do:
var DGridDatos = new AW.UI.Grid;
DGridDatos.setId("DGridDatos");
var tablaDatos = new AW.XML.Table;
tablaDatos.setURL("webservice.asmx/construyeDataSetGenerico");
var ssql = "SELECT " + QuitarNulos("ZTECDatos.id","''") + ", ";
ssql+= QuitarNulos("ZTECDatos.CodDato","''") + ", ";
ssql+= QuitarNulos("ZTECDatos.DescDato","''") + ", ";
ssql+= QuitarNulos("ZTECDatos.CodProy","''") + ", ";
ssql+= QuitarNulos("ZTECDatos.VersionSolucionado","''") +", ";
ssql+= QuitarNulos("ZTECDatos.Fecha","''") + ", ";
ssql+= QuitarNulos("ZTECDatos.CodStatus","''") + ", ";
ssql+= QuitarNulos("ZTECDatos.CodPrioridad","''") + ", ";
ssql+= QuitarNulos("ZTECDatos.CodTipoDato","''") + ", ";
ssql+= QuitarNulos("ZTECDatos.CodResponsable","''") + ", ";
ssql+= QuitarNulos("ZTECDatos.Revisado","''")+ ", ";
ssql+= QuitarNulos("ZTECDatos.Dudas","''") + ", ";
ssql+= QuitarNulos("ZTECProyectos.NomProy","''") + ", ";
ssql+= QuitarNulos("ZTECStatus.NomStatus","''") + ", ";
ssql+= QuitarNulos("ZTECPrioridades.NomPrioridad","''") + ", ";
ssql+= QuitarNulos("ZTECTiposDatos.NomTipoDatoCorto","''") + ", ";
ssql+= QuitarNulos("ZTECTiposDatos.NomTipoDatoLargo","''") + ", ";
ssql+= QuitarNulos("ZTECResponsables.NomResponsableCorto","''") + ", ";
ssql+= QuitarNulos("ZTECResponsables.NomResponsableLargo","''") + ", ";
ssql+= QuitarNulos("ZTECClientes.NomCli","''");
ssql+= " FROM ((((((ZTECDatos INNER JOIN ZTECProyectos ON ZTECDatos.CodProy =";
ssql+= " ZTECProyectos.CodProy) INNER JOIN ZTECStatus ON ZTECDatos.CodStatus = ZTECStatus.CodStatus)";
ssql+= " INNER JOIN ZTECPrioridades ON ZTECDatos.CodPrioridad = ZTECPrioridades.CodPrioridad)";
ssql+= " INNER JOIN ZTECTiposDatos ON ZTECDatos.CodTipoDato = ZTECTiposDatos.CodTipoDato)";
ssql+= " INNER JOIN ZTECResponsables ON ZTECDatos.CodResponsable = ZTECResponsables.CodResponsable)";
ssql+= " INNER JOIN ZTECClientes ON ZTECProyectos.CodCli= ZTECClientes.CodCli)";
ssql+= " ORDER BY ZTECDatos.Fecha desc, ZTECDatos.CodDato desc";
tablaDatos.setParameter("Consulta", ssql);
tablaDatos.setParameter("Conexion", Conexion);
tablaDatos.setParameter("NomTabla", "Datos");
tablaDatos.setRequestMethod("POST");
tablaDatos.setRows("//NewDataSet/*");
tablaDatos.request();
var ColDGridDatosCodDato = 1;
var ColDGridDatosProyecto = 12 ;
var ColDGridDatosNomCliente = 19;
var ColDGridDatosVersSol = 4;
var ColDGridDatosFecha = 5;
var ColDGridDatosStatus = 13;
var ColDGridDatosPrioridad = 14;
var ColDGridDatosTipo = 15;
var ColDGridDatosResponsable = 17;
DGridDatos.setCellModel(tablaDatos);
DGridDatos.setColumnCount(9);
DGridDatos.setHeaderText(["Código","Proyecto","Nom.Cliente","V.Sol","Fecha","Status","Prioridad","Tipo","Responsable"]); //There is the problem, only show "Proyecto","Fecha","Status"
DGridDatos.setColumnIndices([ColDGridDatosCodDato,ColDGridDatosProyecto,ColDGridDatosNomCliente,ColDGridDatosVersSol,ColDGridDatosFecha,ColDGridDatosStatus,ColDGridDatosPrioridad,ColDGridDatosTipo,ColDGridDatosResponsable]);
DGridDatos.setSelectorVisible(false);
I have a grid with 9 colums. When I run my web aplication, the grid show data correctly but not the header row.
The header row only show 3 colums name.
I use setHeaderText(["Proyecto","Cliente","Version"...]) but not show all the names, only show 3 headers name.
Please can you help me?
This is what i do:
var DGridDatos = new AW.UI.Grid;
DGridDatos.setId("DGridDatos");
var tablaDatos = new AW.XML.Table;
tablaDatos.setURL("webservice.asmx/construyeDataSetGenerico");
var ssql = "SELECT " + QuitarNulos("ZTECDatos.id","''") + ", ";
ssql+= QuitarNulos("ZTECDatos.CodDato","''") + ", ";
ssql+= QuitarNulos("ZTECDatos.DescDato","''") + ", ";
ssql+= QuitarNulos("ZTECDatos.CodProy","''") + ", ";
ssql+= QuitarNulos("ZTECDatos.VersionSolucionado","''") +", ";
ssql+= QuitarNulos("ZTECDatos.Fecha","''") + ", ";
ssql+= QuitarNulos("ZTECDatos.CodStatus","''") + ", ";
ssql+= QuitarNulos("ZTECDatos.CodPrioridad","''") + ", ";
ssql+= QuitarNulos("ZTECDatos.CodTipoDato","''") + ", ";
ssql+= QuitarNulos("ZTECDatos.CodResponsable","''") + ", ";
ssql+= QuitarNulos("ZTECDatos.Revisado","''")+ ", ";
ssql+= QuitarNulos("ZTECDatos.Dudas","''") + ", ";
ssql+= QuitarNulos("ZTECProyectos.NomProy","''") + ", ";
ssql+= QuitarNulos("ZTECStatus.NomStatus","''") + ", ";
ssql+= QuitarNulos("ZTECPrioridades.NomPrioridad","''") + ", ";
ssql+= QuitarNulos("ZTECTiposDatos.NomTipoDatoCorto","''") + ", ";
ssql+= QuitarNulos("ZTECTiposDatos.NomTipoDatoLargo","''") + ", ";
ssql+= QuitarNulos("ZTECResponsables.NomResponsableCorto","''") + ", ";
ssql+= QuitarNulos("ZTECResponsables.NomResponsableLargo","''") + ", ";
ssql+= QuitarNulos("ZTECClientes.NomCli","''");
ssql+= " FROM ((((((ZTECDatos INNER JOIN ZTECProyectos ON ZTECDatos.CodProy =";
ssql+= " ZTECProyectos.CodProy) INNER JOIN ZTECStatus ON ZTECDatos.CodStatus = ZTECStatus.CodStatus)";
ssql+= " INNER JOIN ZTECPrioridades ON ZTECDatos.CodPrioridad = ZTECPrioridades.CodPrioridad)";
ssql+= " INNER JOIN ZTECTiposDatos ON ZTECDatos.CodTipoDato = ZTECTiposDatos.CodTipoDato)";
ssql+= " INNER JOIN ZTECResponsables ON ZTECDatos.CodResponsable = ZTECResponsables.CodResponsable)";
ssql+= " INNER JOIN ZTECClientes ON ZTECProyectos.CodCli= ZTECClientes.CodCli)";
ssql+= " ORDER BY ZTECDatos.Fecha desc, ZTECDatos.CodDato desc";
tablaDatos.setParameter("Consulta", ssql);
tablaDatos.setParameter("Conexion", Conexion);
tablaDatos.setParameter("NomTabla", "Datos");
tablaDatos.setRequestMethod("POST");
tablaDatos.setRows("//NewDataSet/*");
tablaDatos.request();
var ColDGridDatosCodDato = 1;
var ColDGridDatosProyecto = 12 ;
var ColDGridDatosNomCliente = 19;
var ColDGridDatosVersSol = 4;
var ColDGridDatosFecha = 5;
var ColDGridDatosStatus = 13;
var ColDGridDatosPrioridad = 14;
var ColDGridDatosTipo = 15;
var ColDGridDatosResponsable = 17;
DGridDatos.setCellModel(tablaDatos);
DGridDatos.setColumnCount(9);
DGridDatos.setHeaderText(["Código","Proyecto","Nom.Cliente","V.Sol","Fecha","Status","Prioridad","Tipo","Responsable"]); //There is the problem, only show "Proyecto","Fecha","Status"
DGridDatos.setColumnIndices([ColDGridDatosCodDato,ColDGridDatosProyecto,ColDGridDatosNomCliente,ColDGridDatosVersSol,ColDGridDatosFecha,ColDGridDatosStatus,ColDGridDatosPrioridad,ColDGridDatosTipo,ColDGridDatosResponsable]);
DGridDatos.setSelectorVisible(false);
TECNORA
April 15,