I have a form with some fields including address fields. There is one field FormattedAddress which I have to update with some fields concatenated for an address label.
What would be the best way to address this kind of situation?
So far I am testing in the BO_FieldPropertyChanged event, but I then have to filter this event for the list of fields that will participate in the concatenation format. Just wondering if I am in the correct place or there is any other way to do this?
Thanks!
r = AddressLine1 & COntrolChars.CrLf & City & ", " & State & " " & Zip
'-- Return formatted address Return r End GetEnd Property
You can get the property attributes from another property on your bo out of the partial class. You can also copy the Imports out of the header of the partial class for the BO as well to make some of those errors go away. Once you do this, if you intend to bind to the property then you will need to override the GetCustomBindablePropertyDescriptors method (which you can find in the help and samples....or by doing a search out here on the forum...lots of posts )
Thanks for the suggestions, but I actually need to have this value stored in the database because it will be use from many forms to print receipts, labels and reports.
This is what I have done in the BO:
cFullAddress.AppendLine(
cFullAddress.Append(
The format of the address is working fine, but I want to limit this code to only execute for the fields included in the IF.. condition, but it is not working. If anybody can see what I am doing wrong please let me know.