AddItemElement method

Adds an item element to a Dashboard page.

You can add Dashboard pages, Calendars, Projects, and Database items only. Note that no error is returned if the ItemID does not exist, or if it represents an inappropriate type. The user's My Dashboards page will contain errors for nonexistent or inappropriate item types.

Syntax


C++

HRESULT AddItemElement (
   IERUSiteRoom* SiteRoom,
   BSTR ItemID,
   IERUElement* pAfterItem'
   IERUElement** ppElement)

Scripting languages

Set ItemElement = Object.AddItemElement (
   SiteRoom as IERUSiteRoom,
   ItemID as String,
   pAfterItem as IERUElement)

Parameters


SiteRoom

The site room interface of the item to be added to the Dashboard page.

ItemID

The ItemID of the item to be added.

AfterElement

The Element the new item will appear after.

ppElement

Upon return, an IERUElement interface pointer to the newly-added item element.

Return value


C++

The return code.

Scripting languages

An IERUElement interface pointer to the newly-added item element.

Home

Applies to

IERUMyElementsManager