ISWaitList.PrivacyRole

Description

The privacy role of the selected case.

Syntax

object.PrivacyRole

Part Attribute Type Description
object Required
The object always implements the ISWaitList interface

Return Value

ISRole

Example

Display the number of the case wait lists loaded on the basis of the selected filter, the dates when they were opened and closed, the name of the privacy role.

Dim aFilter
Dim aCaseWaitList
Dim aCaseWaitLists
Dim aMessage

Set aFilter = Profile.CreateCaseWaitListFilter
aFilter.PosID = Profile.CurrentPOSId 
set aCaseWaitLists = Profile.LoadCaseWaitLists(aFilter) 

aMessage = "The number of the wait lists with the specified POS ID (" &_
  aFilter.PosID  & ") is " & aCaseWaitLists.Count
for i = 0 to aCaseWaitLists.Count - 1
  set aCaseWaitList = aCaseWaitLists.Item(i)
  aMessage = aMessage & vbNewLine & (i + 1) & ") " & _
    "From " & aCaseWaitList.OpenedOn & " To" & aCaseWaitList.ClosedOn
    if not aCaseWaitList.PrivacyRole is nothing then
      aMessage = aMessage & " Privacy Role: " & _
        aCaseWaitList.PrivacyRole.RoleName
    end if  
next      

Profile.MsgBox(aMessage)
Note:

In Profile Client v8 on User Interface Privacy Role can be found in Organisation > Work Centre > Wait List > Edit Wait List Entry > General > Privacy.

Version information

Added in v7.8.0