CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Hiding forms

Print topic Send  topic

Author Message
vince
Posted: 02/04/2002, 12:05 AM

if (condition_to_hide) {
$tpl->set_var("FormYou_Form_Name","");
return;
}


I try the PHP version of this and here is what I get on the screen instead of the form:

{FormTitle}
{DListArticleExtSource} {ArticleExtSourceNoRecords} {ArticleExtSourceNavigator}

How can I hide this as well?
Thanks!
Nicole
Posted: 02/04/2002, 7:12 AM

Vince,
check the form Navigator settings. Looks like there's 0 records to display is set.
Vince
Posted: 02/04/2002, 7:16 AM

Huhh,
Nicole,
where exactly do I have to check this?
Brent
Posted: 02/04/2002, 7:29 AM

Are you sure you're putting this code in the OPEN event of the form? And PHP
is the selected language?

My header form has 2 menus on it. The Editor_Menu form is hidden if the
user is not an editor. If he is an editor, then he sees 2 rows of menus.

In my case the editor form is called "Editor_Menu" and is prefixed with "Form"
in set_var below:

[from the Form OPEN event]

global $UserRights;
if ((!Is_Numeric($UserRights)) or ($UserRights < 2))
{
$tpl->set_var("FormEditor_Menu","");
return;
}
Nicole
Posted: 02/04/2002, 11:43 PM

Vince,
navigator settings are available on Grid form ->Properties ->Common tab. I mean what value is typed in 'Records' field. It should be not empty and greater than 0.

   


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.