Perhaps you can help me. with the above code the xbrowse footers are 0.00 values
- Code: Select all Expand view RUN
REDEFINE XBROWSE oBrx ID 202 OF oDlg;
DATASOURCE oRsCxc ;
COLUMNS "CXC_TIP","CXC_SER","CXC_NUM","CXC_FDE","CXC_FDV","CXC_REF","","";
HEADERS "Tipo","Serie","Folio","Fecha","Vence","Referencia","Cargos","Abonos";
COLSIZES 30,30,50,75,75,110,110,110;
PICTURES NIL,NIL,"@Z 9999999","dd/mmm/yyyy","dd/mmm/yyyy",NIL,"@Z 999,999,999,999.99","@Z 999,999,999,999.99";
JUSTIFY {AL_LEFT,AL_LEFT,AL_RIGHT,AL_RIGHT,AL_RIGHT,AL_LEFT,AL_RIGHT,AL_RIGHT};
FOOTERS AUTOSORT
WITH OBJECT :aCols[07]
:nFootStrAlign := AL_RIGHT
:bStrData := { || IF(oRsCxc:RecordCount() > 0 .AND. oRsCxc:Fields("CXC_COA"):Value == 1,;
TRANSFORM(oRsCxc:Fields("CXC_IMP"):Value,"@Z 999,999,999,999.99"),SPACE(01))}
:nHeadStrAlign := AL_RIGHT
:nFooterType := AGGR_SUM
:cFooterPicture := "@Z 999,999,999,999.99"
END
WITH OBJECT :aCols[08]
:nFootStrAlign := AL_RIGHT
:bStrData := { || IF(oRsCxc:RecordCount() > 0 .AND. oRsCxc:Fields("CXC_COA"):Value == 2,;
TRANSFORM(oRsCxc:Fields("CXC_IMP"):Value,"@Z 999,999,999,999.99"),SPACE(01))}
:nHeadStrAlign := AL_RIGHT
:nFooterType := AGGR_SUM
:cFooterPicture := "@Z 999,999,999,999.99"
END
:MakeTotals()
Best regards