- Timestamp for the audit entry
- Record Type such as "Clientconnect" or "WriteRecord"
- Host name
- Process Id
- Client name such as srvrmgr, siebsess or siebmtsh
- User name
- Key name (the entry in siebns.dat which has been modified during a WriteRecord event)
- Value (the new value of the key)
Friday, May 7, 2010
Gateway Server - Audit Trail
Wednesday, May 5, 2010
Bookshelf
NamedMethod
Named Method n (Business Component)
This user property allows you to invoke a business component or business service method, or set a field value. It can be used in place of scripting.
The value you provide for the Named Method user property depends on the action you want to perform. For setting a field value, the value consists of three quoted parameters separated by a comma and a space, as follows: " When Name is called, the value of Field is set using Expression. For invoking a business component method, the value consists of four quoted parameters separated by a comma and a space, as follows: "Name", "Action", "BusComp", "Method" When Name is called, Method is invoked on the BusComp business component based on the defined Action. For a list of actions, see Table 21. For invoking a business service method, the value consists of five quoted parameters separated by a comma and a space, as follows: "Name", "Action", "BusComp", "Service", "Method" When Name is called, Method from the Service business service is invoked on the BusComp business component based on the defined Action. For a list of actions, see Table 21. You can optionally append an additional parameter that defines an expression. If you use a business service action, the expression is passed as a property set, so you must use name-value pairs rather than an array of strings ("NameExpr", "ValueExpr"). | |
Sometimes it is necessary to trigger actions in response to data changes, for example when records are created, deleted, or updated. The response can be required to be triggered before or after the date change has been applied. Within the Siebel Application there is standard functionality, including user properties, to allow you to implement automated responses to data changes without the need to use custom scripts. The Named Method n user property can be used to invoke methods in a certain order.
| |
This user property is supported for business components based on the CSSBCBase class. You can create additional instances of this user property as needed. If you have more than one instance of this user property for a business component, each instance is executed sequentially by number (for example, Named Method 1, then Named Method 2, and so on). If there is only one such user property, then no number is required. See also About Setting Numbered Instances of a User Property. | |
Table 21 lists the actions available for the Named Method n user property.
PreCan Invoke
Of course, you'd start with adding a MiniButton control to the applet layout and specify the method to be invoked in the MethodInvoked property.
Such a button is visible on the applet but not clickable. The reason is that the Siebel framework does not "know" the custom method and the Siebel CanInvokeMethod event handler only enables "known" methods.
Most developers head for the applet script editor and add a server script similar to the following in the PreCanInvokeMethod event handler to enable the button.
The result is that the button is active and clickable, so we can now focus on implementing the desired functionality such as invoking a business service.
BUT: Very often, the script is repeated across dozens or hundreds of applets without any further logic, for example switching the button state depending on user or data attributes. The script just has to "be there" in order to make 'em damn buttons active. So we end up with a lot of script.
Or is there...?
Yes, there are various alternatives which I will discuss in this post.
Named Method User Property
If you wish to have a button which is always active and invokes a method or business service (or Siebel workflow process via the Workflow Process Manager business service), you simply declare the Named Method user property.
Even if you could do it on the applet, why not just do it on the business component? Usually the method should be enabled on all applets on a given BC, shouldn't it?
The syntax for business component side Named Method entries is as follows:
Name: Named Method N (where N is a sequential number)
Value: "MethodName", "INVOKE Command", "INVOKE Arguments"
Here is an example:
There are numerous examples in the Siebel Repository, so we can most probably copy an existing Named Method user prop and modify the sequence number and the value.
More information about the Named Method business component user property and the various "INVOKE" commands can be found in the Siebel Developer's Reference.
Once the Named Method user property is set at either the applet or BC level, the buttons (or Command objects) referencing the method are in an active state. There is NO SCRIPT NEEDED. This technique works at least since Siebel 2000.
CanInvokeMethod Applet User Property
In Siebel 8.0, a new applet user property named CanInvokeMethod has been introduced which is documented here. The benefit of this user property is that its value can be an expression (in Siebel Query Language) which returns TRUE or FALSE. So simple decision logic when to enable or disable a method can be implemented without scripting.
FrameEventMethod prefix
Originating in the "Synthetic Event Button" feature in interactive workflow processes in Siebel 7.7, the quite exotic "FrameEventMethod prefix" allows us to create a button which invokes a method and have it always enabled without the need for script or even user properties.
Using the string "FrameEventMethod" as a prefix for the name of the method to be invoked ensures that the Siebel event framework accepts the method, so it can be easily used in a workflow process event or similar. Don't believe it? Try it!
Summary
The truth about (script in) the PreCanInvokeMethod event handler?
It is rarely ever needed. There are various declarative alternatives which we can use in our everlasting effort to reduce the use of scripting while customizing Siebel CRM.
have a nice day
Friday, December 7, 2007
ODBCSQL Utility
To test the ODBC data source, type the following commands:
Launch the odbcsql utility:
(Microsoft Windows) Navigate to
(UNIX) Make sure you have the Siebel environment variables set appropriately. Navigate to
./odbcsql
At the ODBC prompt set the SIEBEL_DATASOURCE_NAME to the ODBC data source for which you want to test the connectivity (for example: SiebSrvr_siebel77). On Microsoft Windows, you can navigate to Start > Settings > Control Panel > Administrative Tools > Data Sources (ODBC) > and click on the System DSN tab to locate the name of the ODBC data source. On UNIX, you can find the Data Source Name in the
ODBC> set source
Connect as a user with the appropriate privileges, for example:
login SADMIN/
Execute a SQL statement against any table. For example:
ODBC> SELECT APP_VER, COMMENTS from
This should result in the application version and comments (if any) being displayed and should indicate that the connectivity via the ODBC layer is set up correctly. For example:
ODBC> SELECT APP_VER, COMMENTS from S_APP_VER;
APP_VER COMMENTS
------------------------------ ----------------------------------
V7.7 Database Schema for Siebel 7.7
------------------------------
(query+fetch time: 0.07s, rows fetched: 1, time per row: 0.07s)
Any error messages returned at this point would indicate the following:
There are problems downstream from the ODBC layer to the database or
There are problems in the user and password combination or
There are problems with the SSE_ROLE privileges granted to that user.
You can find additional information in the Siebel Bookshelf version 7.7 > Siebel Installation Guide for (Microsoft Window or UNIX): Servers, Mobile Web Clients, Tools > Installing the Siebel Server:
Sunday, September 16, 2007
Max Cursor Size
Thursday, August 9, 2007
NM Stage Load Balencing Issue
Start Siebel Resonate Server on Siebel 704 box
Start Siebel Server on Siebel Server 704 box
make 703 a dummy server
Insanity: Doing the same thing over and over again and expecting different results. -Albert Einstein
