KSK
Well Known Member
HI All,
I am trying to insert data into Media Object file with custom Audit information(UPMJ,USER,UPMT from BSFN DataStructure)but the system is not allowing me to override the Audit information ..During the execution of jdeGT_InsertDataKeyStr API, it is picking the current login user id, time and date (not with the Audit information passed inside the “lpds”)
Please guide me on the solution.
JDBReturn = JDB_InitBhvr(lpBhvrCom, &hUser,(JCHAR *) NULL,
JDEDB_COMMIT_AUTO);
JDBReturn = jdeGT_OpenTable (hUser,NULL,lpDS->szNameObject, &hRequestGT);
jdeStripTrailingBlanks(lpDS->szGenericTextKey);
lpGTData.nSeq = lpDS->nMediaObjectSequenceNumber;
lpGTData.nMOType = OBJ_RTFTEXT;
lpGTData.pData = lpDS->szMessageText;
jdeStrcpy(lpGTData.szItemName, _J("New Text"));
jdeStrncpy(lpGTData.szUser,lpDS->szUserId,sizeof(lpDS->szUserId));
MathCopy(&lpGTData.mnTime,&lpDS->mnTimeLastUpdated );
memcpy((void *)(&lpGTData.jdDate), (const void *)(&lpDS->jdDateUpdated),
sizeof(lpGTData.jdDate));
JDBReturn =jdeGT_InsertDataKeyStr(hRequestGT, lpDS->szNameObject, lpDS->szGenericTextKey,1, szLang, &lpGTData);
I am trying to insert data into Media Object file with custom Audit information(UPMJ,USER,UPMT from BSFN DataStructure)but the system is not allowing me to override the Audit information ..During the execution of jdeGT_InsertDataKeyStr API, it is picking the current login user id, time and date (not with the Audit information passed inside the “lpds”)
Please guide me on the solution.
JDBReturn = JDB_InitBhvr(lpBhvrCom, &hUser,(JCHAR *) NULL,
JDEDB_COMMIT_AUTO);
JDBReturn = jdeGT_OpenTable (hUser,NULL,lpDS->szNameObject, &hRequestGT);
jdeStripTrailingBlanks(lpDS->szGenericTextKey);
lpGTData.nSeq = lpDS->nMediaObjectSequenceNumber;
lpGTData.nMOType = OBJ_RTFTEXT;
lpGTData.pData = lpDS->szMessageText;
jdeStrcpy(lpGTData.szItemName, _J("New Text"));
jdeStrncpy(lpGTData.szUser,lpDS->szUserId,sizeof(lpDS->szUserId));
MathCopy(&lpGTData.mnTime,&lpDS->mnTimeLastUpdated );
memcpy((void *)(&lpGTData.jdDate), (const void *)(&lpDS->jdDateUpdated),
sizeof(lpGTData.jdDate));
JDBReturn =jdeGT_InsertDataKeyStr(hRequestGT, lpDS->szNameObject, lpDS->szGenericTextKey,1, szLang, &lpGTData);