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 -> General/Other

 how to hide list page when you are doing Grid Builder?

Print topic Send  topic

Author Message
binap

Posts: 10
Posted: 07/23/2008, 10:53 PM

I am new one of codecharge studio. When i am doing Grid Builder when i click on search button, the list page should appear. Otherwise it is not shown. Can any one tell how to do this in php or asp using templates.

Thanks in advance.
View profile  Send private message
wkempees


Posts: 1679
Posted: 07/24/2008, 6:01 AM

In the properties of the grid -> DataSource press [...] this will take you to VQB Visual Query Builder.
Take a close look at the SQL there for your grid, click on the Where to see the parameters used to filter your grid.
If you set the default value of one of these to a non exisiting value like -1, you grid will show up empty when no search criteria are entered.

If you want the whole result grid to be hidden check out panels.

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
binap

Posts: 10
Posted: 07/25/2008, 12:23 AM

hi Walter,

its not getting.

Without using panel can any body solve this one
View profile  Send private message
wkempees


Posts: 1679
Posted: 07/25/2008, 1:44 AM

Quote :
It is not getting

Sorry, do not understand such short problems.

But as a favor:
Before Show of the Grid Component, NOT BeforeShowRow
  
// -------------------------  
    // Write your own code here.  
// -------------------------  
	if ( !$Component->HasRecord){  
	$Component->Visible = False;  
	}  
//End Custom Code  
  
will hide the grid if it has NO rows to display.

To make the grid initialy empty, you need to change the datasource as described earlier.
In my example (see your other question), the Search form does a search on product_name (text), the Where clause of the Grid has :
Field: product_name, type:Text
Condition: Contains (LIKE %..%)
Parameters: s_product_name, type: URL, default : -1

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
binap

Posts: 10
Posted: 07/25/2008, 7:59 PM

I am using CCS 4.x and wamp server latest version.

Grid has already exists records, its not hiding.

Its not hiding ...........:-@
View profile  Send private message
wkempees


Posts: 1679
Posted: 07/26/2008, 3:18 AM

Oh come on, :-@ should be :-{}

I do not understand your basic question right, I think.
All you need is here in this post..
If not, then give some code to work with.

Walter

(What country are you from, what language?)

_________________
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
datadoit
Posted: 07/26/2008, 6:28 AM

One way to do this is to see if there's any URL parameters at all, and
if not, hide the results grid. This is with the assumption that your
screen will not carry any other parameters into it from someplace else.

In your Page's BeforeShow event:

if (!CCGetQueryString("QueryString", "")) {
$Container->YourResultsGrid->Visible = false;
}

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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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