Siebel Developer's Reference > Siebel Web Engine Tags > View Tags >

Current View Tag


The current-view tag identifies the location or zone that an alternate view occupies. It uses the following format:

swe:current-view

This tag allows the user to navigate to other views when multiple view zones exist. In the example in the Displaying More Views in the Content Area topic, SWE navigates to the Search view the first time it displays the search view zone. During any subsequent display of this zone, the specialized frame code in the Search view can call the BuildViewAsync method or it can display controls that the GotoView method references that allow the user to navigate to other views. For important caution information, see Using Specialized Classes.

The main view contains an empty view ID.

If you configure SWE to make a call from:

  • The BuildViewAsync method. You must set the pViewId parameter to the View ID of the view that SWE must display.
  • A frame. You must use the view ID of the frame that the m_cszViewId data member of the frame sets. This data member is part of the CSSSWEFrame class. It identifies the view where the frame resides. This configuration causes Siebel CRM to display another view in the same view zone.

To configure the main view to navigate to another view, you can configure SWE to call the BuildViewAsync method and set the pViewId parameter to NULL.

You can use the following code to get a view:

CSSSWEFrameMgr::GetView (const SSchar* pViewId = NULL);

where:

  • GetView is a method that resides in the CSSSWEFrameMgr class.

You can use the following code to get the main view:

m_pFrameMgr->GetView()

You can use the following code to get the search view:

m_pFrameMgr->GetView ("Search")

Siebel Developer's Reference Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.