CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 btton visibility BeforeShowRow

Print topic Send  topic

Author Message
r1xliquid

Posts: 41
Posted: 04/17/2008, 2:26 PM

I have a button on a row of an grid.

in the BeforeShowRow event i am using logic to make some controls visable/hidden. What i have found is that no matter what code i use, the button does not change visiblity from one row to the next. Basically whats happening is whatever visiblity is set for the first row is what carries down to all the remaining rows.

has anyone experienced a problem like this ?

thanks...
View profile  Send private message
wkempees
Posted: 04/18/2008, 3:36 AM

you will have to set / reset visibility per row.

fast response something like:
  
global MyRowCounter;  
MyRowCounter +=1  
if (FMyRowCounter == somevalue){  
  ......  
} //endif  
PhP based example, see Solutions and Tips article by Nicole on addressing
EdGridRows





"r1xliquid" <r1xliquid@forum.codecharge> schreef in bericht
news:64807c0704b37f@news.codecharge.com...
>I have a button on a row of an grid.
>
> in the BeforeShowRow event i am using logic to make some controls
> visable/hidden. What i have found is that no matter what code i use, the
> button
> does not change visiblity from one row to the next. Basically whats
> happening is
> whatever visiblity is set for the first row is what carries down to all
> the
> remaining rows.
>
> has anyone experienced a problem like this ?
>
> thanks...
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>

r1xliquid

Posts: 41
Posted: 04/18/2008, 5:11 AM

thank you for the reply. I believe i am already doing that.

on event BeforeShowRow i set the visibility to false.
the next line i have an if statement that may set the visibility to true.

So technically everytime BeforeShowRow is fired it should be setting to false, then true only if the criteria is met. in the IF.

I changed the control to a link and it works as expected. I think its a codecharge problem with the button control.

please correct me if wrong. (codecharge 3.2.0.2)
View profile  Send private message
monty241070

Posts: 4
Posted: 06/03/2008, 12:47 PM

I have the same problem with beforeshowrow. CodeCharge 3.2 with Java servlet.
Debugging shows that the visibility is set to false on each row, but without effect on the output.
_________________
--
Guido Leenders
Invantive BV
View profile  Send private message
monty241070

Posts: 4
Posted: 06/03/2008, 2:04 PM

Solution for me was to set the Visibility on the control to Dynamic.
_________________
--
Guido Leenders
Invantive BV
View profile  Send private message
wkempees


Posts: 1679
Posted: 06/03/2008, 5:26 PM

Quote monty241070:
Solution for me was to set the Visibility on the control to Dynamic.

As it should

Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.