Navigating through the history thread

June 26, 2007 at 6:21 pm 1 comment

Quick question: how do you go about navigating ‘back’ or ‘forward’ in a Siebel 7 application?

Quick answer: use the JavaScript history object.

In Siebel 6 there was the ‘GoBack’ method, but that never made the journey across the thin client chasm. I’ve come across a couple of different methods for Siebel 7, but the history object is by far the most robust and reliable. It’s browser script only, because you’re accessing the native JavaScript object, but that drawback is far outweighed by its simplicity.

To navigate back one step in the history, the code might be:

function Applet_PreInvokeMethod (name, inputPropSet)
{

if( “GoBack” == name )
{

history.go(-1);
return (“CancelOperation”);

}
return (“ContinueOperation”);

}

Advertisements

Entry filed under: Scripting, Siebel.

More Siebel Web Resources Enable Script Assist

1 Comment

  • 1. Mike Lin  |  January 24, 2008 at 5:28 am

    One caveat with this one: If you raise an error text from the Application.PreNavigate event when attempting to leave a view using history.go(-1), you will correctly be prevented from leaving that view, but the error text will not be displayed. It will be reduced to some nonsense like “”.

    But this is a nice solution for most purposes.


Feeds


%d bloggers like this: