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

 Disable fields

Print topic Send  topic

Author Message
Vladimiro Paredes
Posted: 12/03/2002, 7:13 AM

I am trying to set some fields (Text boxes and combo boxes) disable if a
certain condition is met in code.

Can anyone help me with this?


Vic
Posted: 12/03/2002, 8:15 AM

Try it:

1.In HTML tabs add template variable category_id_Disabled like
<input class="AquaInput" maxlength="10" {category_id_Disabled}
name="{category_id_Name}" size="10" value="{category_id}">
2. Add action "Custom code" to Event "Before Show" with code like:
global $Tpl;
if (your condition)
$Tpl->SetVar("category_id_Disabled","Disabled");

Vic

"Vladimiro Paredes" <vparedes@exodusgroup.net> wrote in message
news:asihms$dma$1@news.codecharge.com...
> I am trying to set some fields (Text boxes and combo boxes) disable if a
> certain condition is met in code.
>
> Can anyone help me with this?


Vladimiro Paredes
Posted: 12/04/2002, 7:49 AM

Thanks Vic

Is there a similar code using ASP, VB script?


"Vic" <victor.tciba@yessoftware.com> wrote in message
news:asila6$ku8$1@news.codecharge.com...
> Try it:
>
> 1.In HTML tabs add template variable category_id_Disabled like
> <input class="AquaInput" maxlength="10" {category_id_Disabled}
> name="{category_id_Name}" size="10" value="{category_id}">
> 2. Add action "Custom code" to Event "Before Show" with code like:
> global $Tpl;
> if (your condition)
> $Tpl->SetVar("category_id_Disabled","Disabled");
>
> Vic
>
> "Vladimiro Paredes" <vparedes@exodusgroup.net> wrote in message
>news:asihms$dma$1@news.codecharge.com...
> > I am trying to set some fields (Text boxes and combo boxes) disable if a
> > certain condition is met in code.
> >
> > Can anyone help me with this?
>
>
>

Vic
Posted: 12/04/2002, 11:22 PM

Hi Vladimiro,

For ASP try:
If your_condition Then
HTMLTemplate.SetVar "@category_id_Disabled","Disabled"
End if

Vic

"Vladimiro Paredes" <vparedes@exodusgroup.net> wrote in message
news:asl876$kfb$1@news.codecharge.com...
> Thanks Vic
>
> Is there a similar code using ASP, VB script?



   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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