Ask a Question

Name mapping

SOLVED
4m4d3u5
Contributor

Name mapping

I have two variables that are in the same area in a dashboard and when I look at their name mapping they both get the exact same name mapping exept that one is QtIndex 1 and the other is QtIndex 2. How can I say give me the data for the individual indexes? Whenever I use text or QtText it only ever gives me the value for one of the variables. I am using Javascript. 

 

I want to do something like but this doesn't work

 

var1 = someNameMapping

var2 = exact same name mapping as var1

 

BuiltIn.ShowMessage(var1.QtIndex("1").QtText)

BuiltIn.ShowMessage(var2.QtIndex("2").QtText)

 

2 REPLIES 2
4m4d3u5
Contributor

So what I had to do was go into namemapping and create a spicific Alias name mapping for that object 

tristaanogre
Esteemed Contributor

Yup.  You need to make sure you uniquely identify the objects.  What it sounds like is that your mapping for the first object may not be specific enough.  That's why both were being seen as the same one.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
cancel
Showing results for 
Search instead for 
Did you mean: