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

From "Karl-Heinz" <invalid@invalid.invalid>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Show other column for one row in bbrowser
Date 2017-03-12 10:40 +0100
Message-ID <eikjd2F9826U1@mid.individual.net> (permalink)
References <838a04c6-7920-4a2c-a6de-28006cc5058f@googlegroups.com>

Show all headers | 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