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 -> PHP

 Before Show Row on editable Grid

Print topic Send  topic

Author Message
ckroon

Posts: 869
Posted: 07/09/2010, 8:30 AM

Someone know the secret of getting a Editable Grid BSR event to work?

Here's what I have but it does not fire

I echoed all the variables and they are all valid.

It's the $Component->DataSource->changes_count_september->SetValue(1) that doesnt fire.


if ($month == 3 AND $getse == "No" AND FDE >=$first AND $calc >= 15 )  
{  
$Component->DataSource->changes_count_september->SetValue(1);  
}

_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
datadoit
Posted: 07/09/2010, 2:06 PM

You've tested the variables... good. Have you tested the condition to
make sure it's "true"?

Also, what is the datatype for the field and accompanying label for
'changes_count_september'? It should be INT, or use:

$Container->ds->changes_count_september->SetValue(CCToSQL(1, ccsInteger));
ckroon

Posts: 869
Posted: 07/09/2010, 2:21 PM

Thanks Data

Its still not working for me....

I put only this on the BSR event

$Container->ds->changes_count_september->SetValue(CCToSQL(1, ccsInteger));

Just to see if I could get it to work.. Nada...Container is a ListBox and it is still showing me 0.

_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
datadoit
Posted: 07/10/2010, 6:22 AM

Recognize the order of events for a BeforeShowRow.

Before the row shows itself, you're attempting to set a value for this
particular field in that row.

Then, the field will show for that row, which will get it's value from
the database.

See? So even though you're setting a value for a field in the row in
BSR, it's reverting back to the value in the database when the field is
presented.

So instead, put your code in the field's Before Show event, which is
invoked after the field retrieves it's value from the database.

BSR is fine for setting values of "labels" in the row that don't get
their values from the database.

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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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