Table of Contents

Class DataPageDelete

Namespace
Sage.CRM.WebObject
Assembly
SageCRMNet.dll

This class can be used to Delete an existing record. It shows one or more entry boxes in view mode with a Confirm Delete button and a Cancel button. Confirm Delete button to actually delete the record. Cancel button to go back Summary page for the record.

public class DataPageDelete : DataPageEdit
Inheritance
DataPageDelete
Inherited Members

Constructors

DataPageDelete(string, string, string)

Initializes a new instance of DataPageDelete.

public DataPageDelete(string entityName, string idField, string screenName)

Parameters

entityName string

Entity Name.

idField string

Entity ID Field.

screenName string

Screen Name.

DataPageDelete(string, string)

Initializes a new instance of DataPageDelete.

public DataPageDelete(string entityName, string idField)

Parameters

entityName string

Entity Name.

idField string

Entity ID Field.

Methods

AddConfirmDeleteButton()

Add the confirm delete button. This method is called from BuildScreen. Override this to remove or change the confirm delete button. The default confirm delete button will submit the page setting the HiddenMode to Save.

public virtual void AddConfirmDeleteButton()

BuildContents()

This is the main control method for DataPageDelete. It calls BuildScreen to display the record in view mode with Confirm Delete/Cancel buttons as appropriate. If the mode is Save then it calls the Validate and SaveChanges methods to delete the record, then redirects to the URL specified by the UrlAfterSave button.

public override void BuildContents()

BuildScreen()

Gets the HTML to display the record in view mode plus buttons.

public override void BuildScreen()

SaveChanges()

This method is called from within BuildContents after validation has been confirmed. It actually deletes the record.

public virtual bool SaveChanges()

Returns

bool

True if successful.