Search found 82 matches: appending

Return to advanced search

Re: MariaDB RS AppendBlank

We recommend not to edit directly oRs:Fields. This is our recommendation when editing /appending records when not in XBrowse. For editing current record: oRs:Edit() For appending Record : oRs:Edit( .t. ) By default, this will display FWH default dialog. Obviously, ...
by nageswaragunupudi
Wed Sep 12, 2018 12:32 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: MariaDB RS AppendBlank (SOLVED)
Replies: 12
Views: 1677

Re: MariaDB BlankRow() returns with additional element/field

... is internally used and not to be directly used in the application program. I agree we used it in mariainv.prg sample. We will revise it. For appending a row, please do one of the two: 1. oRs:Append() < fill field data > oRs:Save() 2. oRec := oRs:Record( .t. ) // .t. for new recor <fill ...
by nageswaragunupudi
Fri Jun 08, 2018 6:16 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: MariaDB BlankRow() returns with additional ... (SOLVED)
Replies: 13
Views: 1750

Re: Test for Vertical Scroll hits EOF xBrowse ( rao )

... is .T. ( default) nil : Any other case. Typically, a programmer would like to insert a new row only if nKey != nil and is not already appending bPastEof would look like this: Code: :bPastEof := { |o,k| If( lAppending .or. k == nil, nil, ( oBrw:oRs:AddNew(), lAppending := .t., oBrw:Refresh() ...
by Rick Lipkin
Sat Feb 10, 2018 6:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Test for Vertical Scroll hits EOF xBrowse ( rao )
Replies: 14
Views: 6120

Re: Test for Vertical Scroll hits EOF xBrowse ( rao )

... is .T. ( default)nil    : Any other case.  Typically, a programmer would like to insert a new row only if nKey != nil and is not already appending bPastEof would look like this: :bPastEof         := { |o,k| If( lAppending .or. k == nil, nil, ( oBrw:oRs:AddNew(), lAppending ...
by nageswaragunupudi
Sat Feb 10, 2018 1:15 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Test for Vertical Scroll hits EOF xBrowse ( rao )
Replies: 14
Views: 6120

Re: xBrowse as record adding tool for data tables

Mr Reinaldo

If you still have sources of Clipper 5.3, see the sources of DBU and SAMPLE\BROWSE.PRG.
There you find the logic to create fantom record, without actually appending a record. Once user modifies any field, you can then insert the new record.
by nageswaragunupudi
Thu Oct 26, 2017 6:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse as record adding tool for data tables
Replies: 16
Views: 3055

Re: xBrowse as record adding tool for data tables

I see that Xbrowse show a blanco line for appending and editing a new record, but when you don't put any data into the row, it is not appended to the database and not shown also into the browse. I've seen in in combination with : oRs:lAutoAppend ...
by Marc Venken
Tue Oct 24, 2017 9:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse as record adding tool for data tables
Replies: 16
Views: 3055

xBrowse as record adding tool for data tables

... want to [**CAN NOT**] append a blank record to a table to be edited. I would like to append a blank record to the xbrowse for editing without appending the blank record to the table. I can take care of appending the new record after modifications to the table at another event. If you are wondering... ...
by reinaldocrespo
Tue Oct 24, 2017 3:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse as record adding tool for data tables
Replies: 16
Views: 3055

New FTDN September/Septiembre 2017 (FWH 17.09)

... "+" and "=" are always readonly - New METHOD FieldDefault( cnFld, [uDefault], [lRO] ) --> uDefault Set default values while appending new records. - New METHOD FieldPic( cnFld, [cPic] ) --> cPic - New METHOD FieldChoice( cnFld, [aList] ) --> aList List to be used in ...
by Antonio Linares
Wed Oct 04, 2017 7:43 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN September/Septiembre 2017 (FWH 17.09)
Replies: 3
Views: 3359

Re: TDatabase FWH 17.08 : Datas and Methods

This sample demonstrates usage of the following features of TDatabase 1. Using constructor Create() 2. Appending multiple rows of data with single call to :Append() 3. Setting default value for some fields 4. Setting Readonly flag for some fields 5. Using :bValidRow to ensure ...
by nageswaragunupudi
Fri Sep 15, 2017 3:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TDatabase FWH 17.08 : Datas and Methods
Replies: 1
Views: 1785

TDatabase FWH 17.08 : Datas and Methods

... for this column 33. FieldDefault( nFld/cFldName, [uDefault], [lRO] ) --> uDefault Sets/Queries default value to be used for the field while appending new data. Default values are first saved to DBF before saving data in aBuffer( FWH 17.08) 34. FieldGet( nPos/FieldName ) --> uValue 1. ...
by nageswaragunupudi
Fri Sep 15, 2017 12:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TDatabase FWH 17.08 : Datas and Methods
Replies: 1
Views: 1785

Re: FWHMARIADB Samples

... contain many fields, programmers often consider it expedient to read and browse only limited number of columns. But for the purpose of editing/appending all or more fields need to be edited in the dialog. There may be more than one dialog and these dialogs can be quite complex. Rowset provides ...
by nageswaragunupudi
Thu Apr 27, 2017 1:30 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWHMARIADB Samples
Replies: 48
Views: 20616

Re: FWH: MySql/MariaDB: RowSet object

... in FWHMARIA. I have a big xbrowse routine which captures key strokes, functions keys and a personalized popup menu that calls functions for appending, modifying, deleting, listing etc. I have a large clients table, but in a xbrowse I just show 4 fields out of 20+, in tDolphin, I have an ...
by Adolfo
Mon Apr 24, 2017 2:28 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH: MySql/MariaDB: RowSet object
Replies: 51
Views: 19623

XBrowse MakeTotals: Improvements in FWH 16.12 and 17.01

... There can be two cases. Case-1: Programs using the recommended built-in methods to edit / append / delete records, i.e, oBrw:EditSource( .t. ) for appending new records oBrw:EditSource() for Edit oBrw:Delete() for deletion of records. When these methods are used to add/edit/delete operations, the ...
by nageswaragunupudi
Fri Feb 03, 2017 3:23 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBrowse MakeTotals: Improvements in FWH 16.12 and 17.01
Replies: 8
Views: 5598

New FTDN January/Enero 2017 (FWH 17.01)

... retotalled without any extra code from the programmer. If the programmer does not use built-in datarow but uses his own way of editing or appending data then: Appending: Call oBrw:SaveTots( .t. ) // .t. before appending Append data Call oBrw:ReCalcTotals() // faster than make totals Modifying/Editing: ...
by Antonio Linares
Wed Jan 25, 2017 8:37 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN January/Enero 2017 (FWH 17.01)
Replies: 1
Views: 2060

Re: FWH: MySql/MariaDB: RowSet object

... "states" )oRs:bEdit := { |oRec| EditStatesDialog( oRec ) }oRs:Edit() // or oRs:Edit( .t. ) for appending  This is the tempate for the EditDialog function EditDialog( oRec )   local lNew  := ( oRec:RecNo == 0 )   local oDlg   local ...
by nageswaragunupudi
Fri Dec 16, 2016 4:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH: MySql/MariaDB: RowSet object
Replies: 51
Views: 19623
PreviousNext

Return to advanced search