Wednesday, July 8, 2009

Who Modified my Object

Who Modified My Object
static void WhoModifiedInventTableForm(args a)
{

UtilIdElements UE;

while select UE
where (UE.utilLevel == UtilEntryLevel::USR && UE.recordType == UtilElementType::Form && UE.name == "InventTable")

{

print UE.modifiedBy + " " + date2str(UE.modifiedDate,123,2,2,2,2,2);
pause;

}
}

Sunday, January 11, 2009

Check Security Key via X++

securityKeys = new SecurityKeySet();
securityKeys.loadUserRights(curuserid());
fullAccess = securityKeys.access(securitykeynum("xxxxxxxxxxxxxxx")) ==
AccessType::Delete;