.NET Framework Class Library
Database.UpdateDatabaseActiveDoc Method

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > .NET API > MwPDMApi Namespace > Database Class > Database Methods >

.NET Framework Class Library
Database.UpdateDatabaseActiveDoc Method

This command has the primary goal to register document in the database without performing a save on the file. More, it updates the database with the structure/data of the active opened document. It works also with checked-out documents and it is equivalent, from a database point of view, to a _shift_ REFRESH operation.

Namespace: MwPDMApi
Assembly:  MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

Visual Basic

Public Sub UpdateDatabaseActiveDoc ( _

Optional showInput As Integer = 0, _
Optional fullyResolveFirstLevelComponents As Boolean = False, _
Optional traverseFullReleasedStructure As Boolean = False, _
Optional refreshSharedCheckedInFiles As Boolean = False _
)

C#

public void UpdateDatabaseActiveDoc(

int showInput = 0,
bool fullyResolveFirstLevelComponents = false,
bool traverseFullReleasedStructure = false,
bool refreshSharedCheckedInFiles = false
)

Visual C++

public:

void UpdateDatabaseActiveDoc(
int showInput = 0,
bool fullyResolveFirstLevelComponents = false,
bool traverseFullReleasedStructure = false,
bool refreshSharedCheckedInFiles = false
)

JavaScript

function updateDatabaseActiveDoc(showInput, fullyResolveFirstLevelComponents, traverseFullReleasedStructure, refreshSharedCheckedInFiles);

Parameters

showInput (Optional)

Type: System.Int32
Optional. 0- not show, 1- show, 2- not show and not update LAST_MODIFIED_DATE, 3- show and not update LAST_MODIFIED_DATE

fullyResolveFirstLevelComponents (Optional)

Type: System.Boolean
Optional. TRUE resolve, FALSE don't resolve

traverseFullReleasedStructure (Optional)

Type: System.Boolean
Optional. TRUE traverse with no care about the document's state Shows or not the input when updating database, FALSE don't traverse checked-in and released documents

refreshSharedCheckedInFiles (Optional)

Type: System.Boolean
Optional. TRUE refresh, FALSE don't refresh

Remarks

See Also

Database Class

Database Members

MwPDMApi Namespace