Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Karl-Heinz" 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: 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 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