To do so you must use the macro : resAppl from the AOT and this following method:
/// <summary>
/// A display method that converts the test result to an image ID.
/// </summary>
/// <returns>
/// Image_Ok if the test passed; otherwise, Image_NotOk
/// </returns>
//BP Deviation Documented
display ProjTestImage displayResultImage()
{
#resAppl
;
//Check if user has security access
if(!hasFieldAccess(tablenum(ThyProjForcasTable),
fieldnum(ThyProjForcasTable, NoYesId),
AccessType::View))
{
return -1;
}
if(this.NoYesId == Noyes::Yes)
return #Image_Ok;
return #Image_NotOk;
}
See example in the form InventQualityOrderTable in the AOT.
Aucun commentaire:
Enregistrer un commentaire