07-26-2011, 08:37 PM
I am testing a form, where I randomly pick the value in a webedit box "address type".
Some values are disabled (greyed out) depending on what the user already has. (See attached for sample)
I am trying to find out how I can check if a value in the list is disabled because it seems that I am able to select the value even though it's disabled. This will cause a problem when saving the record.
Code below where i select the value randomly for the webedit box:
Any help or advise would be appreciated.
Thanks!
Some values are disabled (greyed out) depending on what the user already has. (See attached for sample)
I am trying to find out how I can check if a value in the list is disabled because it seems that I am able to select the value even though it's disabled. This will cause a problem when saving the record.
Code below where i select the value randomly for the webedit box:
Code:
AddressTypeArray = Browser("Address: New - Microsoft").Page("Address: New - Microsoft").Frame("Frame").WebList("addresstypecode").GetROProperty ("all items")
CountAddressTypeArray= Browser("Address: New - Microsoft").Page("Address: New - Microsoft").Frame("Frame").WebList("addresstypecode").GetROProperty("items count")
Randomize
AddressType = vbNo
AddressTypeArray=Split(AddressTypeArray, ";")
AddressType = RandomNumber (0,CountAddressTypeArray-1)
Wait 2
Browser("Address: New - Microsoft").Page("Address: New - Microsoft").Frame("Frame").WebList("addresstypecode").Select AddressTypeArray (AddressType)
Any help or advise would be appreciated.
Thanks!