I want to save changes made in xBrowse to a online file (MariaDB)
I"ve seen parts that uses
- Code: Select all Expand view RUN
oBrw[1]:lColChangeNotify := .t.
oBrw[1]:bChange := { |oBrw, uOlddata| Changedata( oBrw, uOlddata ) }
or
oBrw[1]:bChange := { |obrw| OnColChange( oBrw ) }
function OnColChange( oBrw )
// take action here
? oBrw:nColSel // --> new column number
? oBrw:SelectedCol() //--> new column object
? oBrw:SelectedCol():Value //--> value of the new column
// using the above data you take your action
return nil
But maybe there is also a new method in Xbrowse that handle this better ?
If any change in a cell are done, then I want to save (Fieldname, oldvalue, newvalue)
So I also need the Older data of the cell, and the new data.
Any samples that uses this technique ?