CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Logic If then does not work with label "Want read only"

Print topic Send  topic

Author Message
deagon

Posts: 31
Posted: 08/28/2008, 11:01 AM

Interesting problem if I'm using a listbox and checkbox to determine a logic state like the following.

If RmaStorage1.WarrantyAuth.Value = "0" and RmaStorage1.RMAJobType.Value = "3Warranty" Then
RmaStorage1.AuthorizeVr.Value = False
rmastorage1.MoveRMAQuotedBit.Value = True
ElseIf RmaStorage1.WarrantyAuth.Value <> "0" and RmaStorage1.RMAJobType.Value = "3Warranty" Then
RmaStorage1.AuthorizeVr.Value = True
rmastorage1.MoveRMAQuotedBit.Value = True
End If

This was test code to determine if a label would work instead of using a text box. The text box works fine but if the text box is converted to a label the logic doesn't work. It looks like it's
due to the label being HTML and not data off a data field!!! Is there another way to make the
WarrantyAuth field read only so that this data is only changed from another page? We only want a authorized person to change the data?

Thanks
View profile  Send private message
wkempees


Posts: 1679
Posted: 08/28/2008, 2:40 PM

Using attributes, you can set the textbox to read-only, or at least disabled.
In HTML in the <input....> tag of your textbox just before the > closing tag, rightclick "insert attribute"
give it a name like tb1_disabled.
Then in your code block

Sender.Attributes("tb1_disabled") = "disabled"

Sender.Attributes("tb1_disabled") = ""

Thats all there is to it.
Help File: Working With Component Attributes

Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message

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.

Web Database

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.