• Not Answered

Referencing .$REF of a dynamic reference

Hi is it possible to dynamically reference the .$REF field of another dynamic reference and then write a path through the first parameter?

i.e. DYN_PARAM1.$REF = "//MODULE/DYN_PARAM2.$REF" 

DYN_PARAM1.CV = "//MODULE/PARAM3.CV"

That is what I am trying to do but the second line does not seem to take. Is there another way of doing this? 

Thanks!

3 Replies

  • Quyen, That's interesting. So in the example above, you are reading the path defined in $ref of DYN_PARAM2. THis would make both dynamic References point to the same parameter, whatever the text sting is in DYN_PARAM2.$REF

    So if DYN_PARAM2.$REF was set to //MODULE/PARAM3, then both DYN_PARAM1 and DYN_PARAM2 would be reading PARAM3.
    i.e if //MODULE/PARAM3.CV = 65.3
    then DYN_PARAM1.CV = 65.3 and DYN_PARAM2.CV = 65.3

    DYN_PARAM1 would not equal a string.

    Andre Dicaire

  • In reply to Andre Dicaire:

    Thanks Andre, I will just set up my dynamic reference after I know the module with IF/THEN statements.
  • You want to know:

    1. MODULE1 has a dynamic reference parameter DYN_PARAM1 where the $REF is setup to MODULE/PARAM3
    2. Another module named MODULE2 has a DYN_PARAM2 that is pointing to MODULE1/DYN_PARAM1
    3. You want to have logic in MODULE2 to change the $REF of the MODULE/DYN_PARAM1 using the local DYN_PARAM2 dynamic reference that is referencing the parameter

    Is that right?

    If that is what you are asking then the answer is NO because your logic would be something like '^/DYN_PARAM2.$REF' which would be changing the local reference and not the destination dynamic reference. You would have to use the format '//MODULE1/DYN_PARAM1.$REF'.

    Seems complicated to try to do this, what function or problem are you trying to solve with this type of configuration?