CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Conversion Error

General discussion

by etwoss » 01 Jul 2014 10:35

Hi

After update to latest develop release (3707) i get a lot of exceptions on TIWCGJQGridCellsProvider.RowToXML

Ofcourse i can set this exception to Ignore but thats not what i really want, is there anything i do that causes this exception?

Eric


Code: Select all
procedure TIWCGJQGridCellsProvider.RowToXML(Sender: TObject; ARow: TIWCGJQGridRow; AXMLNode: IXMLNode;
  AUpdateRowId: Boolean);
var
  Grid: TIWCGJQCustomGrid;
  i: Integer;
  XMLNode: IXMLNode;
  Col: TIWCGJQGridCol;
begin
  Grid:= Sender as TIWCGJQCustomGrid;

  for i:= 0 to Grid.JQGridOptions.ColModel.Count-1 do
  begin
    Col:= Grid.JQGridOptions.ColModel[i];
    XMLNode:= AXMLNode.AddChild('cell');
    try
      XMLNode.NodeValue:= GetColValue(Sender,ARow,i,Col.MappingName);
    except
      on E:Exception do
        XMLNode.NodeValue:= E.Message;
    end;
  end;
You do not have the required permissions to view the files attached to this post.
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by etwoss » 01 Jul 2014 11:01

Hi

Found out this:

I have a formatter on a column, for example 'gcfDateTime', now when the fieldvalue of the data is null, and the cells value is NOT set, the grid shows : Nan/Nan/Nan

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by Jorge Sousa » 01 Jul 2014 11:51

Hi

You've two options

1- Set to Unassigned instead of Null

2- Replace line 163 of unit IWCGJQGridCellsProvider with this:

if VarIsClear(Result) or VarIsNull(Result) then Exit;

This will be commited for next version
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58


Return to General

Who is online

Users browsing this forum: No registered users and 3 guests

Contact Us.