Forum Discussion

SachinJoshi's avatar
SachinJoshi
New Contributor
19 hours ago

Dynamic Member addition in version 9

We are looking for some help in direction to build dynamic member addition to a dimension using extensible business rule in version 9.0 We have tried to use the code that is used in earlier versions which uses declaration like "Dim newMember As New Member" but it does not work anymore in version 9 as it gives error when assigning values to newMember.Name property and some search suggests that we now need to use "Dim newMember As New MemberEx" Using this declaration results in error compiling the business rule. We are looking for some help/direction on this.

2 Replies

  • rhankey's avatar
    rhankey
    Contributor II

    I can't comment on what if anything changed with pre-9.0 and 9.0 with respect to dynamic dims, as I didn't dive in deep with them until 9.0.  If you are having issues, perhaps the easiest way forward would be to generate a new DynamicDimensionService File, which provides a couple working examples of creating new members.  Here is a copy/paste that shows the sample syntax used in 9.0.  Obviously, there are a few alternate ways that get the job done too.

    Dim myNewMember As DynamicMember = myDynamicMembers.CreateAndAddMember(api.DbConnApp, args, "My New Member", "My Default Description")

  • JackLacava's avatar
    JackLacava
    Community Manager

    There must be some confusion in terminology, because nothing has changed in 9.0 related to Dynamic Dimensions.

    If you mean that you were adding actual, stored members with Business Rules, as it was possible in versions before 8.4, that's a different topic.

    In any case, unless you post some code it will be difficult to understand what the problem is.