Alias derived from another hierarchy

Hello world

I just wanted to thank Denzz who helped me with my previous request to bypass a parent to 'false '. Your support means more you know

My last request for a while (I promise )

I need to retrieve an alias to a different hierarchy.  Let me explain:

The members of YOUR hierarchy, in the TA_Name attribute are derived.  However, they already exist in the hierarchy of the portfolio.  The only downside is that members of the PFC are different between the portfolio and YOUR hierarchy, as shown above.

I need to write a formula derived in order to enter the alias in the hierarchy of the portfolio.

I have it so far, but it only gives me the correct alias for the members of the PPP:

HierNodePropValue (Portfolio, Substring (Abbrev (), 1, 9), Custom.DRM.GLOBAL_ALIAS)

Any ideas? Thank you once again!

2899259

Try this-

Don't forget that your export is expected to use the field delimiter that remains "Tab", everything remains the same until now-

The Name property has some changes, try this as a derivative 'script '.

Change all Core.Descr in my script with the name of the Alias property, also ensure that the portfolio hierarchy name is correct, make sure that you replace Custom.ParentTest with the name of your parent property

Everything else remains the same, we only change the Name of the custom property.

var nodname is node. ABBREV;

var name = nodname.substring (0.4);

var ChildCount is node. PropValue ("Core.Children");

var alias = node. VarValeurProp ("Core.Descr");

"var pfc =" ", str =" ", portalias =" ", tab = '\t';"

var arrfinal = new Array();

var verobj is node. Version;

var porthierobj is verobj. HierByAbbrev ("portfolio");

var portnodeobj = null;

If (name == "IND-" & childcount > 0) {}

var arrchild is node. GetChildren (true);

for (idx = 0; idx<>

PFC = arrchild [idx]. VarValeurProp ("Custom.ParentTest");

pfcstr = AFC. Substring (0.9);

portnodeobj = porthierobj. NodeByAbbrev (pfcstr);

{if(portnodeobj===null)}

Return ' ';

}

portalias = portnodeobj. VarValeurProp ("Core.Descr");

arrfinal [idx] is PFC. Concat (Tab, portalias);

}

Return arrfinal;

}

Return nodname.concat(tab,alias);

Let me know if it works, I don't know it will be.

Thank you

Denzz

Tags: Business Intelligence

Similar Questions

Maybe you are looking for