Search found 52 matches: bonchange

Return to advanced search

Re: XBROWSE exclude or control ARROW keys in edit mode

... can be cases where when user modifies the value of a column, some other column's value may need to be changed based on some calculation. oCol:bOnChange codeblock is intended for this purpose. Example usage: oBrw:Quantity:bOnChange := { |oCol, uOldVal| oBrw:Sales:VarPut( oCol:Value * oBrw:Price:Value ...
by nageswaragunupudi
Mon Nov 24, 2014 4:13 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE exclude or control ARROW keys in edit mode
Replies: 13
Views: 5386

Re: XBROWSE exclude or control ARROW keys in edit mode

... .... oGet:cText := <replace> endif return .t. If we want to modify another field consequent on a user input in a column we may use oCol:bOnChange oCol:bOnChange := { |oCol,uOldValue| OnColChange( oCol, uOldValue ) } func OnColChange( oCol, uOldValue ) FIELD->PASSED := oCol:Value > ...
by nageswaragunupudi
Wed Nov 19, 2014 9:22 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE exclude or control ARROW keys in edit mode
Replies: 13
Views: 5386

Re: xbrowse picture for string with percentual field

I tried with bOnChange method but it not run ok or I not Know how set the right variable

sample
:bOnChange := { |oCol, uOldVal| MyFuncOnChange( oCol, uOldVal ) }
by Silvio.Falconi
Mon Nov 10, 2014 12:20 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse picture for string with percentual field
Replies: 7
Views: 1690

Re: Problem with ADO and xBrowse

... codeblock was necessary). You wanted that once a column is edited, another field is to be changed automatically. This is to be achieved by oCol:bOnChange := { || oOtherCol:VarPut( <dependantvalue> ) } Now let me post a revised sample of your code: @ 0,0 XBROWSE oBrw OF oDlg RECORDSET oRs ...
by nageswaragunupudi
Thu Oct 09, 2014 3:56 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with ADO and xBrowse
Replies: 6
Views: 1216

Re: xBrowse: How to detect when value in a SetCheck col changed?

Thanks Rao!

When user checked a row, I want to display a message at the top using a say control. That can now be accomplished using bOnChange.

However once user click somewhere else, in other words the col lost focus, I want to erase that message. Is there such a bLostFocus data?

TIA
by hua
Wed Jul 23, 2014 3:00 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse: How to detect when value in a SetCheck col changed?
Replies: 4
Views: 847

Re: xBrowse: How to detect when value in a SetCheck col changed?

oCol:bOnChange := { |oCol, uOldVal| MyFuncOnChange( oCol, uOldVal ) }
by nageswaragunupudi
Tue Jul 22, 2014 10:09 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse: How to detect when value in a SetCheck col changed?
Replies: 4
Views: 847

New FTDN July/Julio 2013 (FWH 13.07)

... 2010 style xbrowse column menus are also shown with 2010 style. * Enhancement: Method Report() prints page numbers at bottom center. * Fix: oCol:bOnChange was not getting triggered when the change is only in the case. Now fixed. * New: DATA bEdit. { |oRec| MyEdit( oRec )}. This data is used by ...
by Antonio Linares
Tue Jul 30, 2013 11:06 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN July/Julio 2013 (FWH 13.07)
Replies: 1
Views: 2459

Re: XBrowse comportamiento raro bEditValid (Solucionado)

Holas,

he solucionado este problema definiendo oCols:lAutoSave := .F. en la columna correspondiente, este comportamiento se da en los metodos, bOnPostEdit, bEditValid, bOnChange, por lo que creo que es un bug de xBrowse

saludos

Marcelo
by Marcelo Via Giglio
Wed Jun 19, 2013 6:48 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: XBrowse comportamiento raro bEditValid (SOLUCIONADO)
Replies: 1
Views: 611

Re: XBrowse bEditValid strange behavior

Hello Mr. Rao,

thanks for response, finally I found the problem, the strange behavior is when set oCol:lAutoSave := .T. , this behavior is in all the the method bEditValid, bOnPostEdit, bOnChange, then I think this is a bug in xBrowse

Muchas gracias

saludos

Marcelo
by Marcelo Via Giglio
Wed Jun 19, 2013 6:45 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBrowse bEditValid strange behavior (SOLVED)
Replies: 4
Views: 1295

Re: XBrowse bEditValid strange behavior

... is limited only to validate the input and return valid or not. If we want to take some action after a cell value is changed, please use oCol:bOnChange := { |oCol, uOldValue| <any kind of action here> } Sameway oCol:bEditWhen also needs to be a silent function and return whether the ...
by nageswaragunupudi
Wed Jun 19, 2013 6:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBrowse bEditValid strange behavior (SOLVED)
Replies: 4
Views: 1295

To Nages xbrowse onpostedit

... on oCol:bOnPostEdit := {|o, v, n| iif( n != VK_ESCAPE, ( PA->(DBRLOCK()), FieldPut( o:nCreationOrder, v ), PA->(DBUNLOCK()) ), ) } oCol:bOnChange := { || oBrw:MakeTotals(), oBrw:RefreshFooters() } it cannot save and make error on another field I have on dbf http://img854.imageshack.us/img854/5595/errct.jpg ...
by Silvio.Falconi
Thu Apr 18, 2013 10:37 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: To Nages xbrowse onpostedit
Replies: 5
Views: 1111

New FTDN March/Marzo 2013 (FWH 13.03)

... corresponding the value in the editlistbound. - Enhancement: Method Paste() now updates dependent calculated columns also by evaluation oCol:bOnChange - Enhancement: TDOLPHIN Browse: Improved compatibility with TDolphin. Appropriate bOnPostEdit block is generated internally. No need to write ...
by Antonio Linares
Thu Mar 28, 2013 11:33 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN March/Marzo 2013 (FWH 13.03)
Replies: 0
Views: 2511

Re: total in xbrowse

... := aBrowse[ i, 2 ] oCol:nWidth := aBrowse[ i, 3 ] if !Empty(aBrowse[ i, 4 ]) oCol:cEditPicture:=aBrowse[ i, 4 ] Endif oCol:oDataFont := oFont oCol:bOnChange := { ||Calcolo_Riga(IN->ITQTY,IN->ITUNIT,IN->ITTAX,IN->ITDESCONT,OBRW),; oBrw:MakeTotals(), ; oBrw:RefreshFooters() } NEXT WITH ...
by Silvio.Falconi
Tue Feb 26, 2013 9:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: total in xbrowse
Replies: 26
Views: 4944

Re: ERROR XBROWSE MAKETOTALS

... i, 2 ] oCol:nWidth := aBrowse[ i, 3 ] if !Empty(aBrowse[ i, 4 ]) oCol:cEditPicture:=aBrowse[ i, 4 ] Endif oCol:oDataFont := oFontGrid oCol:bOnChange := { ||CALC(IN->ITQTY,IN->ITUNIT,IN->ITTAX,IN->ITDESCONT,OBRW),; oBrw:MakeTotals(), ; oBrw:RefreshFooters() } NEXT but it not ...
by Silvio.Falconi
Sat Feb 09, 2013 9:34 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: ERROR XBROWSE MAKETOTALS
Replies: 6
Views: 2091

footer on xbrowse

... aBrowseRb[ i, 2 ] oCol:nWidth := aBrowseRb[ i, 3 ] NEXT AEval( oRLbx:aCols, { |o| o:cEditPicture := '99,999.99', ; o:nFooterType := AGGR_SUM, ; o:bOnChange := { || oRLbx:MakeTotals(),oRLbx:RefreshFooters() } }, 2 ) oRLbx:aCols[ 7 ]:cFooter := 'Totale' oRLbx:Totale:cFooter := 'Totale' oRLbx:nStretchCol ...
by Silvio
Sat Mar 05, 2011 8:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: footer on xbrowse
Replies: 2
Views: 643
PreviousNext

Return to advanced search