Skip to Content
0

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

Feb 02 at 06:48 AM

91

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Tammy Powlas
Feb 02 at 10:33 AM
0

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.

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Tammy,

This block helped me to fix this.

Thank you.

BR

Palanivel

0