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