Wednesday, September 21, 2011

How to Clear Cookies using batch File in Siebel

Hi All,
Requirement :How to clear cookies & Temp File in siebel.
In Siebel we are selecting a LOV value and after selecting the LOV value click on GO button then it will open a Shopping cart portal. The issue is that after adding the item your cart it will show you the Amount.But if you closed the shopping cart window and open it again it is showing the same amount this is the issue it should not show the previous amount.

Solution: We have to create a batch File with the following statement:

RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255
pause@echo off"%PROGRAMFILES%\Internet Explorer\IEXPLORE.EXE" http://www.yourshoppingportalwebsite.com

save the text file with .bat eextension. eg Test.bat
Now we have the save the file in particular Drive or Folder.For eg i saved @ C:\Test.bat
Then we have to invoke the bat file using script:
Browser Script:
var shell=new ActiveXObject("WScript.Shell");
shell.Run("C:\\Test.bat",1);

Server Script:
Clib.system("C:\\Test.bat");

Note: I tried Clib.system() in browser script but it didn't work.
Happy Learning :-)

No comments:

Post a Comment