動態成員清單

如需動態成員清單,而非列出成員清單的所有成員,可輸入規則以選取符合指定準則的成員。準則為成員特性,如幣別或帳戶類型。此清單會在每一次使用者存取時動態產生。

您可以使用 Oracle Hyperion Financial Management 函數和引數以建立成員清單。

以下語法建立了一個動態成員清單,來獲取所有 USD 實體:

If HS.Dimension = "Entity" Then
  If HS.MemberListID=1 Then
    ELi=HS.Entity.List("", "")
'Entities are read into an array.
      For i=Lbound(ELi) to Ubound(ELi)
'Loops through all entities.
      If (StrComp(HS.Entity.DefCurrency(ELi(i)),
      "USD",vbTextCompare)=0) Then
      HS.AddEntityToList "",ELi(i)
'String compares default currency for entity to USD. If there is a match, the entity is added to the member list.
      End If
      Next
  End If
End If

在本範例中,實體清單會加入陣列。針對陣列中的每一個實體,DefaultCurrency 特性的值會與 USD 的偏好值比較。如果該值等於 USD,則實體將新增到清單中。然後系統處理陣列中的下一個實體。