Monday, November 30, 2009

How to customize your Siebel application toolbar

Want to customize your tool bar? here is how you can do it.

Depending upon where you want your button or control to go. You will have to select the appropriate toolbar and customixe it.

In this post I will show you how to create a custom button to logout from your application.

Step 1:  go to Command Object in your Object Explorer and query for "Logout"
(If you cannot see this object. In tools go to View | Options | Object Explorer tab | check the Command Object)






Step 2: Copy the the Logout command object and rename it to 'Logout New'(you could use the same one too)








Step 3: Go to the toolbar Object in your Object Explorer and query for "HIQuery" toolbar(you could use another toolbar depending on where you would like to see your button on the application)







Step 4: click on the toolbar Item child object. Create a new record called 'Logout' with the following properties

- Name: Logout
- Command: Logout New
- Display Name: Logout

 


Step 5: Compile all objects you modified/ created.

your application should have the 'Logout' button right next to the Execute query button.






 





Now, when you click on the logout button siebel will call the Logoff method and the application will logout.

Next, I will show you show to call a business service from a custom button on the toolbar. Stay tuned...


Cheers!

Wednesday, November 18, 2009

How to add a Screen Tab image to your siebel application

Hi all,

This is usually a part of Branding, adding your own images/icons to the siebel application like I have added below.




Required Configuration :



Add the Screen on the Page tab. Only the image will be visible.





In Bitmap Category create a new record with a unique name and the required parameters.
In Bitmap child object create a new record with name ‘Screen Tab’ and in filename specify the name of the file with the .gif extention.






To specify the properties of ‘Logo’ go to menu -->View-->Windows-->Properties Windows.
Now you will be able to edit the ‘Height’ and ‘Width’ properties.
In the Object Explorer goto Screen --> Create new/Use existing screen and give the required properties.
Then goto Siebel Tools menu--> View-->Windows-->Properties Windows.
Specify the name of the Bitmap Category in the Bitmap Category Property as displayed in the below figure.






Compile all the Objects.
Clear internet history and files. Reopen the Application.
You should now see the icon you have added on the screen tab.


Cheers!

Tuesday, November 17, 2009

Integrating Siebel 8 With Oracle SOA Suite

Here is a complete documentation of how to pull Siebel data from an external application(JDeveloper)



Cheers!

Tuesday, November 10, 2009

How to Launch an external executable from Siebel

There are many ways of doing this. Here are two -

1. The first approach is a bit easier than the second. The script is written in the Applet_Load event of the Applet Browser Script. You can also invoke the executable file from a button click etc...

Script

function Applet_Load ()
{
//Instantiate an ActiveX shell Objext.
var wshell = new ActiveXObject("WScript.Shell");
var oFSO = new ActiveXObject("Scripting.FileSystemObject");

//the path of where this file has been installed
sDirectory = "C:\\PROGRA~1\\WINDOW~1\\ACCESS~1\\";

sFile = "wordpad.exe";
sFilePath = sDirectory + sFile;

//Check if the .exe file is installed
if(oFSO.FileExists(sFilePath))
{
execRet = wshell.Run(sFilePath, 3, false);
}
else
{
alert("You do not Wordpad Installed.");
}

oFSO = null;
wshell = null;
return ("CancelOperation");
}


Now, When the applet loads wordpad will open.

2. The second approach uses a setTimeout JavaScript function that offers executing a function after a sleep duration. Then a new function must be created (waitForExecCompleted in the below example); this function will perform the test on the status of the external application: If the application is still running, re-execute itself after a while If the application is completed, run the rest of code


Script

//Global Declaration

var execRet;

function waitForExecCompleted()
{
if(execRet.Status == 0)
setTimeout("waitForExecCompleted()", 100);
else
{
execRet = null;
alert("Completed");
}
}

function launchExternalApplication()
{
var wShell = new ActiveXObject("WScript.Shell");

//File path
execRet = wShell.Exec("C:\\WINNT\\system32\\calc.exe");
waitForExecCompleted();
}



Cheers!
Share/Bookmark