get_CustomChangeLog Method

WRAPPER_API const ChangeLog *get_CustomChangeLog()

 

Description

This returns the ChangeLog that is currently in use for the custom objects in this DataSource (if there is one).  The DataSource "owns" this ChangeLog, so the user should not delete the object returned by this method.

For more information about the Audit Trail features, see Lesson 10 in the Getting Started Guide.

 

Example

void TestForm::FillAuditList()

{

if (m_dataSource->get_HasChangeLog() && (m_dataSource->get_ChangeLog() != NULL))

{

if(m_dataSource->get_ChangeLog()->get_IsSignatureValid())

{

AddChangesToAuditList(m_dataSource->get_ChangeLog()->get_AllChanges(), false);

}

}

 

if (m_dataSource->get_HasCustomChangeLog() && (m_dataSource->get_CustomChangeLog() != NULL))

{

AddChangesToAuditList(m_dataSource->get_CustomChangeLog()->get_CommittedChanges(), true);

 

if(m_dataSource->GetNumberOfModifications() > 0)

{

AddChangesToAuditList(m_dataSource->get_CustomChangeLog()->get_UncommittedChanges(), true);

}

}

else

{

ui->textEdit->setText("NO Changes");

}

}