CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Showing All Records of Grid

Print topic Send  topic

Author Message
girish_327


Posts: 108
Posted: 08/15/2007, 9:36 AM

Hello All,
I am facing problem creating grid with search facility. I have grid and search component on the page and having over 100 records.

I like to Hide the grid on initial page display and when user click on search (listbox) component it will display the filtered records.Search Component Contents show all records listitem which will show all the records same time but I don't know how to do this in CCS. Search Compoenet Listbox has following type records (A1,A2,A3,B1,B2.B3)
_________________
Girish Baraskar
Web Designer/Developer
http://www.agnisdesigners.com
http://www.eindianpaintings.com
http://www.realestatekolhapur.com
View profile  Send private message
DonP
Posted: 08/15/2007, 10:43 AM

In a grid Before Show event, you can set a visibility here so that if no
search parameters are received, the grid is hidden.

if (!CCGetParam("SearchParam","")) {
$gridname->Visible = 0;
}

OR

if (!CCGetParam("SearchParam","")) {
$gridname->Visible = False;
}

CCS recommends such an event on a Page event but I've never gotten it to
work that way so I put it directly on the item I want to hide.

Don

"girish_327" <girish_327@forum.codecharge> wrote in message
news:546c32ba5639bc@news.codecharge.com...
> Hello All,
> I am facing problem creating grid with search facility. I have grid and
> search
> component on the page and having over 100 records.
>
> I like to Hide the grid on initial page display and when user click on
> search
> (listbox) component it will display the filtered records.Search Component
> Contents show all records listitem which will show all the records same
> time but
> I don't know how to do this in CCS. Search Compoenet Listbox has following
> type
> records (A1,A2,A3,B1,B2.B3)
> _________________
> Girish Baraskar
> Web Designer/Developer
> http://www.agnisdesigners.com
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

girish_327


Posts: 108
Posted: 08/15/2007, 10:49 AM

I just checked your suggested code its hide the Grid but Now how can I show All the records in on search string.
_________________
Girish Baraskar
Web Designer/Developer
http://www.agnisdesigners.com
http://www.eindianpaintings.com
http://www.realestatekolhapur.com
View profile  Send private message
datadoit.com
Posted: 08/15/2007, 6:02 PM

girish_327 wrote:
> I just checked your suggested code its hide the Grid but Now how can I show All
> the records in on search string.
> ---------------------------------------

Try creating a button or a link that sends a parameter such as
's_ShowAll'. Then, in the grid's BeforeBuildSelect Event, look for this
parameter. If set, then adjust your WHERE parameters. Look in the help
file for Dynamically Modifying the Where Parameter.

girish_327


Posts: 108
Posted: 08/16/2007, 6:48 AM

Thanks DATADOIT.COM
I have created the extra link and sends a parameter
's_ShowAll' and added following code before show Grid
  
if (!CCGetParam("s_admin_heading_id","")&& !CCGetFromGet("s_ShowALL",""))   
{  
$admin_heading->Visible = 0;  
}  
  

_________________
Girish Baraskar
Web Designer/Developer
http://www.agnisdesigners.com
http://www.eindianpaintings.com
http://www.realestatekolhapur.com
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.