AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

AdvantageAttributeControl..::..SaveData Method

Programmatic alternative to the toolbar's Save & Close click — runs the full save lifecycle (OnValidateSave(String%)SaveDataToObject()()()()OnPreSave(AdvantageAttributeArgs, String%)OnPostSave(AdvantageAttributeArgs, String%)) and returns the populated Attributes bag. The dialog is not dismissed and no SendAdvantageAttributes event is raised — the host receives the data via the return value.

Namespace:  AdvantageCMS.Core.Common.BaseClasses
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public AdvantageAttributes SaveData()

Return Value

The populated Attributes on success; null if OnValidateSave(String%) or OnPreSave(AdvantageAttributeArgs, String%) aborted the save. Validation failures surface via SendStatusMessage; this method does not throw.