Saturday, April 10, 2010

Named Method n - Alternative to Scripting

Named method is a very good alternative to the Scripting if you have custom method to invoke. It can be used both at applet level as well as at BC level. You need to specify a user property Named Method n.

It can be used to do some of  following things:-
  1. Set the field values with or without conditional expression, 
  2. To invoke OOTB methods.
  3. To invoke Business Service/Workflow.
I have used this user property with On Field Update Set and On Field Update Invoke user properties.I really found them very handy to use. I have to use the customize method because in our project Client was very demanding and was very much focused on usability of buttons to perform actions.

Some of the examples I have used of the above user properties are like:-

User Property Value
Named Method 1 "DeclineCase", "SET", "Position Name", "IIF([Case Decline Reason]='Incorrect SM', [Parent Position Name], IIF([Case Decline Reason]='Incorrect Entity', '', [Position Name]))"
Named Method 2 "DeclineCase", "INVOKE", "HLS Case", "WriteRecord"
Named Method 3 "DeclineCase", "INVOKESVC", "HLS Case", "Workflow Process Manager", "RunProcess", "ProcessName", "Case Assignment Email Notification"
Named Method 4 "DeclineCase", "INVOKE", "HLS Case", "RefreshBusComp"

For more details, Please refer the bookshelf.

Sharing is the power

No comments:

Post a Comment