... Syntaxes are like Update method. - Record Object handles Calculated columns and Aliased column names - Method BookMark is now modified as SETGET method. - New Data: bEdit (format { |oRec|UserEdit( oRec ) } ) for user edit instead of default edit procedure. - Enhancement: Method SqlQuery() ...
... the nKey is not Escape key and 2nd parameter is not nil. As we keep recommending and requesting from time to time, safer way would be to assign a SetGet block as bEditValue and let the XBrowse construct a safe bOnPostEdit codeblock. If there are some actions to be taken comsequent on a change ...
... encapsulamiento, y no asignar valores directamente a las datas de los objetos que creamos, ni usarlas , sino que deben existir unos metodos SETGET de cada DATA al crear la CLASE para este fin y, en el caso de que las DATAs sean objetos, como es el caso, realice el :End() del objeto antes ...
... is diaplayed. When edited the codeblock is evaluated with the new value and column object as parameters. Therefore it is now possible to have setget blocks as contents of cells. This is particulary useful while browing arrays. We can have codeblocks as some of the cells operating on the entire ...
... oLbx8:aCols[ 2 ]:SetCheck() In case we are using ADD TO oBrw syntax and need the values to be edited, we need to use setget codeblocks like this. add oCol to oLBx8 header "Pass" ; data { |x| If( x == nil, oInsp:svcpas, oInsp:svcpas := x } SIZE ...
When we want to edit a column, it is advisable to assign bEditValue with SETGET block. :bEditValue := { |x| If( x != nil, FIELD->PASSWORD := Encrypt( x, cPw ), nil ), Decrypt( FIELD->PASSWORD, cPW ) } Now you can ...
... datasources. Example, we may first create xbrowse for RDD and then switch to TDatabase object. XBrowse automatically generates appropriate SETGET blocks and bOnPostEdit blocks. I advise that it is much safer to let this work done by xbrowse. bOnPreEdit: (introduced very recently) When inline ...
The SETGET Method KeyNo was not implemented in the older versions like 6.12. Instead of oBrw:KeyNo, we may use Eval( oBrw:bKeyNo,,oBrw ) for older versions of XBrowse. Using OrdKeyNo() works only for RDDs. Not useful while browsing ...
... 99,999,999.99" ;ALIAS 'ARQCHEQ' In this case XBrowse knows more information about the field 'VALOR' in the DBF 'ARQCHEQ' and builds setget block. bonpostedit block, tries to see what order tag is to be selected for autosort and more. This is the way to take the best out of XBrowse