FormObjectSet.masterObjectSet Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the master object set for the current object set.
public:
virtual Dynamics::AX::Application::FormObjectSet ^ masterObjectSet();
public virtual Dynamics.AX.Application.FormObjectSet masterObjectSet ();
abstract member masterObjectSet : unit -> Dynamics.AX.Application.FormObjectSet
override this.masterObjectSet : unit -> Dynamics.AX.Application.FormObjectSet
Public Overridable Function masterObjectSet () As FormObjectSet
Returns
The master object set.
Remarks
A form often has more than one object set (data source). These are joined together by using a tree hierarchy, where one data source is the master or parent data source. The masterObjectSet method returns the ID of the master data source for a specific data source.
The following example returns the name of the master data source for a FormRun object.
private static client Name formDataSourceName(FormRun _formRun)
{
return _formRun.objectSet().masterObjectSet().name();
}