Skip to Content
0
May 15, 2021 at 11:24 AM

Can you change dimension properties in a chart?

101 Views Last edit Jun 21, 2021 at 01:29 PM 2 rev

Hi,

Is it possible to change the Dimension properties description that is viewed in a Chart?

Dimension:
description: "Text1" --> description: "Text_Changed_Description"

id: "01"
parentId: undefined

I want to change the description with if/else or switch case in the frontend that I dont have to change it in SAP BW.

Something like this code below - but the problem here is that after changing the description the dimension doesn't recognize it anymore. How could you do that?

var de = Chart_1.getDataSource().getResultSet();
if (de.length>0)
{
	var desc=ArrayUtils.create(Type.string);
	for(var i=0;i<de.length;i++)
	{
		desc[i] = de[i]["Dimension"].description;
		switch (desc[i])
		{
		case "Text1":
		desc[i] = "Text1_Changed_Description";
		break;
		}
	}
}