Learn about Lockerz... watch videos,answer dailies and earn prizes.. Invitations Sent Out: 60 >> << | 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.

Related Posts


Article by neel

Authors bio is coming up shortly. neel tagged this post with: Read 416 articles by neel
View Comments Post a Comment
  1. Piyush says:

    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

    • neel says:

      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

  2. Dos says:

    Can’t we use Command rather than invoking unsupported business service?

    Thx,
    Dos..

  3. ivan says:

    “if (currentLoginName = “DUMMY”)”
    This sentence contains a syntax error:

    I think : ‘if (currentLoginName == “DUMMY”)’ is right

  4. Bhargav Kodali says:

    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

  5. Sushil says:

    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

  6. Sushil says:

    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

blog comments powered by Disqus

Polls

Do you know how to use replace function?

View Results

Loading ... Loading ...