Announcement

Collapse
No announcement yet.

Reading a bar color from a different study

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Reading a bar color from a different study

    Will appreciate any help with the following:

    Need to know the color of a bar in study "A" from study "B".

    Is there a way to do it?

    Thanks in advance for any help.
    Gus

  • #2
    Hello Gus,

    Yes this is possible. There are a couple different things you could do. You could use a setGlobalValue()/getGlobalValue() routine to pass the color value between the studies. However, this method will only work in real time as these functions do not have a built-in mechanism that synchronizes the historical values when a study first loads. If you need the historical data, then I would recommend using some of the new EFS2 functionality in version 7.9, which now handles the synchronization. What you would do is retrieve study B's return values into study A using the new efs() function and recreate the coloring logic in study A using those values. Assuming of course that the color value you're after from study B is determined by the return values. If not, you could make a modified version of study B and add the color to the return values as a string. Then you would just grab that specific return value in study A using efs(). To convert it back to a color object just pass the string to the eval() function.
    Jason K.
    Project Manager
    eSignal - an Interactive Data company

    EFS KnowledgeBase
    JavaScript for EFS Video Series
    EFS Beginner Tutorial Series
    EFS Glossary
    Custom EFS Development Policy

    New User Orientation

    Comment

    Working...
    X