Bookshelf Home | Contents | Index | PDF |
Siebel Object Interfaces Reference > Interfaces Reference > Application Methods > GotoView MethodGotoView activates the named view and its BusObject. As a side effect, this method activates the view's primary applet and its BusComp and activates the primary applet's first tab sequence control. Further, this method deactivates any BusObject, BusComp, applet, or control objects that were active prior to this method call. SyntaxApplication.GotoView(ViewName[, BusinessObjectName]) ReturnsUsageIf a business object has not been instantiated, BusinessObjectName should have the value Nothing. NOTE: The GotoView method is not supported in the following events: Application_Navigate, Application_PreNavigate, Navigate, PreNavigate, and WebApplet_Load. The following Siebel VB script uses GotoView to programmatically navigate to the Opportunity List view.
Alternatively, if your application has already instantiated an Opportunity object with the object reference of objOppty, the appropriate usage in Siebel VB is:
NOTE: When this method is used in a Siebel VB or eScript script, regardless of where it appears in the script, it is executed last. The Control property "Show Popup" should not be set to TRUE on a button if there is underlying script that uses GotoView. If Show Popup is set to TRUE and GotoView is used, the view is opened in a new browser window. The Siebel client UI does not support a Multiple Document Interface (MDI) architecture, so this combined configuration and scripted call to GotoView is not supported. Used WithExampleThe following examples show how to use GoToView with and without the optional business object parameter. The following example is in Siebel eScript. function BusComp_WriteRecord () //Get the lead quality for this opportunity //If it is a excellent lead, with (actBC) TheApplication().GotoView("All Account List View",actBO); } The following example is in Siebel VB. Dim leadQuality As String 'Get the lead quality For this opportunity 'If it is a excellent lead With actBC TheApplication.GotoView "All Account List View",actBO Else |
Siebel Object Interfaces Reference |