Using SQL Server 2000 and VI, I am using a recordset and grid to pull some data back from the database.
Currently the data is coming back with no format, for 1,500 its showing 1500.
Where can I set the formatting? I would assume that its somewhere in the runtime text, but where?
function _initGrid1()
{
Grid1.pageSize = 0;
Grid1.setDataSource(GetClaimStatus);
Grid1.tableAttributes = ' cellpadding=2 cellspacing=0 bordercolor=#cccccc bgcolor=Gray border=1 cols=2 rules=ALL WIDTH=304';
Grid1.headerAttributes = ' bgcolor=#003468 align=Left';
Grid1.headerWidth[0] = ' WIDTH=68';
Grid1.headerWidth[1] = ' WIDTH=68';
Grid1.headerFormat = '<Font face="Arial" size=4 color=White> <b>';
Grid1.colHeader[0] = '\'Claim Status\'';
Grid1.colHeader[1] = '\'Total Claims\'';
Grid1.rowAttributes[0] = ' bgcolor = White align=Left bordercolor=#cccccc';
Grid1.rowAttributes[1] = ' bgcolor = Silver align=Left bordercolor=#cccccc';
Grid1.rowFormat[0] = ' <Font face="Arial" size=2 color=Black >';
Grid1.colAttributes[0] = ' WIDTH=68';
Grid1.colFormat[0] = '<Font Size=2 Face="Arial" Color=Black >';
Grid1.colData[0] = 'GetClaimStatus.fields.getValue(\'Claim Status\')';
Grid1.colAttributes[1] = ' WIDTH=68';
Grid1.colFormat[1] = '<Font Size=2 Face="Arial" Color=Black >';
Grid1.colData[1] = 'GetClaimStatus.fields.getValue(\'Total Claims\')';
}
Help is appreciated, thanks.
Currently the data is coming back with no format, for 1,500 its showing 1500.
Where can I set the formatting? I would assume that its somewhere in the runtime text, but where?
function _initGrid1()
{
Grid1.pageSize = 0;
Grid1.setDataSource(GetClaimStatus);
Grid1.tableAttributes = ' cellpadding=2 cellspacing=0 bordercolor=#cccccc bgcolor=Gray border=1 cols=2 rules=ALL WIDTH=304';
Grid1.headerAttributes = ' bgcolor=#003468 align=Left';
Grid1.headerWidth[0] = ' WIDTH=68';
Grid1.headerWidth[1] = ' WIDTH=68';
Grid1.headerFormat = '<Font face="Arial" size=4 color=White> <b>';
Grid1.colHeader[0] = '\'Claim Status\'';
Grid1.colHeader[1] = '\'Total Claims\'';
Grid1.rowAttributes[0] = ' bgcolor = White align=Left bordercolor=#cccccc';
Grid1.rowAttributes[1] = ' bgcolor = Silver align=Left bordercolor=#cccccc';
Grid1.rowFormat[0] = ' <Font face="Arial" size=2 color=Black >';
Grid1.colAttributes[0] = ' WIDTH=68';
Grid1.colFormat[0] = '<Font Size=2 Face="Arial" Color=Black >';
Grid1.colData[0] = 'GetClaimStatus.fields.getValue(\'Claim Status\')';
Grid1.colAttributes[1] = ' WIDTH=68';
Grid1.colFormat[1] = '<Font Size=2 Face="Arial" Color=Black >';
Grid1.colData[1] = 'GetClaimStatus.fields.getValue(\'Total Claims\')';
}
Help is appreciated, thanks.