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

 Listbox

Print topic Send  topic

Author Message
crush899

Posts: 22
Posted: 06/04/2011, 11:48 PM

Hi This prob an easy fix but I need some assistance...

I would like to limit a listbox to data supplied by authorized users of a company. I am limiting data in list by entering this code in the before build select event:

if (CCGetGroupID() < 4) {
if($Component->ds->Where) {
$Component->ds->Where .= " and ";
}
$Component->ds->Where .= "facility.facility_id=" . get_user_facility_id();
}

Can anyone instruct on how to limit the list-box in the same manner?

Crush
View profile  Send private message
Gena

Posts: 591
Posted: 06/05/2011, 3:00 AM

Listbox is the same as Gride (in general) so it also has "before build select event", so just put needed code there.
_________________
Gena
View profile  Send private message
crush899

Posts: 22
Posted: 06/06/2011, 1:26 PM

Gena, thankis for the response! It works well, I just needed to add tables and joins...

Crush
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.

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.