Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #972

Re: bBrowser 2.0.8.0 RowSelect( )

From "Jamal" <vodotnet_nospam@yahoo.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: bBrowser 2.0.8.0 RowSelect( )
Date 2011-04-30 11:42 -0400
Organization A noiseless patient Spider
Message-ID <iphako$os5$1@dont-email.me> (permalink)
References <ipfg5q$p4l$1@dont-email.me> <4dbb53eb$0$77724$c30e37c6@exi-reader.telstra.net>

Show all headers | View raw


Geoff,

I suspend notification already; commenting those extra calls did not break 
functionality.
If you use bBrowser, add RowSelect() and see how many times it is called 
<g>.

Jamal

"Geoff Schaller"  wrote in message 
news:4dbb53eb$0$77724$c30e37c6@exi-reader.telstra.net...

Jamal.

No - poor programming. You should re-enable the bBrowser functionality
because it has other reasons for doing it that way. You are going to
break other functionality.

It is better to manage a 'state' flag to say your window is built and
bBrowser has finished initialising. Now your "relation" mechanism can be
enabled off that method. Another way to achieve the same thing is to
turn off notification so that RowSelect does not fire.

But the KID stack error is yours - you are not managing objects properly
or you have regressive loops of some kind.

Geoff



"Jamal" <vodotnet_nospam@yahoo.com> wrote in message
news:ipfg5q$p4l$1@dont-email.me:

> I am using bBrowser 2.0.8.0  under VO 2837 and I faced a KID size limit
> exceeded messages.
>
> I traced the issue to RowSelect( ) callback method being called so many
> times during the Use(), Notify( ) and various other methods.  In fact, the
> RowSelect( ) was called Number Of Records listed in the bBrowser upon
> initial load! Imagine if you have thousands of records being loaded!
>
> I used the RowSelect( ) to load related child data into another bBrowser
> window based on the row selected in the the first bBrowser window. In the
> second bBrowser clear scope and set scope based on data selected in first
> bBrowser.
>
> I initially thought based on the vague documentation that it is invoked 
> when
> the user either clicks or selects the row via keyboard, but due to due to
> internal calls in various bBrowser methods, which I think are unnecessary
> calls, caused the KID stack to reach its limit.
>
> From the docs: "bBrowser:RowSelect() is a callback method that is called 
> by
> the bBrowser whenever another row is selected."
>
> Since I have source code, I commented out all those unnecessary calls (
> except in NotifyRecordChange( ) ), and loading the bBrowser is now faster
> and without the KID stack errors.
> The same goes for CellSelect( ) but I have no use for it at this time.
>
> Just thought to share this info. Are those issues resolved in 3.0 or 4.0?
>
> Jamal 

Back to comp.lang.clipper.visual-objects | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: bBrowser 2.0.8.0 RowSelect( ) "Jamal" <vodotnet_nospam@yahoo.com> - 2011-04-30 11:42 -0400
  Re: bBrowser 2.0.8.0 RowSelect( ) "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2011-05-01 10:15 +1000
    Re: bBrowser 2.0.8.0 RowSelect( ) "Jamal" <vodotnet_nospam@yahoo.com> - 2011-04-30 23:56 -0400
      Re: bBrowser 2.0.8.0 RowSelect( ) "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2011-05-01 16:56 +1000
      Re: bBrowser 2.0.8.0 RowSelect( ) "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-05-01 22:22 +0000
        Re: bBrowser 2.0.8.0 RowSelect( ) "Jamal" <vodotnet_nospam@yahoo.com> - 2011-05-01 19:54 -0400
          Re: bBrowser 2.0.8.0 RowSelect( ) "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-05-02 22:00 +0000
  Re: bBrowser 2.0.8.0 RowSelect( ) "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-05-01 22:22 +0000

csiph-web