ISCaseService.Complete

Description

This function completes the case sub-referral.

Syntax

object.Complete

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

Example

Complete the case sub-referrals loaded on the basis of the selected filter and display their number and some information about them.

Dim aFilter
Dim aCaseServices
Dim aCaseService
Dim aMessage
Dim i

Set aFilter = Profile.CreateCaseServiceFilter
aFilter.PosID = Profile.CurrentPOSId 
set aCaseServices = Profile.LoadCaseServices(aFilter)

aMessage = "Case Sub-Referrals Count = " & aCaseServices.Count
for i = 0 to aCaseServices.Count - 1
  set aCaseService = aCaseServices.Item(i)
  aMessage = aMessage & vbNewLine &_
    "Reason: " & aCaseService.Reason & vbNewLine &_
    "Comment: " & aCaseService.Comment & vbNewLine &_
    "Opened: " & aCaseService.Opened & vbNewLine &_
    "Closed: " & aCaseService.Closed & vbNewLine &_
    "Pos Code: " & aCaseService.PosCode & vbNewLine &_
    "Source Ref: " & aCaseService.SourceRef & vbNewLine &_
    "Subreferral Status: " & aCaseService.SubreferralStatus & vbNewLine 

  aCaseService.Complete

next  

Profile.MsgBox(aMessage) 
Note:

In Profile Client v8 on User Interface Case Sub-Referrals can be found and completed in Organisation > Work Centre > Work > Cases > Edit Case > Administrative > Case Sub-Referrals.

Version information

Added in v7.8.0