Subject | Re: [IBO] ib_dataset.state bug? |
---|---|
Author | James Chua |
Post date | 2003-11-24T02:39:15Z |
Thanks. I guess I have to do some work around.
Geoff Worboys wrote:
Geoff Worboys wrote:
> > I have a form when create it puts the dataset on search
> > state. Then by coding from search state I put it into
> > insert mode like this dataset.insert; Here's the puzzle,
> > from insert mode when cancel(dataset.cancel;) I expect
> > the dataset will be in browse mode, but instead it was
> > put back in search mode. Is this the way it should be?
>
> And what do you think it should be browsing? No select
> was ever performed, you did not complete the insert and
> so nothing exists to browse.
>
> This is intentional behaviour (I know because I asked for
> it several years ago :-).
>
> The only slightly inconsistent behaviour is if you do
> something like this...
> search
> (in search mode)
> insert
> (in insert mode)
> post
> (in browse mode looking at inserted record)
> delete
> (still in browse mode looking at empty row
> because nothing left in buffers to browse)
>
> Actually its probably not inconsistent, since the same
> thing will happen if you delete everything from a
> normal browse view, but users dont generally expect to look
> at an empty row. I've been wondering whether my app should
> detect this situation and force back to search mode or
> something. I have not had any complaints about it so I
> have not done it. :-)
>
> What you dont want (IMHO) is for the query to barge ahead and
> execute a possibly incomplete set of search criteria, which
> would result in a huge or unpredictable result set.
>
> --
> Geoff Worboys
> Telesis Computing
>
>
> *Yahoo! Groups Sponsor*
> ADVERTISEMENT
> <http://rd.yahoo.com/SIG=12ckp9g6l/M=267637.4116730.5333196.1261774/D=egroupweb/S=1705007183:HM/EXP=1069726760/A=1853619/R=0/*http://www.netflix.com/Default?mqso=60178356&partid=4116730>
>
>
>
> ___________________________________________________________________________
> IB Objects - direct, complete, custom connectivity to Firebird or
> InterBase
> without the need for BDE, ODBC or any other layer.
> ___________________________________________________________________________
> http://www.ibobjects.com - your IBO community resource for Tech Info
> papers,
> keyword-searchable FAQ, community code contributions and more !
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
> <http://docs.yahoo.com/info/terms/>.