cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to display attribute value by using getAttributeMemeber in Lumira designer 2.0

0 Kudos

Hi

I am trying to get an attribute by using this getAttributeMemeber,but this does not seem to be working.

DS: SAP Lumira designer 2.0

ZNTPDATE is an attribute of Z_PROJECT.

var proj=DS_OP_INFO.getMembers("Z_PROJECT", 10);

var ntp=DS_OP_INFO.getMembers("Z_PROJECT", 10,"ZNTPDATE");

var ntp1="";

proj.forEach(function(element, index) { proj1 = element.text; });

ntp.forEach(function(element, index) { ntp1 = element.getAttributeMember("ZNTPDATE").internalKey; });

APPLICATION.alert(ntp1);

Hope i am doing in right direction.

Please guide me.

Thanks

Palanivel

Accepted Solutions (1)

Accepted Solutions (1)

TammyPowlas
Active Contributor
0 Kudos

Hello - comparing your code to Reiner's blog here https://blogs.sap.com/2017/12/21/mysterious-memberlists-in-lumira-designer/ - it looks like you have periods in places where you should have commas; I recommend comparing your code to Reiner's blog.

0 Kudos

Hi Tammy,

This block helped me to fix this.

Thank you.

BR

Palanivel

Answers (1)

Answers (1)

afzal_kar
Active Participant
0 Kudos

Hi Palanivel,

Can we search attributes in the dimensional filter.

We need to create the filter which uses Attributes.

From

M Afzal Kar