The client’s request was not to allow the drilldown for the assets to be possible if the client is an employee of the company, with an active status and the asset is of type XYZ.
In this case, the information about whether you are an employee of the company comes in “Acct Gen – Authorized Users – Customer Category”, the status in “Account Status” and the type (of the product from which an asset has been generated) in “Account Type”.
Well you can capture the “Drilldown” method (even if at the end the application says that the method is no longer used) in the PreInvokeMethod and put the condition we need.
function WebApplet_PreInvokeMethod (MethodName)
{
try{
if(MethodName ==”Drilldown”)</span></p> <p> {
var oBO = þetta. BusObject ();
var oBCFin = this. BusComp();
var customerType = oBCFin.GetFieldValue(“Acct Gen – Authorized Users – Customer Category”);
var acountType = oBCFin.GetFieldValue(“Account Type”);
var accountStatus = oBCFin.GetFieldValue(“Account Status”);
if(customerType ==”Banks Employee” && acountType ==”CASA” && accountStatus==”Active”)</span></p> <p> {
TheApplication(). RaiseErrorText(“This is a banks employee.”);
return (CancelOperation);
}
else{
return (ContinueOperation);
}
}
}
catch (e)
{
throw e;
}
return (ContinueOperation);
}


