It was recommended in one of our ES reviews, but i do not use it all the time. Why?
Because it dosnt work on every applet, so you still need to script this behaviour on most applets.
Although you do get a special feeling when it does work, knowing that you saved the application some scripting.
For those who want to give it a try, this is the syntax (your mileage will vary):
Property: CanInvokeMethod: <MethodName>
Value: <Expression>
Note: This user property supposedly only works in FrameBase or FrameListBase class applets, but i've found this isnt the case, however this method is documented in Siebel 8.0, so expect it to be more reliable from this version onwards.
Hello
ReplyDeleteI came accross some situations where I find painfull to deploy my CanInvoke method on every applet (7.8 and 8 env) or where this applet user prop is not available (7.7 env).
Here is a way to conditionally give access to a certain BC method/function:
BC User Prop:
Key :EventMethod Enabled: EventMethod
Value : "[Id] IS NOT NULL" (example)
The constraint is that you have to name your new method "EventMethod".
Another advantage/side effect of naming your customized method "EventMethod..." is the fact that C++ class will never be invoked.
So no more "No such a specialized method exist.." message when building "new method" logic through Declarative Run Time Event (NameMethod function doesn't have this kind of problem)
Strange, I don't know why some name have been truncated.
ReplyDelete"
Key : EventMethod Enabled: EventMethod...
(Example EventMethod_BEN)
"
"
The constraint is that you have to name your new method "EventMethod...".
"