Change the Header to a DCBROWSECOL

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
digitsoft
Posts: 461
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Change the Header to a DCBROWSECOL

#1 Post by digitsoft »

Hello Roger
How to Change the Header to a DCBROWSECOL
Thank you
Nolberto Paulino
Regards

skiman
Posts: 1199
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: Change the Header to a DCBROWSECOL

#2 Post by skiman »

Hi,

i do it this way:

DCBROWSECOL FIELD bonart->hoev HEADER {|| "#"+str(nTotstuks,7) } OBJECT oAantal PARENT oBrowseart WIDTH 5 ID "ARTHOEV" font "12.Verdana bold"

When I want to change it:

oAantal:heading:setcell(1 ,"#"+str(nTotstuks,7), ,.T.)
oAantal:heading:invalidaterect(oAantal:heading:cellrect(1))
Best regards,

Chris.
www.aboservice.be

reganc
Posts: 259
Joined: Thu Jan 28, 2010 3:08 am
Location: Hersham, Surrey, UK
Contact:

Re: Change the Header to a DCBROWSECOL

#3 Post by reganc »

digitsoft wrote:Hello Roger
How to Change the Header to a DCBROWSECOL
Thank you
Just use a codeblock to return the text you want...
Regan Cawkwell
Real Business Applications Ltd
http://www.rbauk.com

reganc
Posts: 259
Joined: Thu Jan 28, 2010 3:08 am
Location: Hersham, Surrey, UK
Contact:

Re: Change the Header to a DCBROWSECOL

#4 Post by reganc »

skiman wrote:Hi,

i do it this way:

DCBROWSECOL FIELD bonart->hoev HEADER {|| "#"+str(nTotstuks,7) } OBJECT oAantal PARENT oBrowseart WIDTH 5 ID "ARTHOEV" font "12.Verdana bold"

When I want to change it:

oAantal:heading:setcell(1 ,"#"+str(nTotstuks,7), ,.T.)
oAantal:heading:invalidaterect(oAantal:heading:cellrect(1))
Chris,

Why do you do the 2nd bit. If it's a codeblock it should just change on the next refresh, shouldn't it?
Regan Cawkwell
Real Business Applications Ltd
http://www.rbauk.com

skiman
Posts: 1199
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: Change the Header to a DCBROWSECOL

#5 Post by skiman »

hi Regan,

Sometimes refreshing has flickering as a result. That's why I try to avoid it as much as possible.
Best regards,

Chris.
www.aboservice.be

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Change the Header to a DCBROWSECOL

#6 Post by rdonnay »

oAantal:heading:setcell(1 ,"#"+str(nTotstuks,7), ,.T.)
oAantal:heading:invalidaterect(oAantal:heading:cellrect(1))
That's one way to do it, but if you use a code block for the header then all you need to do is oBrowse:refresh(). This will reevaluate and display all headers and footers that are code blocks.
The eXpress train is coming - and it has more cars.

Post Reply