Navigating through the history thread

June 26th, 2007

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”);

}

Entry Filed under: Scripting, Siebel

1 Comment Add your own

  • 1. Mike Lin  |  January 24th, 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.

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

June 2007
M T W T F S S
« May   Jul »
 123
45678910
11121314151617
18192021222324
252627282930  

Most Recent Posts