The contents of this page are not required. These are tips to help you get the most out of cartella.

Friendly Name

If you will be useing the Cartella Edit Form for editing this object, Cartella will look for a friendly name for your object. To return the Friendly name, simply add a method with the following signature.

CopyC#
public static string GetFriendlyName()

If this method is not found then Cartella will simply use the name of the object. In this case it is not so important becaues our object name is "Project". However, if your object was named something like "MyCustomObject", then you may want to create this method that returns "My Custom Object".

Tip

If your site uses localization, you should have this method return a value from a localized resource file.

Custom Validation Rules

The CustomRule allows you to create validation rules that fit virtually any business rule you may have. When the custom rule validates, it will look for a method on the object that it is validating. The method it looks for will be named as defined in Table_EditFormFieldValidations. This method should have the following signature.

CopyC#
public bool MyCustomMethod(object obj)

obj will be the value of the field that is being validated. Remember that since this method is being called on the object that you can validate a field's value based on another field's value.

See Also: Validation