I am playing with IronPython and have run across a question, which turns out to be 2 to 3 questions. I am attempting to set the drop down list, {{Order.Properties.Address.State}} to "OH" or "Ohio".
The first issue I've had is simply getting to the field. To keep it simple, since {{.Address.City}} is not a drop down I used it to test and filled it in with
Code: Select all
def Address_City_Value(args):
if (str(args.Context.Owner).StartsWith('Property')):
args.Value = 'Beavercreek'
else:
args.Value = ''
def OrderPropertyAddressCity_Value(args):
and
def PropertyAddressCity_Value(args):
Which didn't throw a compile time error, but didn't seem to work either.
Is there a better method to set a {{Order.Property.Address.*}} field than the expensive method I chose?
The main question is how is a drop down list selected? Specifically a {{.State.*}} drop down list.
Thanks for the direction,
Dan