Overview Support Download Purchase

ObjectForm Control

The form control provides a way to input data described by the TurnObjects. The form layout is presented to the user in the same order and style that is defined in the system configuration file. Required fields and regular expression validators are also automatically added to the form. A SuccessMessage property is displayed when the form has been submitted. Notification emails of the form's submission can be sent by specifying the EmailNotification property. It is possible to load the form by setting the TargetKey to a valid primary key on the target object.

Configuration

PropertyShort Description
TargetObjectNameName of the object in the TurnSystem that will be represented by this control.
TargetSystemNameName of the TurnSystem that will be used by this control.
TargetKeyPrimary key of the item to load into the form.
EmailNotificationSend an email to the specified addresses when the item is submitted.

Appearance

PropertyShort Description
SubmitButtonTextText on the submit item button.
PreviewButtonTextText on the preview item button.
CancelButtonTextText on the cancel button.
EditButtonTextText on the edit button.
SuccessMessageText the user will see on submission of the form.
CssPrefixControls will use the style with the specified prefix.

Behavior

PropertyShort Description
EnableSecurityDetermines if the control will be constrained by the current users security rights.
IsPreviewedThe item will be presented for review by the user before the final submission is done.

Form Events

The following interfaces can be inherited on a page that the form control is on. The methods can then be used to customized the operation of the form when a specific event occurs.

IObjectFormPreSave

This interface has a method that gets fired just before the form has been submitted. The TurnObject is passed to the method so that custom operations can be performed.

void OnFormPreSave(IBaseObejct targetObject);

IObjectFormCancel

This interface has a method that gets fired if the cancel button is pressed.

void OnFormCancel(object sender, System.EventArgs e);

IObjectFormSubmit

This interface has a method that gets fired after the form has been submitted.

void OnFormSubmit(object sender, System.EventArgs e);


© 2008 TurnObjects All rights reserved.  Legal  |  Privacy