Siebel Object Interfaces Reference > Interfaces Reference > Business Component Methods >

GetViewMode Method


GetViewMode returns the current visibility mode for the business component. This effects which records are returned by queries according to the visibility rules. For more information, see SetViewMode Method.

Syntax

BusComp.GetViewMode

Argument
Description

Not applicable

 

Returns

An integer constant that identifies a visibility mode

Returns
Description

mode

Where mode is a Siebel ViewMode constant or its corresponding integer value. The constants shown are defined in three environments. For details on each Siebel ViewMode constant, read SetViewMode Method.

  • SalesRepView (0)
  • ManagerView (1)
  • PersonalView (2)
  • AllView (3)
  • OrganizationView (5)
  • GroupView (7)
  • CatalogView (8)
  • SubOrganizationView (9)
Usage

GetViewMode() returns NoneSetView mode until a business component is executed or has its view mode set through SetViewMode(). The NoneSetViewMode value indicates that the business component has not yet had any visibility rules applied to it. A business component that has just been created through a call to GetBusComp() is in this state, so if a specific view mode is desired, it must be explicitly set through SetViewMode(). Otherwise, the first time the business component is executed, its view mode is set according to the most restrictive visibility mode defined for that business component.

Used With

COM Data Control, COM Data Server, Java Data Bean, Mobile Web Client Automation Server, Server Script

Related Topic

SetViewMode Method

Siebel Object Interfaces Reference Copyright © 2008, Oracle. All rights reserved.