Page 1 of 1
Name of Cube in the Rule
Posted: Mon Nov 16, 2020 7:35 am
by EP_explorer
the Cube has the rule
Is it possible to found a name of current cube in the Rule?
Re: Name of Cube in the Rule
Posted: Mon Nov 16, 2020 7:41 am
by Elessar
Hi,
No.
Re: Name of Cube in the Rule
Posted: Mon Nov 16, 2020 5:16 pm
by Steve Rowe
If you explain why you would want to do this then maybe someone can propose a solution.
It is not something I've ever wanted to do other than for documentation purposes. i.e.
#This the rule sheet for Cube ABC, it does adding up.
Re: Name of Cube in the Rule
Posted: Tue Nov 17, 2020 11:58 am
by EP_explorer
I.e. I have }Cubes dimension in the cube B
and I want to write feeder from Cube A to Cube B without writing name of cube in rule in Cube A explicitly but using calculated name of the cube
Re: Name of Cube in the Rule
Posted: Tue Nov 17, 2020 12:10 pm
by Wim Gielis
From the few things I can understand from the post above, I would say 'no'.
But then again, with a better explanation, we might be able to make sense out of it.
Re: Name of Cube in the Rule
Posted: Tue Nov 17, 2020 3:35 pm
by declanr
EP_explorer wrote: ↑Tue Nov 17, 2020 11:58 am
I.e. I have }Cubes dimension in the cube B
and I want to write feeder from Cube A to Cube B without writing name of cube in rule in Cube A explicitly but using calculated name of the cube
I think you might be out of luck.
In "Cube B" you can obviously use !}Cubes notation to pull data from the source cube since you have the }cubes dimension. But in Cube A, I can't think of any way to automatically reference the name of the cube that your rule belongs to.
Its quite a niche requirement but I assume you are trying to put a pretty generic feeder into multiple cubes and want to automatically reference the cube you are in to save a bit of time. If that's the case I would expect that the time spent trying to think of ways to achieve it will exceed the 1 off tasks of writing out the cube names.
At least once your feeder is in place, the cube that you are feeding from won't change name overnight so it should be a 1 off task.