CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Disable control in servlet

Print topic Send  topic

Author Message
jfandly
Posted: 01/14/2004, 7:23 AM

How can I disable control in servlet ?

In asp I can do by :
HTMLTemplate.SetVar "@user_state","disabled"
and in html:
{user_state}

peterr


Posts: 5971
Posted: 01/14/2004, 12:05 PM

You may want to post Java questions to:
YesSoftware Forums -> CodeCharge Studio -> Java
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
as
Posted: 01/15/2004, 9:18 AM


Użytkownik "jfandly" <jfandly@forum.codecharge> napisał w wiadomo¶ci
news:240055f5e85a94@news.codecharge.com...
> How can I disable control in servlet ?
>
> In asp I can do by :
> HTMLTemplate.SetVar "@user_state","disabled"
> and in html:
> {user_state}

control or custom template?
control:
....getControl(controlName).setVisible(false);

custom template:
for example
....
String c = currentPath.concat("/Document");
....
if(!Tools.isEmpty(dateDis) || !Tools.isEmpty(typeDis)){
t.setVar(c.concat("/Disbursement/@dateDisbursement"), dateDis);
t.setVar(c.concat("/Disbursement/@typeDisbursement"), typeDis);
t.parse(c.concat("/Disbursement"));
t.hideBlock(c.concat("/DisbursementEmpty"));
}else{
t.parse(c.concat("/DisbursementEmpty"));
t.hideBlock(c.concat("/Disbursement"));
}


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.