Re: Controling AddNew in grid by Stefan
Stefan
Sat Dec 04 06:54:54 CST 2004
When your remote view uses Optimistic Row Buffering (default),
there is an implicit TableUpdate() attempt as soon as the record
pointer (tries to) move. So you can either explicitely try to
bSuccess = TableUpdate(...
If Not bSuccess
TableRevert(...
Endif
or, maybe less useful in you scenario, try table buffering
CursorSetProp("Buffering", 5, "yourAlias")
and care for the actual backend commit later
hth
-Stefan
<John Smith> schrieb im Newsbeitrag news:O2wIt3f2EHA.4028@TK2MSFTNGP15.phx.gbl...
>
> Is it possible to control adding new row in grid?
>
> The problem is that I have remote view represented in grid and after adding
> new row (blank - without data) I am not able to leave that row. Every attempt
> gives the message "Cannot insert an empty row from a view into its base table".
>
> Is it possible to cancel that row?
>