JCF
|
Posted: 04/11/2002, 5:20 PM |
|
I can not get this to work?
I am using the current version of CC, MySQL, PHP Templates 4
I just want to hide a form?
I started with PHP without Templates - the solution to hide the form did not
work.
So I changed to the Templates so I could also pretty up the HTML.
But I can not get the following solution to work?
***********************************
Note : tip designed for html templates only.
To show/hide form on the page you should define Open event for the form with
code like:
(for PHP)
if (condition_to_hide) {
$tpl->set_var("FormYour_Form_Name","");
return;
}
Best regards,
Alexey Alexapolsky
*******************************
The form I want to hide has just three buttons in the Header section and I
only want these buttons enable if the User is Updating, not Inserting.
I have a Grid and Record Page, In the Record page I have a form called
WOButtons and in the Open Event on this form I have the following code:
if($bIsUpdateMode)
{
$tpl->set_var("FormWOButtons","");
return;
}
It does not work - I have also tried if($sAction == "update") but this does
not work.
The WOButtons form is always displayed if I am inserting or updating.
Looking for some help please.
JCF
|
|
|
Alexey Alexapolsky
|
Posted: 04/12/2002, 5:53 AM |
|
If you don't get a solution here, submit your request to
support.codecharge.com
--
Alex
CodeCharge Developer
"JCF" <jcf@mail.org> wrote in message
news:a9598n$d6p$1@news.codecharge.com...
> I can not get this to work?
>
> I am using the current version of CC, MySQL, PHP Templates 4
>
> I just want to hide a form?
>
> I started with PHP without Templates - the solution to hide the form did
not
> work.
>
> So I changed to the Templates so I could also pretty up the HTML.
>
> But I can not get the following solution to work?
>
> ***********************************
> Note : tip designed for html templates only.
>
> To show/hide form on the page you should define Open event for the form
with
> code like:
>
> (for PHP)
>
> if (condition_to_hide) {
> $tpl->set_var("FormYour_Form_Name","");
> return;
> }
>
>
> Best regards,
> Alexey Alexapolsky
> *******************************
> The form I want to hide has just three buttons in the Header section and I
> only want these buttons enable if the User is Updating, not Inserting.
>
> I have a Grid and Record Page, In the Record page I have a form called
> WOButtons and in the Open Event on this form I have the following code:
>
> if($bIsUpdateMode)
> {
> $tpl->set_var("FormWOButtons","");
> return;
> }
>
> It does not work - I have also tried if($sAction == "update") but this
does
> not work.
>
> The WOButtons form is always displayed if I am inserting or updating.
>
> Looking for some help please.
>
> JCF
>
>
>
>
>
>
>
|
|
|
Frank S.
|
Posted: 06/29/2002, 7:01 PM |
|
Was there ever an answer to this one?
Frank
|
|
|
Alexey Alexapolsky
|
Posted: 07/02/2002, 2:57 AM |
|
See my answer above
--
Alex
CodeCharge Developer
"Frank S." <no_spam_info@auuooh.com> wrote in message
news:aflop5$ccg$1@news.codecharge.com...
> Was there ever an answer to this one?
> Frank
>
>
|
|
|
|