I've been trying to get a very simple Member Type constraint to work but am having no success.
What I've done so far is added a property constraint to NetContact and CsContact Member Type field with the following code:
string proposed = (string)proposedValue;
proposed = proposed.ToUpper();
if (proposed == "CH")
constraintPassed = true;
I think this constraint should return an error if the selected record's member type changes to something other than CH. However when I select a record, go to the Personal link, change the member type to something other than CH and save, I do not receive an error.
I've also added similar code directly to the Business Object constraint with no success either.
I'm not sure if the issue is the code or if I'm adding the code to the incorrect Business Object (NetConact and CsContact).
I'm starting with this simple example but will eventually need to create a more complex constraint.
The only documentation I've found so far is http://www.imiscommunity.com/creating_a_new_business_object.