Skip to Content

Checking/Verifying a Value in Dimension List ? (edited)

Oct 30, 2017 at 08:08 PM


avatar image

Hi Folks,

I want to verify a value if it matches or present in the LIST of a Dimension field.

My code for loop iteration as below, that gives me last row of the list.

However I can expose values of items in my list by locating INDEXES as 1,2,3,4....10max and then do a value check on those Indexes but i think there has to be a smarter way to do a loop test, that you may be aware off.

I would appreciate if you can guide me on the same.

MemberPresentation.INTERNAL_KEY, MemberDisplay.KEY, 10));

var datamember = DS_ACTION.getMembers("0ACTIONTYPE", 10);
datamember.forEach(function(element, index) { 
var visual_member = element.internalKey;

CAPTURED.setText(visual_member); //checking what is captured (last row in
the list got captured)//

// Status indicator -  flag if located as 1 else 0//
if (visual_member == "ZZ" ) { STATUS.setText("1");}
else { STATUS.setText("0"); }

Edited version please see below image :-



indexes.png (83.0 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers