Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Feb 02 at 10:33 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded