Page 1 of 3

New FWH 19.09

PostPosted: Sun Oct 13, 2019 11:14 am
by Antonio Linares

Re: New FWH 19.09

PostPosted: Sun Oct 13, 2019 5:13 pm
by ukoenig
Dear Antonio,

I noticed a problem with xBrowse
It seems celledit on doubleclick -> return doesn't save the values.

regards
Uwe :?:

Re: New FWH 19.09

PostPosted: Mon Oct 14, 2019 4:21 am
by shri_fwh
Dear Antonio,

May I know this HARUPDF NEW feature is also using EASYREPORT when we generate PDF directly ?


* HARUPDF:

- New class FWPdf (derived from class TPdf contributed by Mr. Carlos Mora
and improved and adapted for FWH.).
\fwh\source\classes\fwpdf.prg and tpdf.prg

Usage:
oPdf := FWPdf():New( cPdfFileName )
// write text, images, barcodes and other graphics with the same methods
// like Priner class.
oPdf:End() // saves the pdffile and ends the object

- In normal course, it is not necessary to instantiate the object
separately and instead we can use PRINT/ENDPRINT commands to write
portable code.

At present, the command:
PRINT oPrn [PREVIEW] FILE "filename.pdf"
// code
ENDPRINT
will save the printed matter to filename.pdf and display if the
clause PREVIEW is used.
This behaviour will continue.

If TPrinter():lUseHaruPDF is set to .T., and linked with harupdf
by REQUEST FWHARU, the above print command will generate the pdf file
using harupdf.

Re: New FWH 19.09

PostPosted: Mon Oct 14, 2019 10:14 pm
by Antonio Linares
Dear Uwe,

ukoenig wrote:Dear Antonio,

I noticed a problem with xBrowse
It seems celledit on doubleclick -> return doesn't save the values.

regards
Uwe :?:


We are reviewing it, many thanks for your feedback

Re: New FWH 19.09

PostPosted: Tue Oct 15, 2019 4:24 am
by nageswaragunupudi
ukoenig wrote:Dear Antonio,

I noticed a problem with xBrowse
It seems celledit on doubleclick -> return doesn't save the values.

regards
Uwe :?:


We tested here and found it is working fine.
This is a small sample
Code: Select all  Expand view
#include "fivewin.ch"

REQUEST DBFCDX

function Main()

   RDDSETDEFAULT( "DBFCDX" )

   XBROWSER "STATES.DBF" FASTEDIT

return nil

 


Image

If you are having any problem, please provide a small self contained sample to reproduce the problem.

Re: New FWH 19.09

PostPosted: Tue Oct 15, 2019 4:26 am
by nageswaragunupudi
Mr. Shridhar

It is not yet implemented for EasyReport.
We plan to implement it in the next version.

Re: New FWH 19.09

PostPosted: Tue Oct 15, 2019 8:39 am
by MOISES
Hello,

Can you please look at this?

viewtopic.php?f=3&t=37792

Thank you

Re: New FWH 19.09

PostPosted: Tue Oct 15, 2019 2:37 pm
by ukoenig
The problem doesn't belong to FASTEDIT
to get it working (EDIT_GET) I added the following line

:aCols[I]:bOnPostEdit := { | o, v | SAVE_VALUE1( oProj1, v, nColNo ), oProj1:Save() }

the value is saved to the DBF after celledit -> return
I didn't need this with FWH_19.06 but maybe the dialog / browser-structure is a bit complicated

regards
Uwe :D

Re: New FWH 19.09

PostPosted: Tue Oct 15, 2019 3:42 pm
by nageswaragunupudi
Nothing is complicated. Fastedit or not the behaviour is the same.
By writing your own bOnPostEdit, you are complicating your program.
Keep your program simple and everything works fine.

Please post a small sample and we suggest the recommended way.

Re: New FWH 19.09

PostPosted: Tue Oct 15, 2019 5:15 pm
by ukoenig
This is a full working section ( exe and prg ) for the FASTEDIT-test
The same is done with 3 connected DBF's

DOWNLOAD

http://www.pflegeplus.com/DOWNLOADS/Install4.zip

Image

regards
Uwe :D

Re: New FWH 19.09

PostPosted: Wed Oct 16, 2019 7:48 am
by byte-one
oPrint:roundbox(…) is not compatible to older FWH. The rectangle are turned 90 degrees and the pen is bigger!

Re: New FWH 19.09

PostPosted: Wed Oct 16, 2019 8:22 am
by nageswaragunupudi
We will check this.

Re: New FWH 19.09

PostPosted: Wed Oct 16, 2019 8:39 am
by byte-one
Thanks! The pen is also in oPrint:box(...) bigger as before. In my case the pens are from type "object"

Re: New FWH 19.09

PostPosted: Thu Oct 17, 2019 8:25 am
by ukoenig
For a better understanding.
The new test includes 2 compiled versions using FWH 19.06 and FWH 19.09

the difference :
Code: Select all  Expand view

I := 4
FOR I := 4 to len( oBrw:aCols )
      oCol := oBrw:aCols[ I ]
      oCol:nEditType := EDIT_GET
      // ------- only FWh 19.09 ----------

       // oCol:bOnPostEdit := {|o, v, n| IIF( n != VK_ESCAPE, ;
       // oProject:FieldPut( o:nCreationOrder, v ), ), ;
       // oProject:Save(), oBrw:RefreshCurrent() }

      // ------- only FWh 19.09 ----------
NEXT
 


DOWNLOAD

http://www.pflegeplus.com/DOWNLOADS/Install5.zip

Image

regards
Uwe :D

Re: New FWH 19.09

PostPosted: Thu Oct 17, 2019 10:18 am
by Ariel
Probaste con :
Code: Select all  Expand view

:bOnPostEdit:= { | oCol, xVal, nKey | If( nKey == VK_RETURN, oCol:value:= xVal,) }
 


Saludos.