get_UserID Method

WRAPPER_API const BmgChar* get_UserID() const

Description

This method returns the current user identification attached to the Change request.  This value is set on the DataSource object, and can not be modified on a single change event.

Example

void TestForm::AddChangesToAuditList(std::vector<const GEOCALCPBW_NAMESPACE::Change*> changes, bool isCustom)

{

int row = 0;

std::wstring string = "";

std::wstring user = "";

BmgChar * temp;

foreach(const GEOCALCPBW_NAMESPACE::Change* change, changes)

{

string = change->get_Timestamp();

user = change->getUserID();

m_table[row][0] = string;

 

if(isCustom)

{

m_table[row][1]->L"Custom";

}

else

{

m_table[row][1]->L"Base";

}

 

string = m_changeTypes[change->get_ChangeType()];

m_table[row][2] = string;

 

string = m_objectTypes.find(change->get_ObjectType())->second;

m_table[row][3] = string;

 

string = change->get_ObjectName();

m_table[row][4] = string;

 

string = change->get_ObjectID();

m_table[row][5] = string;

 

string = change->get_Comment();

m_table[row][6] = string;

 

if(change->IsCommitted())

{

m_table[row][7]->L"Committed";

}

else

{

m_table[row][7]->L"Uncommitted";

}

 

foreach (const GEOCALCPBW_NAMESPACE::ChangeDetail* detail, change->get_ChangeDetails())

{

string += FormatChangeDetail(detail);

}

m_table[row][8] = string;

}

}