Thursday, April 21, 2011

InvokeMethod("SetAdminMode","TRUE");

This method is particularly useful if you need to replicate the behavior enforced by the 'Admin' property of the View object by disabling all visibility rules for the business component.
It means it will bypass all the validation for particular objects like Read Only etc setted by User Property or any other validation method.
E.g
 with(bcAssetMgmtAsset)
 {    
 InvokeMethod("SetAdminMode","TRUE");
 ClearToQuery();
 SetSearchSpec("Id",sAssetId);
 ExecuteQuery(ForwardBackward);
 }//end with

No comments:

Post a Comment