动态成员列表通过您输入的规则来选择满足指定条件的成员,而不是列出成员列表的所有成员。条件是成员属性,例如,货币或帐户类型。用户每次访问此类列表时,都会自动生成该列表。
您可以使用 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,则实体将添加到列表中。然后系统处理阵列中的下一个实体。