Forum Discussion

Montreux's avatar
Montreux
New Contributor III
2 years ago

ADM_SolutionHelper

I have a case where the client needs to add members to a dimension regularly and the ADM, Add Dimension Members, dashboard is idea as found in GolfStream.  However, there is a problem in the ADM_SolutionHelper rule that stops this from running.  It doesn't compile properly.

Error compiling Business Rule 'ADM_SolutionHelper'. 1) Error at line 136: Property 'Name' is 'ReadOnly'.

2) Error at line 137: Property 'DimId' is 'ReadOnly'.

Can someone explain how to resolve this please.  

  • Got it. Comment out lines 135, 136, 137, add a new line as follows.

    'Dim newMem As New Member(newMemPk)
    Dim newMem As New Member(newMemPk,memberName,MemberNameDescription,dimensionPK.DimId)
    'newMem.Name = memberName
    'newMem.DimId = dimensionPk.DimId 'parentMem.Member.DimId

  • Montreux's avatar
    Montreux
    New Contributor III

    Got it. Comment out lines 135, 136, 137, add a new line as follows.

    'Dim newMem As New Member(newMemPk)
    Dim newMem As New Member(newMemPk,memberName,MemberNameDescription,dimensionPK.DimId)
    'newMem.Name = memberName
    'newMem.DimId = dimensionPk.DimId 'parentMem.Member.DimId

    • WernerN's avatar
      WernerN
      Contributor

      Lifesaver!  Thanks for this post.   

Related Content