hi all,
i'm writing a post release level change to get the two approvers that
vote for the change of a release level of a piv and the date of both
approvation.
using PDMReviewHistoryGetLastModificationStamp i can get the last
approver, but i'm not able to find the first approver.
the portion of code that i wrote and work for the last approver is:
for ( i=0; i<argc; i++=" )=" {<br="/> part = *((HPDMPROMOTIONPARTICIPANT *)argv[i]);
err = PDMPromotionParticipantGetPIV( part, &piv );
err = PDMPromotionParticipantGetPromotionForm( part, &pf );
// get REVIEW HISTORY
err = PDMPromotionFormGetReviewHistory ( pf, &revisionHistoryCursor );
for ( PDMCursorGetNext( revisionHistoryCursor, &ReviewHistoryHandle );
!PDM_HANDLE_IS_NULL( ReviewHistoryHandle );
PDMCursorGetNext( revisionHistoryCursor, &ReviewHistoryHandle ))
{
// get the last modification stamp of REVIEW HISTORY
err = PDMReviewHistoryGetLastModificationStamp(
ReviewHistoryHandle, &dataOraReviewHistory, &reviewer );
// reviewer is the last approver
// get date of last modification
err = PDMDateTimeGetInfo ( dataOraReviewHistory, &DateTimeInfo );
PDM_STATUS(funcName, "PDMDateTimeGetInfo()",err);
}
err = PDMCursorDelete ( revisionHistoryCursor );
PDM_STATUS(funcName, "PDMCursorDelete()",err);
any help is appreciated.
thanks,
michele giudici
[]
Cad.I.Tech. - Cad Integration Technology s.r.l.
Via Montevideo 7/11, 16129 Genova (Italy)