Announcement

Collapse
No announcement yet.

e4x for each notation

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

  • e4x for each notation

    I've googled around a little bit and I tried following the faqts link in some of the forum posts but it is down. I'm wondering if anyone knows the trick for doing for each syntax when there is a dot in the name of the tag one is looking for such as:

    for each (x in msg..ORU_R01.PATIENT_RESULT) - i've tried quotes, curlies etc. any ideas or a website? at this point I am planning on using a for loop and finding the length, but I was just if anyone knew.

    thanks

  • #2
    Re:e4x for each notation

    try

    for each (x in msg..[ORU_R01.PATIENT_RESULT])

    Not sure if that will work at all...but it's worth a try. E4X is tricky like that and there is really no documentation.
    Chris Lang

    Comment


    • #3
      Re:e4x for each notation

      Chris,

      Thx for the suggestion - no dice, the validator doesn't like it...unless an e4x ninja is hiding out there, i think i'm using the loop and moving on

      Comment


      • #4
        Re:e4x for each notation

        Perhaps the next syntax works

        for each (x in msg..['ORU_R01.PATIENT_RESULT'])

        Comment


        • #5
          Re:e4x for each notation

          unfortunately no...it seems like the dot operator needs escaped - I've got nothin

          Comment


          • #6
            Re:e4x for each notation

            stumbled across this: http://www.ecma-international.org/pu...T/Ecma-357.pdf - looks like a great e4x doc, also the syntax for the dot operator:

            x in msg..*["ORU_R01.ORDER_OBSERVATION"]

            Comment

            Working...
            X