FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Problema con xBrowse (SOLUCIONADO)
Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Problema con xBrowse (SOLUCIONADO)
Posted: Wed Apr 27, 2022 03:13 PM
Hola Mr. Rao y foreros:

Tengo el siguiente c贸digo de un xBrowse:
Code (fw): Select all Collapse
聽 聽 聽 聽 聽 聽 REDEFINE XBROWSE oBrw ID 200 OF oDlg;
聽 聽 聽 聽 聽 聽 聽 聽 DATASOURCE oRsHdr;
聽 聽 聽 聽 聽 聽 聽 聽 COLUMNS "HDR_FOL","HDR_CLI","CLI_NOM","HDR_CTD","","","HDR_SDO","HDR_CAN","HDR_MOT";
聽 聽 聽 聽 聽 聽 聽 聽 COLSIZES 50,55,250,60,90,90,90,35,200;
聽 聽 聽 聽 聽 聽 聽 聽 HEADERS "Folio","Empleado","Nombre del empleado","Cantidad","Contado","Credito","Adeudo","Can","Motivo de la cancelaci贸n";
聽 聽 聽 聽 聽 聽 聽 聽 PICTURES "@Z 9999999","@Z 99999",NIL,"@Z 999","@Z 99,999.99","@Z 99,999.99","@Z 99,999.99",NIL,NIL;
聽 聽 聽 聽 聽 聽 聽 聽 JUSTIFY {AL_RIGHT,AL_RIGHT,AL_LEFT,AL_RIGHT,AL_RIGHT,AL_RIGHT,AL_RIGHT,AL_CENTER,AL_LEFT};
聽 聽 聽 聽 聽 聽 聽 聽 FOOTERS AUTOSORT


Las columnas 5 y 6 (Contado y credito respectivamente) las defino posteriormente as铆:

Code (fw): Select all Collapse
聽 聽 聽 聽 聽 聽 聽 聽WITH OBJECT :Contado
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :bStrData 聽聽聽 聽 聽 聽 := { || IF(oRsHdr:RecordCount() > 0 .AND.;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽oRsHdr:Fields("HDR_CLI"):Value = NIL,;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽TRANSFORM(oRsHdr:Fields("HDR_TOT"):Value,"@Z 999,999.99"),SPACE(01))}
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :nHeadStrAlign聽 := AL_RIGHT
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :nFooterType 聽 聽:= AGGR_SUM
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :bSumCondition 聽:= { || ! oRsHdr:Fields("HDR_CAN"):Value }
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :cFooterPicture := "@Z 99,999,999.99"
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :nFootStrAlign聽 聽:= AL_RIGHT
聽 聽 聽 聽 聽 聽 聽 聽END

聽 聽 聽 聽 聽 聽 聽 聽WITH OBJECT :Credito
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :bStrData 聽聽聽 聽 聽 聽 := { || IF(oRsHdr:RecordCount() > 0 .AND.;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽oRsHdr:Fields("HDR_CLI"):Value > 0,;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽TRANSFORM(oRsHdr:Fields("HDR_TOT"):Value,"@Z 999,999.99"),SPACE(01))}
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :nHeadStrAlign聽 := AL_RIGHT
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :nFooterType 聽 聽:= AGGR_SUM
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :bSumCondition 聽:= { || ! oRsHdr:Fields("HDR_CAN"):Value }
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :cFooterPicture := "@Z 99,999,999.99"
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :nFootStrAlign聽 聽:= AL_RIGHT
聽 聽 聽 聽 聽 聽 聽 聽END


Aunque tengo definido obtener la suma en ambas columnas, no se muestra el total.

Alguna pista?

Saludos
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
Posts: 1344
Joined: Wed Nov 16, 2005 09:14 PM
Re: Problema con xBrowse
Posted: Wed Apr 27, 2022 04:10 PM
Armando:
Prueba con .
Code (fw): Select all Collapse
:Value( IF(oRsHdr:RecordCount() > 0 .AND.  oRsHdr:Fields("HDR_CLI"):Value = NIL,;
                                                               oRsHdr:Fields("HDR_TOT"):Value,0)}
Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Re: Problema con xBrowse
Posted: Wed Apr 27, 2022 04:38 PM

C茅sar:

Gracias por el consejo, pero no sigue sin pintar los totales al pie de xBrowse.
Ser谩 que no entend铆?

Saludos

SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
Posts: 1344
Joined: Wed Nov 16, 2005 09:14 PM
Re: Problema con xBrowse
Posted: Wed Apr 27, 2022 07:29 PM

Armando, en algun momento haces oBrw:MakeTotals() ? No lo veo en el c贸digo que pasaste, tal vez est谩 mas abajo en tu c贸digo

Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Re: Problema con xBrowse
Posted: Wed Apr 27, 2022 07:48 PM
C茅sar:

S铆, lo tengo m谩s abajo, solo que no lo mostr茅 en el trozo de c贸digo anterior

Code (fw): Select all Collapse
聽 聽 聽 聽 聽:MakeTotals()
聽 聽 END


Saludos
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Problema con xBrowse
Posted: Fri Apr 29, 2022 10:53 AM
Code (fw): Select all Collapse
   REDEFINE XBROWSE oBrw ID 200 OF oDlg;
       DATASOURCE oRsHdr;
       COLUMNS "HDR_FOL","HDR_CLI","CLI_NOM","HDR_CTD", ;
       "IF(EMPTY(HDR_CLI),HDR_TOT,0.00)", ;
       "IF(EMPTY(HDR_CLI),0.00,HDR_TOT)", ;
       "HDR_SDO","HDR_CAN","HDR_MOT";
       COLSIZES 50,55,250,60,90,90,90,35,200;
       HEADERS "Folio","Empleado","Nombre del empleado","Cantidad","Contado","Credito","Adeudo","Can","Motivo de la cancelaci贸n";
       PICTURES "9999999","99999",NIL,"999","999,999.99","999,999.99","99,999.99",NIL,NIL;
       FOOTERS AUTOSORT
    

   WITH OBJECT oBrw
      :lDsplayZeros     := .f.  // No need for "@Z " picture clause
      WITH OBJECT :Contado
         :nFooterType    := AGGR_SUM
         :bSumCondition  := { || ! oBrw:Can:Value }  // CHECK  THIS LINE
      END

      WITH OBJECT :Credito
         :nFooterType    := AGGR_SUM
         :bSumCondition  := { || ! oBrw:Can:Value }  // CHECK THIS LINE
      END
      :MakeTotals()
      //
      :CreateFromCode()            
   END
Regards



G. N. Rao.

Hyderabad, India
Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Re: Problema con xBrowse
Posted: Fri Apr 29, 2022 04:03 PM
Mr Rao:

I'm afraid your advise does not work because don't show the values, here is my full code

Code (fw): Select all Collapse
聽 聽 聽 聽 聽 聽 REDEFINE XBROWSE oBrw ID 200 OF oDlg;
聽 聽 聽 聽 聽 聽 DATASOURCE oRsHdr;
聽 聽 聽 聽 聽 聽 聽 聽 COLUMNS "HDR_FOL",;
聽 聽 聽 聽 聽 聽 聽 聽 聽 "HDR_CLI",;
聽 聽 聽 聽 聽 聽 聽 聽 聽 "CLI_NOM",;
聽 聽 聽 聽 聽 聽 聽 聽 聽 "HDR_CTD",;
聽 聽 聽 聽 聽 聽 聽 聽 聽 "IF(EMPTY(HDR_CLI),HDR_TOT,0.00)", ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 "IF(EMPTY(HDR_CLI),0.00,HDR_TOT)", ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 "HDR_SDO",;
聽 聽 聽 聽 聽 聽 聽 聽 聽 "HDR_CAN",;
聽 聽 聽 聽 聽 聽 聽 聽 聽 "HDR_MOT";
聽 聽 聽 聽 聽 聽 COLSIZES 50,55,250,60,90,90,90,35,200;
聽 聽 聽 聽 聽 聽 聽 聽 HEADERS "Folio","Empleado","Nombre del empleado","Cantidad","Contado","Credito","Adeudo","Can","Motivo de la cancelaci贸n";
聽 聽 聽 聽 聽 聽 PICTURES "@Z 9999999","@Z 99999",NIL,"@Z 999","@Z 99,999.99","@Z 99,999.99","@Z 99,999.99",NIL,NIL;
聽 聽 聽 聽 聽 聽 JUSTIFY {AL_RIGHT,AL_RIGHT,AL_LEFT,AL_RIGHT,AL_RIGHT,AL_RIGHT,AL_RIGHT,AL_CENTER,AL_LEFT};
聽 聽 聽 聽 聽 聽 聽 聽 FOOTERS AUTOSORT

聽 聽 聽 聽 聽 聽 oBrw:lDisplayZeros := (.F.)

聽 聽 聽 聽 聽 聽 聽 聽 WITH OBJECT oBrw
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :l2007 聽 聽 聽 聽 聽 聽:= (.F.)
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :lHScroll 聽 聽 聽 聽 := (.F.)
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :lVScroll 聽 聽 聽 聽 := (.F.)
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :nMarqueeStyle 聽 聽:= MARQSTYLE_HIGHLROW
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :nColDividerStyle := LINESTYLE_LIGHTGRAY
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :nRowDividerStyle := LINESTYLE_LIGHTGRAY
聽 聽聽聽 聽 聽 聽 聽 聽 :SetGroupHeader( "I M P O R T E S",05,06 )
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :nHeaderHeight聽 聽 聽 := 25
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :nRowHeight聽聽 聽 聽 聽 := 22
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :nFooterHeight聽 聽 聽 := 25
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :bClrHeader 聽 聽 聽 := { || {CLR_WHITE,CLR_BLACK} }
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :bClrFooter 聽 聽 聽 := { || {CLR_WHITE,CLR_BLACK} }
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :bClrSel 聽 聽 聽 聽 聽:= { || IF( oBrw:KeyNo % oApp:nRowsInt == 0 ,{ CLR_BLACK, oApp:nRowParClr },{ CLR_BLACK, oApp:nRowNonClr }) }
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :bClrSelFocus 聽 聽 := { || {oApp:nFClrFocus,oApp:nBClrFocus} }
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :bClrStd 聽 聽 聽 聽 聽:= { || IF( oBrw:KeyNo % oApp:nRowsInt == 0 ,{ CLR_BLACK, oApp:nRowParClr },{ CLR_BLACK, oApp:nRowNonClr }) }
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :nRecSelColor 聽 聽 := oApp:nRowParClr
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :lDisplayZeros 聽 聽:= (.F.)

聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 WITH OBJECT :aCols[01]
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :cOrder聽:= "A"
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 END

聽 聽 聽 聽 聽 聽 聽 聽WITH OBJECT :Cantidad
聽 聽 聽 聽 聽 聽 聽 聽 聽 :nFootStrAlign 聽:= AL_RIGHT
聽 聽 聽 聽 聽 聽 聽 聽 聽 :bFooter 聽 聽 聽 聽:= { || "Totales =>" }
聽 聽 聽 聽 聽 聽 聽 聽END

聽 聽 聽 聽 聽 聽 聽 聽WITH OBJECT :Contado
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :nHeadStrAlign 聽:= AL_RIGHT
聽 聽 聽 聽 聽 聽 聽 聽 聽 :nFooterType 聽 聽:= AGGR_SUM
聽 聽 聽 聽 聽 聽 聽 聽 聽 :bSumCondition 聽:= { || ! oBrw:Can:Value } 聽// CHECK 聽THIS LINE
聽 聽 聽 聽 聽 聽 聽 聽 聽 :nFootStrAlign 聽:= AL_RIGHT
聽 聽 聽 聽 聽 聽 聽 聽 聽 :cFooterPicture:= "@Z 99,999,999.99"
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 END


聽 聽 聽 聽 聽 聽 聽 聽WITH OBJECT :Credito
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :nHeadStrAlign 聽:= AL_RIGHT
聽 聽 聽 聽 聽 聽 聽 聽 聽 :nFooterType 聽 聽:= AGGR_SUM
聽 聽 聽 聽 聽 聽 聽 聽 聽 :bSumCondition 聽:= { || ! oBrw:Can:Value } 聽// CHECK 聽THIS LINE
聽 聽 聽 聽 聽 聽 聽 聽 聽 :cFooterPicture := "@Z 99,999,999.99"
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :nFootStrAlign聽 聽:= AL_RIGHT
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 END

聽 聽 聽 聽 聽 聽 聽 聽WITH OBJECT :Adeudo
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :nHeadStrAlign聽 聽:= AL_RIGHT
聽 聽 聽 聽 聽 聽 聽 聽 聽 :nFooterType 聽 聽:= AGGR_SUM
聽 聽 聽 聽 聽 聽 聽 聽 聽 :bSumCondition 聽:= { || ! oBrw:Can:Value } 聽// CHECK 聽THIS LINE
聽 聽 聽 聽 聽 聽 聽 聽 聽 :cFooterPicture := "@Z 99,999,999.99"
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 :nFootStrAlign聽 聽:= AL_RIGHT
聽 聽 聽 聽 聽 聽 聽 聽END

聽 聽 聽 聽 聽 聽 聽 聽WITH OBJECT :Can
聽 聽 聽 聽 聽 聽 聽 聽 聽 :SetCheck( { "SI16","NO16" } )
聽 聽 聽 聽 聽 聽 聽 聽END

聽 聽 聽 聽 聽 聽 聽 聽:MakeTotals()
// 聽 聽 聽 聽 聽 聽 聽 :CreateFromCode() 聽 聽 // This line makes an error DUPLICATED ID 140
聽 聽 聽 聽 聽 聽 聽 聽 END


BTW, the HDR_CLI field is a NULL field type, some records has a null value, some records has a number value.



With best regards
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Problema con xBrowse
Posted: Sat Apr 30, 2022 04:40 AM

BTW, the HDR_CLI field is a NULL field type, some records has a null value, some records has a number value.

That is the reason, we used Empty()

XBrowse internally translates the expression "IF(EMPTY(HDR_CLI),HDR_TOT,0.00)" into a codeblock like this and assigns to oCol:bEditValue

Code (fw): Select all Collapse
:bEditValue := { |x,oCol| If( Empty( oCol:oBrw:oRs:Fields( "HDR_CLI" ):Value ) ), ;
oCol:oBrw:oRs:Fields( "HDR_TOT" ):Value, 0.00 ) }


Please never use bStrData. Deprecated many years ago.
The codebock evaluates to a Character Value, which XBrowse faithfully displays in the Cell.
XBrowse uses a numeric value returned by oCol:bEditValue for internal calculations and totals.

I do not have access to your tables are its contents.

I am providing a sample implementing a similar solution with 'customer' table on the FWH provided MSSQL cloud server. We can all use this server to post examples and problems.

Sample program:
Code (fw): Select all Collapse
#include "fivewin.ch"

function Main()

聽 聽local oCn, oRs, oDlg, oFont, oBrw

聽 聽oCn 聽 := FW_MSSQLDB() 聽// FWH MSSQL Cloud server
聽 聽oRs 聽 := FW_OpenRecordSet( oCn, "customer" )

聽 聽FWNumFormat( "A", .t. )

聽 聽DEFINE FONT oFont NAME "Segoe UI" SIZE 0,-16
聽 聽DEFINE DIALOG oDlg SIZE 600,400 PIXEL TRUEPIXEL FONT oFont

聽 聽@ 20,20 XBROWSE oBrw SIZE -20,-20 PIXEL OF oDlg ;
聽 聽 聽 DATASOURCE oRs ;
聽 聽 聽 COLUMNS "First", "Married", ;
聽 聽 聽 聽 聽"IF(EMPTY(MARRIED),SALARY,0) AS M_Salary PICT '9,999,999.99'", ;
聽 聽 聽 聽 聽"IF(EMPTY(MARRIED),0,SALARY) AS S_Salary PICT '9,999,999.99'", ;
聽 聽 聽 聽 聽"Age" ;
聽 聽 聽 FOOTERS LINES NOBORDER

聽 聽WITH OBJECT oBrw
聽 聽 聽 :SetChecks( nil, .t. 聽)
聽 聽 聽 :lDisplayZeros 聽 聽:= .f.
聽 聽 聽 :nStretchCol 聽 聽 聽:= 聽STRETCHCOL_WIDEST
聽 聽 聽 :SetGroupHeader( "SALARY", 3, 4 )
聽 聽 聽 :M_Salary:nFooterType := AGGR_SUM
聽 聽 聽 :S_Salary:nFooterType := AGGR_SUM
聽 聽 聽 :MakeTotals()
聽 聽 聽 :CreateFromCode()
聽 聽END

聽 聽ACTIVATE DIALOG oDlg CENTERED

聽 聽oRs:Close()
聽 聽oCn:Close()

return nil




Please copy the program to your fwh\samples folder and build and run with buildh.bat or buildx.bat without any changes and you will see it working the expected way. If this sample works, please check your table, table contents and your program. It should also work.

-------------
Please check if all values of HDR_TOT in all the above 6 rows are Empty.
Regards



G. N. Rao.

Hyderabad, India
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Problema con xBrowse
Posted: Sat Apr 30, 2022 08:19 AM
We created a small table with the data appearing in the screen shot you provided on the demo server.
Prepared a similar program with exactly the same logic used in your program.

Sample:
Code (fw): Select all Collapse
#include "fivewin.ch"

function Main()

   local oCn, oRs, oDlg, oFont, oBrw

   FWNumFormat( "A", .t. )

   oCn   := FW_MSSQLDB()
   oRs   := FW_OpenRecordSet( oCn, "arm_hdr" )
   XBROWSER oRs SETUP ( oBrw:lDisplayZeros := .f. )

   DEFINE FONT oFont NAME "Segoe UI" SIZE 0,-13
   DEFINE DIALOG oDlg SIZE 920,350 PIXEL TRUEPIXEL FONT oFont

   @ 20,20 XBROWSE oBrw SIZE -20,-20 PIXEL OF oDlg ;
      DATASOURCE oRs ;
      COLUMNS "HDR_FOL","HDR_CLI","CLI_NOM","HDR_CTD", ;
       "IF(EMPTY(HDR_CLI),HDR_TOT,0.00)", ;
       "IF(EMPTY(HDR_CLI),0.00,HDR_TOT)", ;
       "HDR_SDO","HDR_CAN","HDR_MOT";
       COLSIZES 50,55,250,60,90,90,90,35,200;
       HEADERS "Folio","Empleado","Nombre del empleado","Cantidad",;
         "Contado","Credito","Adeudo","Can","Motivo de la cancelaci贸n";
       PICTURES "9999999","99999",NIL,"999","99,999.99","99,999.99","99,999.99" ;
       FOOTERS LINES AUTOSORT NOBORDER

   WITH OBJECT oBrw
      :SetChecks( nil, .t.  )
      :lDisplayZeros    := .f.
      :nStretchCol      :=  STRETCHCOL_WIDEST
      :SetGroupHeader( "I M P O R T E S",05,06  )
      WITH OBJECT :Contado
         :nFooterType := AGGR_SUM
         :bSumCondition := { || !oBrw:Can:Value }
      END
      WITH OBJECT :Credito
         :nFooterType := AGGR_SUM
         :bSumCondition := { || !oBrw:Can:Value }
      END
      :MakeTotals()
      :CreateFromCode()
   END

   ACTIVATE DIALOG oDlg CENTERED

   oRs:Close()
   oCn:Close()

return nil


Raw contents of the table:


Browse the way you wanted with our code:


Please build and run this program in fwh\samples folder, without any changes.
Regards



G. N. Rao.

Hyderabad, India
Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Re: Problema con xBrowse
Posted: Mon May 02, 2022 11:50 PM

Mr. Rao:

May I see the structure of your table?.

Regards

SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Problema con xBrowse
Posted: Tue May 03, 2022 06:32 AM
Did you copy the program to your fwh\samples folder, build and run it?

Then you know the table is not hidden from you. This is not on my personal server here.
You are connected to the server. You have full access to this table and all other tables on this cloud server.
You can query the table yourself and find out any information you want.

Anyway, if you see the screenshot of the Raw XBrowse of the table we can see:
Code (fw): Select all Collapse
HDR_FOL,HDR_CLI,HDR_CTD, HDR_TOT : NUMERIC
HDR_CAN : BOOLEAN
CLI_NOM,HDR_MOT : VARCHAR
Regards



G. N. Rao.

Hyderabad, India
Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Re: Problema con xBrowse
Posted: Tue May 03, 2022 02:00 PM

Mr. Rao and friends.

The problem is solved, thanks Mr. Rao.

Regards

SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero

Continue the discussion