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