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