sivan307 wrote:To sum up, if I have to add 2 or more parent-child combinations from an input template that is not a flat file and the values are input by the users. Using an action button to run the TI process that will allow us to add 2 or more combination.
I'll be brutally honest with you here. This is not a good design choice. If you want to have the ability to create multiple child/parent relationships in the dimension, passing those choices as a parameter is not a good idea because you are going to be locked into a certain number of "possible" combinations. Basically you will need two parameters for each relationship. If you build it to handle 5 relationships at a time (10 parameters), what happens when you decide you want to have 6, or 7, or 15? Let's say you build it to handle 10, what if the user only wants to process 3? You've got to have logic to skip the other 7.
You need to process a data source so those records can come in one at a time and you can just have one set of logic in the Metadata tab that will do the same thing regardless of how many relationships you are handling. You have several options for doing this:
1. Have a share somewhere that both the users and the TM1 service have access to and put VBA code in the template that will save a portion of your template as a CSV file in that share. Then your action button can kick-ofd a TI process that loads that file.
2. Same idea as 1 but have a table in an ODBC database instead of a flat file.
3. Write your choices to a two dimensional cube, or three dimensional using }Clients dimension. Create view on that cube that can be data source for TI process. DBS formula in template writes values to cube. Action button kicks off TI process that loads data from view and processes dimension changes.