Navigating through the history thread
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”);}
1 comment June 26th, 2007