New Comment System@Siebel Unleashed.. Do Try and give me feedback | Next Tip »Home

Automatic Logout from Siebel Application

OkAvarageGoodVery GoodExcellent (2 votes, average: 3.00 out of 5)
Loading ... Loading ...

Sushil, a reader of Siebel Unleashed shared a tip, which looks useful so sharing it with all.


If you have requirement of logging off user based on certain conditions then you can use LS Medical Product Issue Service BS to logoff a user from application.

Here is sample code:

var currentLoginName;
currentLoginName = LoginName();
if (currentLoginName = "DUMMY")
{
bsService = GetService("LS Medical Product Issue Service");
bsService.InvokeMethod("Logoff");
}


P.S: I have not tried the script personally and Business Service mentioned in the tip seems to be a specialized business service available only for SIA Applications.

Let us know your experience if you have had a chance to use it.

  • Share/Bookmark

Related Posts


Article by neel

Authors bio is coming up shortly. neel tagged this post with: Read 387 articles by neel
  • Sushil
    Bhargav,

    late to respond you, scenario could be
    1) To ensure availibilty of CTI Toolbar always
    2) if app is closed using "X"

    Regards
    Sushil
  • Sushil
    Thanks evan for correcting error.

    This worked in 7.8 also and this doesn't expect any argument, if you search in Tools you will get this BS.

    but you can use neel suggestion to get this worked.

    Sushil
  • Bhargav Kodali
    Hi All,
    Can some one share the business req or scenario where the user should be logged off automatically.
    Thanks in advance.

    Thanks and regards,
    Bhargav Kodali
  • ivan
    "if (currentLoginName = "DUMMY")"
    This sentence contains a syntax error:

    I think : 'if (currentLoginName == "DUMMY")' is right
  • Dos
    Can't we use Command rather than invoking unsupported business service?

    Thx,
    Dos..
  • Piyush
    Hi,

    I tried the above method but it is thrwoing following error

    "The scripting language method was called with an invalid argument when a PropertySet object was expected.(SBL-SCR-00146)"

    This i tried to search in meta link, there also,there is nothing mentioed about this . Is any one have any idea on this ?

    Thanks
    Piyush
  • Piyush,

    The sample code is going to work in siebel 8.0 which supports this new way of calling business service.

    If you tried this code on lower versions then you have to do it old way of declaring property set and passing it along with InvokeMethod.
    Hope this will solve your problem
blog comments powered by Disqus

Polls

Do you like the new Comment System and new look to Site?

View Results

Loading ... Loading ...