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


Groups > comp.lang.clipper.visual-objects > #2800 > unrolled thread

update owner control at bBrowser record change

Started by"Heli-Team.pl Portal" <admin1@heli-team.pl>
First post2012-01-11 09:07 -0800
Last post2012-01-12 03:52 -0800
Articles 5 — 3 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  update owner control at bBrowser record change "Heli-Team.pl Portal" <admin1@heli-team.pl> - 2012-01-11 09:07 -0800
    Re: update owner control at bBrowser record change "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2012-01-12 07:57 +1100
    Re: update owner control at bBrowser record change "Jamal" <vodotnet_nospam@yahoo.com> - 2012-01-11 18:39 -0500
    Re: update owner control at bBrowser record change "Jamal" <vodotnet_nospam@yahoo.com> - 2012-01-11 18:50 -0500
      Re: update owner control at bBrowser record change "Heli-Team.pl Portal" <admin1@heli-team.pl> - 2012-01-12 03:52 -0800

#2800 — update owner control at bBrowser record change

From"Heli-Team.pl Portal" <admin1@heli-team.pl>
Date2012-01-11 09:07 -0800
Subjectupdate owner control at bBrowser record change
Message-ID<80cae1ec-feb8-4005-b1db-215d05c95865@p42g2000vbt.googlegroups.com>
Hello Friends,

I can't help myself to solve following problem:
I have a window that has a bBrowser and four single line edit controls
which shall contain actual values from record selected in bBrowser.
How can I make the SLE's to update their content (or to make bBrowser
to do that) when selected/highlighted record in bbrowser changes?
What kind of message is sent ot method invoked by bBrowser when record
changes?
I'm sorry if it's a vary basic question...

best regards,
Gregory

[toc] | [next] | [standalone]


#2801

From"Stephen Quinn" <stevejqNO@bigpondSPAM.net.au>
Date2012-01-12 07:57 +1100
Message-ID<KMmPq.1440$v14.135@viwinnwfe02.internal.bigpond.com>
In reply to#2800
Gregory

> What kind of message is sent ot method invoked by bBrowser when record
> changes?
Not so much a bBrowser thing <g>
Use the Notify method of the window to update the SLEs (is one way<g>).
Eg
DO CASE
CASE uMsg = NOTIFY_RECORDCHANGE
    // Update your SLEs

One way to update the contents of the changed SLEs to the bBrowser is - 
you'll probably need to press return to exit the SLE and process the data 
then. Alternatively you can use the FieldSpec of the SLE to link the SLE to 
the actual Server field (I don't recomend this though).

A much simpler way is to provide a 'modify' button and pop up another window 
with the relevant data ready to edit - save/cancel data on window close.

CYA
Steve 

[toc] | [prev] | [next] | [standalone]


#2802

From"Jamal" <vodotnet_nospam@yahoo.com>
Date2012-01-11 18:39 -0500
Message-ID<jel6jv$shr$1@dont-email.me>
In reply to#2800
Gregory,

Use the bBrowser RowSelect(bRowEvent) callback method. See the docs.
Then update your SLEs.

For example:

Method RowSelect() class MyBrowserWin

    self:oDCmSLE1:Value := self:oDCbBrowser1:Server:Fieldget(#SomeField)
    etc
Return self

Jamal

"Heli-Team.pl Portal"  wrote in message 
news:80cae1ec-feb8-4005-b1db-215d05c95865@p42g2000vbt.googlegroups.com...

Hello Friends,

I can't help myself to solve following problem:
I have a window that has a bBrowser and four single line edit controls
which shall contain actual values from record selected in bBrowser.
How can I make the SLE's to update their content (or to make bBrowser
to do that) when selected/highlighted record in bbrowser changes?
What kind of message is sent ot method invoked by bBrowser when record
changes?
I'm sorry if it's a vary basic question...

best regards,
Gregory 

[toc] | [prev] | [next] | [standalone]


#2803

From"Jamal" <vodotnet_nospam@yahoo.com>
Date2012-01-11 18:50 -0500
Message-ID<jel77j$vns$1@dont-email.me>
In reply to#2800
Just realized, you may need to code:

bBrowser:NotifyFieldChange() method or oBrowser:NotifyRecordChange( )

Jamal

"Heli-Team.pl Portal"  wrote in message 
news:80cae1ec-feb8-4005-b1db-215d05c95865@p42g2000vbt.googlegroups.com...

Hello Friends,

I can't help myself to solve following problem:
I have a window that has a bBrowser and four single line edit controls
which shall contain actual values from record selected in bBrowser.
How can I make the SLE's to update their content (or to make bBrowser
to do that) when selected/highlighted record in bbrowser changes?
What kind of message is sent ot method invoked by bBrowser when record
changes?
I'm sorry if it's a vary basic question...

best regards,
Gregory 

[toc] | [prev] | [next] | [standalone]


#2804

From"Heli-Team.pl Portal" <admin1@heli-team.pl>
Date2012-01-12 03:52 -0800
Message-ID<973e7387-1c28-4a52-a06b-8b8fa742db95@cf6g2000vbb.googlegroups.com>
In reply to#2803
Hi Guys,
I don't know how it works but I've searched for (in fact) simple
solution many hours and just 5 minutes after I posted here I found
NotifyRecordChange - as Jamal wrote. I can't say why I missed it - it
was just before my eyes. Maybe to obvious. :)
The only thing was to add a "my" subclass of bbrowser.
It works as required and expected.

Thanx all of You
Gregory

On 12 Sty, 00:50, "Jamal" <vodotnet_nos...@yahoo.com> wrote:
> Just realized, you may need to code:
>
> bBrowser:NotifyFieldChange() method or oBrowser:NotifyRecordChange( )
>
> Jamal
>
> "Heli-Team.pl Portal"  wrote in message
>
> news:80cae1ec-feb8-4005-b1db-215d05c95865@p42g2000vbt.googlegroups.com...
>
> Hello Friends,
>
> I can't help myself to solve following problem:
> I have a window that has a bBrowser and four single line edit controls
> which shall contain actual values from record selected in bBrowser.
> How can I make the SLE's to update their content (or to make bBrowser
> to do that) when selected/highlighted record in bbrowser changes?
> What kind of message is sent ot method invoked by bBrowser when record
> changes?
> I'm sorry if it's a vary basic question...
>
> best regards,
> Gregory

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web