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


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

Re: Show other column for one row in bbrowser

Path csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "Karl-Heinz" <invalid@invalid.invalid>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Show other column for one row in bbrowser
Date Sun, 12 Mar 2017 10:40:41 +0100
Lines 57
Message-ID <eikjd2F9826U1@mid.individual.net> (permalink)
References <838a04c6-7920-4a2c-a6de-28006cc5058f@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; format=flowed; charset="UTF-8"; reply-type=original
Content-Transfer-Encoding 7bit
X-Trace individual.net 67N3x/qbjTph1r7d5DdnqwlEJCzQqdca0fc6fC/w/7XG1km5s=
Cancel-Lock sha1:2PiZPGUex9FltM6MA2F6zR+BDro=
In-Reply-To <838a04c6-7920-4a2c-a6de-28006cc5058f@googlegroups.com>
X-Priority 3
X-MSMail-Priority Normal
Importance Normal
X-Newsreader Microsoft Windows Live Mail 16.4.3564.1216
X-MimeOLE Produced By Microsoft MimeOLE V16.4.3564.1216
Xref csiph.com comp.lang.clipper.visual-objects:10275

Show key headers only | View raw


Hi Lu

> Is it possible, that I change the column only for one row?
>
>
> With self:oDCbBrowser:OpenColumn(oColumn,6) in all rows the data are
> refreshed.
>
> The reason is following:
> In the bbrowser there is a recordgroup and in one column there should be
> different data shown.

not sure, i understand your problem correctly.

It is not a requirement to bound a datacolumn to a specific server field 
only. Try it with a #Expression Datacolumn instead and return whatever you 
want from the callback method.

e.g.


METHOD PostInit(oWindow,iCtlID,oServer,uExtra) CLASS Yourwindow
...


    oDCYourBrowser :use ( SELF:server ,{} )

    oCol := bDataColumn{ oDCYourBrowser , SELF:server , { | oServer, oOwner
| oOwner:FillRecordGroupItemCol ( oServer ) } , #EXPRESSION ,

SELF }

...



METHOD FillRecordGroupItemCol ( oServer ) CLASS Yourwindow
local cRet as string


    if  _lShowField1Content

        cRet := oServer:Fieldget ( #Field1 )

    else

        cRet := oServer:Fieldget ( #Field2 )


    endif


    RETURN cRet


regards
Karl-Heinz

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


Thread

Show other column for one row in bbrowser Lu <lu2k@hotmail.com> - 2017-03-10 03:00 -0800
  Re: Show other column for one row in bbrowser "Karl-Heinz" <invalid@invalid.invalid> - 2017-03-12 10:40 +0100
    Re: Show other column for one row in bbrowser Lu <lu2k@hotmail.com> - 2017-03-13 06:52 -0700
      Re: Show other column for one row in bbrowser "Karl-Heinz" <invalid@invalid.invalid> - 2017-03-13 20:22 +0100
        Re: Show other column for one row in bbrowser Lu <lu2k@hotmail.com> - 2017-03-14 06:21 -0700
          Re: Show other column for one row in bbrowser "Karl-Heinz" <invalid@invalid.invalid> - 2017-03-15 08:03 +0100

csiph-web