רשומות

מציג פוסטים מתאריך אוגוסט, 2010

Making buttons/Controls invisible

Sometimes greatest treasures are those which are invisible to eyes. Hiding controls at runtime could be fun and at times very useful.This may help in avoiding creation of multiple applets. Recently i came across a scenario where in one view user was allowed to perform some operation on button click while in other views he should not see buttons. One approach is to have applet Base mode defined in the other view w/o buttons but it fails when mulitple toggles are defined in the applet and applet defined in view is of mode type "Edit". Other option is to make controls invisible. Following code could be useful for making buttons hidden in Form Applet dynamically based on the View type. Again Browser Script is our friend. function Applet_Load() { var sView = theApplication().GetProfileAttr("ActiveViewName"); switch(sView) { case "Activity Attachment View": var ctrlSubmit = this.FindActiveXControl("Submit"); // This is the name of control ...

Fetching ASCII Code

תמונה
The key to the most generic character encoding scheme is ASCII. I am sure many of us at some point of time have land up in situation where the ASCII representation is desired. It is must in scenarios while playing with bitwise operators for calculations. Siebel also gives us function which returns ASCII value for any character. Function: stringVar.charCodeAt(indexVar) Example: var sEnCode = "ABCDEFGH"; var sGetCode = sEnCode.charCodeAt(2) This will return 67 as output as ASCII representation for C character is 67. More of this function is available on siebel support under document ID 513659.1

Navigating Backward

Going back was never so easy. Siebel makes use of underline javascript functions to go to previous page. It can come handy in many scenarios. Following code could be used on browser side of applet for going backward. if(name == "Back") { history.go(-1); return ("CancelOperation"); } Or if(name == "Back") { window.history.back(-1); return ("CancelOperation"); } There are multiple ways to achieve this. Some of the OOB business services which could be used to achieve this are "CUT eSales Order Entry Toolkit Service" or "FINS Goto View Service" which has got "GotoView" method which can be used to navigate to destination while maintaining the context. simply siebel !!!

Get NASDAQ Market updates in Siebel

תמונה
Like most of you Siebel lovers I too like to integrate anything and everything with Siebel. Here is an example of how you can get NASDAQ updates within your Siebel Application. Here is how you do it! Steps: 1. Create an applet with a Single control. 2. Add the following code to your single control that you have in your applet. Caption String Override: (in frame src tags) ="tickerpanel.asp?COOKIE=S~MSFT~~|S~INTC~~|S~NWSA~~|S~QQQQ~~|S~CSCO~~| S~ATML~~|S~DELL~~|S~NVDA~~|S~RIMM~~|S~MU~~|I~IXIC|I~INDU|I~SPX" name="ticker" scrolling="no" frameborder=0 noresize marginwidth="0" marginheight="0" 3. place this applet in a view and your done! Stay tuned for a more advanced version of this post! Cheers!

Bulk Symbolic Strings Creation

Siebel is like an ocean, everyday i learn something new. We all have worked with Symbolic Strings. "Symbolic Strings" are key while configuring Multilingual environment. But at times most of us land up creating "String Override" instead of creating "String References". Same scenario happened with me before i realized it was too late for me to go back and create Symbolic Strings for each applet titles and display Columns. It can be very tidious task to create symbolic strings manually and assigning them to respective columns when the list is huge. Siebel again came to resuce and after some analysis i found there is a utility in siebel which could be used to generate Symbolic Strings in bulk. Yes Siebel can do it for you. " strconv.bat " is the Magic Wand here. This batch files is located in the siebel installables folder under Bin. This file basically works in two steps: 1 - It creates list of items which needs to be regrouped for Symbolic string ...

Multiple Drill-downs

תמונה
Many of us have configured drilldowns in our project and as a deliverable there are scenarios also when we have to capture Drilldown method. This can be easily done by trapping Drilldown method at applet level using "Drilldown" method. However complexity comes when we have multiple drilldowns defined on the applet and we need to capture any particular drill-down field for processing. But Siebel always spring something as life saver. We can capture the drilldown for any particular field using "SWEField" property which comes as input property. Each mapped field have a unique identifier which can be used in drilldown method to check desired field. First lets try to fetch the SWEField id for any desired drilldown field. I am still not able to figure out how siebel generates this tag, any help on this will be really great. This sample code on browser side helps in fetching the SWEField tag for any field in applet on Drilldown method. function Applet_PreInvokeMethod (name...