MHIOpenAccess (Object)

Interface representing a means to load data from the Hub into V5.

DNBIAMHIOpenAccess is implemented on Application. Applications and CAA partners should NOT implement this interface.


Methods


Sub ConnectToPPRHub( iUsername, iPassword)
This method establishes a connection to the PPRHub
Parameters:
iUsername
[in] User Login name
iPassword
[in] User password
Returns:
S_OK if connection established OK S_FALSE if connection is already established for user E_FAIL if connection could not be established
Func CreateLoadParameters() As
This method creates an object which will contain all the necessary information required for loading an object (and its structure) from a PPR Hub into V5
Parameters:
oLoadParameters
[out] Interface to the created Load Parameters object
Returns:
S_OK if object created ok and interface returned OK E_FAIL on error
Func LoadFromPPRHub( iLoadParameters, iCreateDefaultWindow, iIsReadOnly, oErrorMessages) As
This method loads an object (and it structure) from a PPR Hub project into V5 Note: All Tools->Options settings will be respected during the load
Parameters:
iLoadParameters
[in] The object which contains all the necessary information for the load
iCreateDefaultWindow
[in] Option to indicate whether a window needs to be created for the document or not If no window is created, then caller is responsible for life cycle of document
iIsReadOnly
[in] Option to indicate if document is to loaded in read-only mode
oLoadedDoc
[out] The V5 document into which data from the Hub is loaded
oErrorMessages
[out] The list of message about invalid or insufficient agruments passed to the method
Returns:
S_OK if everything ran OK E_FAIL on error
Sub SetEnvironmentForVBSLaunch( iObjId, iFilter, iParentId, iProjectId, iUserName, iPwd, oErrorMessages)
This method sets the environment required for Direct Launch Through given VB Script
Parameters:
iObjId
[in] process object ECB ID. Which needs to be opened in DPM
iFilter
[in] selected Project filters
iParentId
[in] parent object ECB ID
iProjectId
[in] project ID
iUserName
[in] user name to log-on to DPE
iPwd
[in] password to log-on to DPE
oErrorMessages
[out] error messages(if any)
Returns:
S_OK if everything ran OK E_FAIL on error