Accessing Node Name in XSL

Hi all,
Is there some way I can access the node name of a node when I'm in an xsl, perhaps some kind of xpath statement, for example, I have the following:
<row>
<agreement>test</agreement>
<date>today</date>
</row>
When I access all the child nodes of the row element, how can I find out the name of each child node, like "agreement" and "date"? thanks in advance.

I Think this will help u
<xsl:template match="/">
<xsl:for-each select='.//row'>
Node Name is : <xsl:value-of select="name()"/>
<xsl:for-each select='./@*'>
Attribute Name is :<xsl:value-of select="name()"/>
Attribute Value is :<xsl:value-of select="."/>
</xsl:for-each>
Node value is : <xsl:value-of select="."/>
</xsl:for-each>
</xsl:template>
Regards
John Bruno
508-740-2696

Similar Messages

  • How to read a xml node name in xsl? Urgent!

    Hi,
    I've a dynamic xml which gets generated at runtime. The basic nodes remain same but the content and nodes vary.
    - <root>
    - <list>
    - <row>
    <courseStartDate></courseStartDate>
    <courseEndDate></courseEndDate>
    <courseName>ORACLE</courseName>
    </row>
    - </list>
    </root>
    I have an xsl which would read the values
    as :
    <xsl:value-of select="courseStartDate"/>
    I would like to know if its possible to read the node name "courseStartDate" through xsl, which could be stored in a variable and then the corresponding value could be retrieved??
    Thanks

    If u want to display the name : value then u can do like this
    <xsl:eval>this.selectSingleNode("name").nodeName</xsl:eval> : <xsl:value-of select="name" />

  • Use XML Node Value as Node name and as attribute name

    im quite new to XML and XLST. I got an Open Office XML file that I transformed with XLST.
    <?xml version="1.0" encoding="UTF-8"?>
    <ooo_calc_export scriptVersion="2.2.0" scriptUpdate="2010-12-19" scriptURL="http://www.digitalimprint.com/misc/oooexport/" scriptAuthor="vjl">
       <ooo_sheet num="1" name="Blatt1">
          <ooo_row><Artikelnummer>C12-34567</Artikelnummer><ArttikelnummerAlt/><Details>AAA AAA AAA AAA</Details><Abmessungen/><Bildpfad>file:///cmyk/C12-34567.PSD</Bildpfad><EK>1234,-</EK><VK>3456,-</VK>
            </ooo_row>
          <ooo_row><Artikelnummer>C23-45678</Artikelnummer><ArttikelnummerAlt/><Details>BaB BaB BBB BBB</Details><Abmessungen/><Bildpfad>file:///cmyk/cmyk/C23-45678.PSD</Bildpfad><EK>2345,-</EK><VK>4567,-</VK>
            </ooo_row>
          <ooo_row><Artikelnummer>C34-56789</Artikelnummer><ArttikelnummerAlt/><Details>CaC CaC CaC CaC uli</Details><Abmessungen/><Bildpfad>file:///cmyk/cmyk/C34-56789.PSD</Bildpfad><EK>3456,-</EK><VK>5678,-</VK>
            </ooo_row>
       </ooo_sheet>
    </ooo_calc_export>
    I transformed the XML with the following XLST:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
      <xsl:output method = "xml" version="1.0" encoding="UTF-8" indent="yes"/>
      <xsl:strip-space elements="*"/>
      <xsl:template match="ooo_sheet">
    <xsl:element name="Import">
    <xsl:for-each select="ooo_row">
    <xsl:element name="Artikel">
      <xsl:element name="Text">
            <xsl:copy-of select="Artikelnummer"/>
            <xsl:copy-of select="Details"/>
            <xsl:copy-of select="Abmessungen"/>
            <xsl:copy-of select="EK"/>
      </xsl:element>
    </xsl:element>
    </xsl:for-each>
    </xsl:element>
    </xsl:template>
    The result is:
    <?xml version="1.0" encoding="UTF-8"?>
    <Import>
        <Artikel>
            <Text>
                <Artikelnummer>C12-34567</Artikelnummer>
                <Details>AAA AAA AAA AAA</Details>
                <Abmessungen/>
                <EK>1234,-</EK>
            </Text>
        </Artikel>
        <Artikel>
            <Text>
                <Artikelnummer>C23-45678</Artikelnummer>
                <Details>BaB BaB BBB BBB</Details>
                <Abmessungen/>
                <EK>2345,-</EK>
            </Text>
        </Artikel>
        <Artikel>
            <Text>
                <Artikelnummer>C34-56789</Artikelnummer>
                <Details>CaC CaC CaC CaC uli</Details>
                <Abmessungen/>
                <EK>3456,-</EK>
            </Text>
        </Artikel>
    </Import>
    I need another child within the node "Artikel" named "Bild". It should have an "href" attribute. The value of the attribute should be the value in the node "Bildpfad".
    The result of this transformation should be
    <Artikel>
      <Text>
        <Artikelnummer>C34-56789</Artikelnummer>
        <Details>CaC CaC CaC CaC uli</Details>
        <Abmessungen/>
        <EK>3456,-</EK>
      </Text>
      <Bild href="file:///cmyk/C12-34567.PSD"></Bild>
    </Artikel>
    I want to import this XML into Indesign. It seems that the images path needs to be in a href attribute so Indesign accepts the node as an image object.
    Another problem is that Indesign won't import the original xml with selection of the listed xsl to tranform the xml. So I used another xml editor instead to perform the transformation.
    Thank you all for your help!

    Hi Dorian_fs,
    I think we're still missing details here on what exactly it
    is you're trying to do? Are you loading this XML via a data set? In
    which case, Don's samples would apply? Or are you trying to load
    XML independent of data sets and regions, in which case, you are
    looking for something that simplifies the access of data from the
    resulting XML document? If the latter than perhaps you want to use
    XMLDocToObject:
    http://labs.adobe.com/technologies/spry/samples/utils/XMLDocToObject.html
    --== Kin ==--

  • XPATH to determine node name in condition of Interface determination

    Hi,
    does anybody out there know whether one can use a condition such as "name(/p1:Envelop/p1:Body/*)" to retrieve the name of the first element underneath the Body structure which is usually the payload. In the example below.  I'd like to retrieve "ns0:BAPI_USER_GET_DETAIL" or just "BAPI_USER_GET_DETAIL" which I would like to than compare in my "=" condition.
    <?xml version="1.0" encoding="iso-8859-1"?>
    <sap:Envelope xmlns:sap="urn:sap-com:document:sap" version="1.0">
      <sap:Header xmlns:rfcprop="urn:sap-com:document:sap:rfc:properties">
        <saptr:From xmlns:saptr="urn:sap-com:document:sap:transport">BC1</saptr:From>
        <saptr:To xmlns:saptr="urn:sap-com:document:sap:transport">BC2</saptr:To>
      </sap:Header>
      <sap:Body>
         <ns0:BAPI_USER_GET_DETAIL xmlns:ns0="urn:sap-com:document:sap:rfc:functions">
          <CACHE_RESULTS/>
          <USERNAME>bauerd</USERNAME>
         </ns0:BAPI_USER_GET_DETAIL>
      </sap:Body>
    </sap:Envelope>
    I have a client that once to migrate his SAP BC interfaces to PI without having to change the sending application which is a CICS mainframe application. The mainframe application invokes various BAPI's by just passing in a different payload into the above envelope. The payload is always the request structure for the BAPI. The message is send synchronously to SAP BC which than calls the BAPI and returns the response to the caller, again in form of the above envelope and as payload the BAPI response structure.
    To convert this to PI I have to be able to initiate different interface mappings depending on what BAPI is requested. This is pretty straight forward as there are no special mapping transformation taking place in SAP BC for both the BAPI request and response. However I need to determine what interface mapping to call depending on BAPI requested by the CICS application.
    As said the customer does not want to change the sending application. The only part we are allowed to change is the URL which changes from SAP BC to the SAP PI Plain HTTP sender adapter. The post will always use the same outbound message interface. Therefore I can't use SAP PI's standard receiver determination. Using this adapter I will also be able to get access to the whole message envelope as outlined above.
    I already got all of this working nicely with the exception that I can't determine what BAPI is requested and therefore what interface mapping I have to trigger in my interface determination.
    Has anybody used a condition as above and if so how should it look like in the condition editor. The one outlined above does not seem to work. However it is also not failing in PI.
    Also I don't want to change my approach for doing this. However if it is not possible to retrieve the node name using the xpath statement (as outlined above) in the condtion editor than I will have to look for a different approach to resolve this problem. Any suggestions would than be more than welcome.
    Many thanks in advance.
    Dieter

    If the structure is not too big, you can use:
    //ns0:BAPI_USER_GET_DETAIL EX
    otherwise take the full path:
    /p1:Envelop/p1:Body/ns0:BAPI_USER_GET_DETAIL EX
    The namespaces have to be declared.
    Regards
    Stefan

  • Node names of siblings in xslt

    I have following xslt code
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0"
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:template match="*">
              <root>
                   <xsl:for-each select="*/*">
                        <xsl:variable name="mainNode" select="name()" />
                        <xsl:if
                             test="starts-with($mainNode,'Add_1') and contains($mainNode,'street1')">
                             <Add>
                                  <xsl:value-of select="." />
    <!-- I want something that goes in here that allows me to select next node name of "mainNode" and its next node-- i.e. Node names of next two siblings of mainNode -->
                             </Add>
                        </xsl:if>
                   </xsl:for-each>
              </root>
         </xsl:template>
    </xsl:stylesheet>As mentioned in the code, I want to find node names of next two siblings of mainNode
    Any suggestions?
    Thanks...

    I tried something like this:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0"
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:template match="*">
              <root>
                   <xsl:for-each select="*/*">
                        <xsl:variable name="nodeName" select="name()" />
                        <xsl:if
                             test="starts-with($nodeName,'Add_1') and contains($nodeName,'street1')">
                             <Add>
                                  <xsl:value-of select="." />
                                  <xsl:value-of select="following-sibling::nodeName[1]" />  <!-- This is what I added-->
                             </Add>
                        </xsl:if>
                   </xsl:for-each>
              </root>
         </xsl:template>
    </xsl:stylesheet>My input XML file is as below:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <root>
         <person>
              <id>1 </id>
              <Add_1_street1>happy street</Add_1_street1>
              <Add_1_street2>A Road</Add_1_street2>
              <Add_1_city>City1</Add_1_city>
         </person>
         <person>
              <id>2</id>
              <Add_1_street1>sad street</Add_1_street1>
              <Add_1_street2>B Road</Add_1_street2>
              <Add_1_city>City2</Add_1_city>
              <Add_2_street1>Bore street</Add_2_street1>
              <Add_2_street2>C Road</Add_2_street2>
              <Add_2_city>City1</Add_2_city>
         </person>
    </root>It does not give me any compiler issue but it does not print the value of next sibling. Can't figure out why. Any pointers?
    Thanks!

  • Dashes in xml node names

    I need to parse an xml document returned by a web-service. It does not, nor do we want it to, follow any SOAP or wdsl standard.. However I still need to parse it (hence the flex becomes unflexible).
    Some of the nodes names in the xml document have dashes it is.. (ex. <node-name></node-name>) However flex does not let me access these nodes..
    If I try and parse a mx.rpc.events.ResultEvent thus :
    someObject = event.result.root.node-name as someObjectType;
    I get an error: 1120: Access of undefined property structure.  ...  line 16    1253139374175    81
    However when I traverse the event object in the debugger.. the result.root.node-name object is in debugger as an ObjectProxy.. so what gives? I have to use boring one word node names? Is Flex so inFlexible?

    Hey! thanks for the advice! I did try this, but I don't think I was using the object correctly. I wast to try and bind the text value of an xml node to a control Object..
    Back to the books, then
    Thanks again,

  • Accessing BPEL variables in XSL

    Hi,
    Did anyone have success accessing BPEL variables in XSL? If so can
    you please let me know how you did it? I tried bpws:getVariableData
    without much luck.
    Any information will be of great help.
    Thanks
    Raj

    I don't think that's really what XSL is for. It's really about taking a single XML document, and generating another XML document, based on the first.
    If you want to pass in variables from BPEL, then write a complex type that contains the main XML document you need, plus all the other inputs you need.
    As an example, I was doing some XSL work and needed to also supply it with a default date to set when nothing else was present.
    My complex type would have been something like:
    <complexType name="ProcessDataInputType">
    <sequence>
    <element name="defaultDate" type="date"/>
    <element name="data" type="tns:MyDataType"/>
    </sequence>
    </complexType>

  • Accessing Node Labels - TreeControl with CheckBoxes

    Hello,
    I have a Tree component that is loaded with CheckBoxes.  Each node has a label associated with it, and I need to be able to collect the labels and display them on the right of the component - probably using a Label or Text control.
    I can't seem to figure out how to access the names of the items that are checked.  I'm including a complete, and simplified, mxml file.  If anyone would like to take a look at it, I would appreciate it.
    Thanks.
    OH - And I am using the Tree CheckBox component from this site:  http://www.sephiroth.it/file_detail.php?id=151
    Sorry, but the forum will not allow me to upload the files directly.
    You will probably need to add those classes to see the Tree CheckBox.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:controls1="it.sephiroth.controls.*">
        <mx:Script>
            <![CDATA[
                import mx.events.DataGridEvent;
                import mx.controls.dataGridClasses.DataGridColumn;
                import mx.effects.easing.Bounce;
                import mx.effects.easing.Elastic;
                import components.MyPanel;
                import mx.effects.easing.Bounce;
                import mx.effects.easing.Elastic;
                import mx.events.MenuEvent;
                import mx.controls.Alert;
                import mx.controls.Menu;
                import mx.events.CloseEvent;
                import mx.controls.*;
                import mx.events.ListEvent;
                import mx.events.TreeEvent;
                import it.sephiroth.renderers.TreecheckboxItemRenderer;
                //*******************************  TREE CONTROL CHECKBOX ******************************************
                 * Called on checkbox click
                 * check and update for both parents and child nodes
                 * according to the checkbox status
                private function onItemCheck( event: TreeEvent ): void
                    updateParents( event.item as XML, ( event.itemRenderer as TreecheckboxItemRenderer ).checkBox.checkState );
                    updateChilds( event.item as XML, ( event.itemRenderer as TreecheckboxItemRenderer ).checkBox.checkState );
                 * @see it.sephiroth.controls.CheckBoxExtended#checkState
                private function updateChilds( item:XML, value: uint ):void
                    var middle: Boolean = ( value & 2 << 1 ) == ( 2 << 1 );
                    var selected: Boolean = ( value & 1 << 1 ) == ( 1 << 1 );
                    if( item.children( ).length( ) > 0 && !middle )
                        for each(var x: XML in item.node )
                            x.@checked = value == ( 1 << 1 | 2 << 1 ) ? "2" : value == ( 1 << 1 ) ? "1" : "0";
                            updateChilds( x, value );
                private function updateParents( item: XML, value: uint ): void
                    var checkValue: String = ( value == ( 1 << 1 | 2 << 1 ) ? "2" : value == ( 1 << 1 ) ? "1" : "0" );
                    var parentNode: XML = item.parent( );
                    if( parentNode )
                        for each(var x: XML in parentNode.node )
                            if( x.@checked != checkValue )
                                checkValue = "2"
                        parentNode.@checked = checkValue;
                        updateParents( parentNode, value );
            ]]>
        </mx:Script>
        <!--*********************  CHOOSE FUNCTIONAL AREAS/CAPABILITIES FOR SCENARIO TREE DATA ******************-->
        <!--
            Example of the xml used as dataprovider
            for the treecheckbox component.
            @label used for the item label
            @checked used for the checked status:
                0 = un-checked
                1 = selected
                2 = 3rd status selected
                otherwise you can use the set the "checkField" attributes of the
                treecheckbox component to specify which xml attribute to use for the
                checked status
        -->
            <mx:XML xmlns="" id="treeSource">
                <node label="home" checked="">
                    <node label="First Responder" checked="">
                        <node label="1RSP First Responder - Medical" checked=""/>
                    </node>
                    <node label="Battalion Aid Station/Sick Call" checked="">
                        <node label="Battalion Aid Station" checked=""/>
                        <node label="BAS - NBC" checked=""/>
                        <node label="Evac" checked=""/>
                    </node>
                    <node label="Forward Resuscitative Surgery (FRSS)" checked="">
                        <node label="Pre-Op" checked=""/>
                        <node label="Operating Room" checked=""/>
                        <node label="Post-Op" checked=""/>
                        <node label="Evac" checked=""/>
                    </node>
                    <node label="Surgical Company" checked="">
                        <node label="Triage/SST" checked=""/>
                        <node label="Triage Evac" checked=""/>
                        <node label="Operating Room" checked=""/>
                        <node label="OR Evac" checked=""/>
                        <node label="OR Evac" checked=""/>
                        <node label="Ward" checked=""/>
                        <node label="X-Ray" checked=""/>
                        <node label="Laboratory" checked=""/>
                        <node label="Pharmacy" checked=""/>
                        <node label="NBC Unit" checked=""/>
                        <node label="Dental" checked=""/>
                        <node label="PMO/EHO/PMT" checked=""/>
                        <node label="PM Entomology" checked=""/>
                        <node label="Occupational and Environmental Healty Sur" checked=""/>
                    </node>
                </node>
            </mx:XML>
            <controls1:TreeCheckBox id="mytree"
                showRoot="false"
                width="345"
                height="100%"
                dataProvider="{treeSource}"
                openItems="{treeSource..node}"
                labelField="@label"
                checkField="@checked"
                itemCheck="onItemCheck( event )"
            />
            <mx:Label x="455" y="48" text="Label" fontSize="16" color="#FFFFFF" id="tree_label1"/>
    </mx:Application>

    Natasha,
    Thanks for your reply.
    I attempted the code:
    public function get labelText():String 
     if (this.label != null) 
    return this.label.text 
    else
     return ""; 
    return "";
    But when I try to access the code in the application I get the error "Call to possibley undefined method labelText."
    I'm not sure I understand exactly how to implement this change within the application itself.  Could you explain?  Thanks.

  • Concurrent Manager Node Name Issue

    Hi All,
    Recently one of EBS 11i (11.5.10.2 + RHEL 4.7) Node (VM Node) has been cloned to another node. So i had to change the Host name for the cloned application. I followed the meta link note 338003.1 and 341322.1. I am successfully changed the host name and able to access the application as well. When i check the Concurrent manager process's status, its showing Actual-1 and Target -1. B*ut the problem is some of process's node name is showing the previous node name (the name of the node from where cloned).* For example Output Post Processor's node name is showing the previous one and its status showing Actual - 0 and Target - 1. Please let me know why this has happened and also how can i solve this issue?
    Thanks,
    Mani

    Please run cmclean.sql script as per (Concurrent Processing - CMCLEAN.SQL - Non Destructive Script to Clean Concurrent Manager Tables [ID 134007.1]) and check then.
    If you still have the same issue, update FND_CONCURRENT_QUEUES table (TARGET_NODE column) -- Troubleshooting the "Error Occurred While Attempting to Establish an Applications File Server Connection" [ID 117012.1]
    Please also see (Concurrent Processing - CCM.sql Diagnostic Script to Diagnose Common Concurrent Manager Issues [ID 171855.1]).
    Thanks,
    Hussein

  • Dynamic Accordion, fetching node name instead of value. Is it possible?

    Here is the xml.
    <?xml-stylesheet type="text/xsl" href="myweb.xsl"?>
    <client product="ppd" date="4/26/11 3:17 AM">
    <system>
           <osname>Linux
              </osname>
           <hostname>abhishek
              </hostname>
           <release>2.6.18-128.el5
              </release>
           <version>Red Hat Enterprise Linux Server release 5.3 (Tikanga)
              </version>
           <machine>ia64
              </machine>
           <bitmode>64
              </bitmode>
           <filesystem>
              <file mount='Mounted' home='Filesystem' total='1K-blocks' free='Available' used='Used' percentage='Use%' />
              <file mount='/' home='/dev/sda3' total='60300484' free='38305668' used='18882312' percentage='34%' />
              <file mount='/boot/efi' home='/dev/sda1' total='1046516' free='1037912' used='8604' percentage='1%' />
              <file mount='/dev/shm' home='tmpfs' total='4120800' free='4120800' used='0' percentage='0%' />
           </filesystem>
    </system>
    </client>
    my spry region. Using {systemData::osname} I can point to "Linux" but instead I would like to get osname itself. So basically I want to make a tree like structure using accordion where data within tree comes from this xml's node names.
    <div spry:region="systemData">
    <div id="Accordion1" class="Accordion" tabindex="0">
    <div spry:repeat="systemData" class="AccordionPanel">
    <div class="AccordionPanelTab">{systemData::osname}</div>
    <div class="AccordionPanelContent">
    {systemData::hostname}
    </div>
    </div>
    </div>
    <script type="text/javascript">
    var a1 = new Spry.Widget.Accordion("Accordion1");
    </script>
    </div>
    last but not least here is my spry dataset
    var systemData=new Spry.Data.XMLDataSet("include/xml/clientabhishek.xml","client/system");

    hehe. Sorry for not being so clear. I wanted to know whether there is a way I can get osname(node name) instead of Linux (node value) from my dataset. Like using {osname} I can get value of osname but I was wondering if osname itself can be fetched someway. Is there a way? Thanks for passing by

  • Access the Name and Value of a StationGlo​bals container programati​cally

    Hello,
    I am having some trouble trying to programmatically write the contents of a container into my HTML report header. The container contains a series of strings and numbers. These are saved into StaionGlobals.
    Note that I am performing all of these operations in a statment step inside the sequence editor of TestStand
    I used the following method to access the correct property, which sits inside a for loop. Now this seems to work fine as Locals.PropertyObj contains the element which I wish to access. In the following Locals.PropertyObj is an object. TestSetup is the name of my setup information container
    Locals.PropertyObj = StationGlobals.GetNthSubProperty("TestSetup", StationGlobals.ForIterator, 0)
    I can access the Name of the parameter simply by using the following code (where Locals.Name is a string):
    Locals.Name = StationGlobals.GetNthSubPropertyName("TestSetup", StationGlobals.ForIterator, 0)
    However when I try to access the actual value of the parameter I get an error or the wrong information. The following line gives me back the value "PropertyObject, IID = {8D87....}" which is not the value I am trying to get to.
    Locals.Val = StationGlobals.GetNthSubProperty("TestSetup", StationGlobals.ForIterator, 0)
    I must be doing something wrong, and have tried various methods to do this but cannot get my head around the problem. I tried to use the following also, but it resulted in an error:
    Locals.PropertyObj.AsPropertyObject.GetFormattedValue((Locals.PropertyObj.AsPropertyObject).Name, 0, "", False, "")
    Note that the following line works fine:
    (Locals.PropertyObj.AsPropertyObject).Name
    Also can you tell me why the lookup string needs to be defined in Locals.PropertyObj.AsPropertyObject.GetValueString​(), is there a way to not require the lookup string as you are already have the correct property, and just the value is needed to be gotten.
    One last thing, in Evaluate() how do I make it work with dots, for example the following line  (another attempt to get the value) did not work due to the presence of the . character 
    Evaluate("StationGlobals.TestSetup." + (Locals.PropertyObj.AsPropertyObject).Name)
    Many thanks in advance of your response,
    Ben Lawler
    ps. hope that I am not being stupid and missed something very obvious

    Ben,
    Just a few comments;
    [Locals.PropertyObj = StationGlobals.GetNthSubProperty("TestSetup", StationGlobals.ForIterator, 0)]
    This should give you a PropertyObject for the 1st subproperty of StationGlobals.TestSetup if StationGlobals.ForIterator = 0
    [Locals.Name = StationGlobals.GetNthSubPropertyName("TestSetup", StationGlobals.ForIterator, 0)]
    This should give you the name of the 1st subProperty of StationGlobals.TestSetup if StationGlobals.ForIterator = 0
    [Locals.Val = StationGlobals.GetNthSubProperty("TestSetup", StationGlobals.ForIterator, 0)]
    This is going to return the 1st subproperty of StationGlobals.TestSetup if StationGlobals.ForIterator = 0 as a PropertyObject reference
    and Locals.Val should be an ActiveX Reference type which I am guessing it isn't.
    [Locals.PropertyObj.AsPropertyObject.GetFormattedV​alue((Locals.PropertyObj.AsPropertyObject).Name, 0, "", False, "")]
    I think this should be Locals.PropertyObj.GetFormattedValue("", 0, "", False, ""), you dont need to specify the lookup string because you have obtained a reference to the actual sub-PropertyObject.
    and therefore
    Locals.Val = Locals.PropertyObj.GetFormattedValue("", 0, "", False, "")
    should give you the value of the 1st subproperty of StationGlobals.TestSetup if Locals.PropertyObj was obtained as above.
    I will try to check out your sequencefile later when I have access to TestStand 4.x.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Xml: how to get node value when pasing node name as a parameter

    Hi,
    I've got some xml:
    var xmlData:XML =
    <1stNode>
        <buttonID>first child node value</buttonID>
        <imageID>second child node value</imageID>
        <labelID>third child node value</labelID>
    </1stNode>
    Then I want to read specific node value based on a value passed to a function. .
    var buttonID = new Button;
    var imageID = new Image;
    var labelID = new Label;
    getNodeValue(buttonID); //the value here is set dynamically
    private function getNodeValue (nodeName:String):void {
    trace (xmlData.nodeName)                      //doesn't work
    var str:String = "xmlData." + nodeName;
    var xml:XMLList = str as XMLList             //doesn't work
    I'm don't know how to get the value when node name is dynamically changed.

    use:
    getNodeValue(buttonID); //the value here is set dynamically
    private function getNodeValue (nodeName:String):void {
    trace (xmlData[nodeName])                    

  • How to map the node id to the node name in database view just like "V$GES_RESOURCE"

    i have a rac with 3 nodes,and the node id is from 1 to 3,i can check it with command olsnodes.
    $ olsnodes -p -n -i
    tdsdb1  1       tdsdb1-priv     tdsdb1-vip
    tdsdb2  2       tdsdb2-priv     tdsdb2-vip
    tdsdb3  3       tdsdb3-priv     tdsdb3-vip
    and i also can check it in gv$instance
    SQL> select inst_id,instance_number,instance_name from gv$instance;
       INST_ID INSTANCE_NUMBER INSTANCE_NAME
             1               1 jftds1
             3               3 jftds3
             2               2 jftds2
    but when i select the master node of some resource ,it shows some value of node id =0
    SQL> select resource_name,master_node from v$ges_resource;
    RESOURCE_NAME                  MASTER_NODE
    [0xdcc9fa12][0x246658a5],[QQ]            2
    [0x932][0x70c230e],[IV]                  0
    [0xd9fb][0x13181703],[IV]               0
    [0xddae][0x0],[TM]                       0
    [0xb970fb05][0x729b596a],[LB]            2
    [0xb580][0x70c2e1c],[IV]                 0
    [0x31ad56fb][0x7e4c3daa],[QQ]            2
    [0x3][0x797609],[HW]                     0
    [0x2bf04627][0xf28b1575],[QI]            0
    [0x19c89f33][0xd06ef447],[QQ]            0
    [0x529ae82][0x86e25d46],[QQ]             0
    it seems that the master node id is from 0 to 2
    i want to get the node name from the node id from   v$ges_resource,so i check the table cluster_nodes ,cluster_instances,but there are nothing.
    SQL> select * from CLUSTER_NODES;
    no rows selected
    SQL> select * from CLUSTER_INSTANCES ;
    no rows selected
    how can i get the node name from the node id in the tables just like " v$ges_resource"? thank you .

    my cluster ware version is 10.2.0.5
    database version is 10.2.0.5
    and the source of rac is all online
    $ crsctl query crs activeversion
    CRS active version on the cluster is [10.2.0.5.0]
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    CORE    10.2.0.5.0      Production
    TNS for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Productio
    NLSRTL Version 10.2.0.5.0 - Production
    $ crs_stat -t
    Name           Type           Target    State     Host       
    ora.jftds.db   application    ONLINE    ONLINE    tdsdb2     
    ora....tds1.cs application    ONLINE    ONLINE    tdsdb1     
    ora....s1.inst application    ONLINE    ONLINE    tdsdb1     
    ora....ds1.srv application    ONLINE    ONLINE    tdsdb1     
    ora....tds2.cs application    ONLINE    ONLINE    tdsdb2     
    ora....s2.inst application    ONLINE    ONLINE    tdsdb2     
    ora....ds2.srv application    ONLINE    ONLINE    tdsdb1     
    ora....tds3.cs application    ONLINE    ONLINE    tdsdb3     
    ora....s3.inst application    ONLINE    ONLINE    tdsdb3     
    ora....ds3.srv application    ONLINE    ONLINE    tdsdb3     
    ora....SM1.asm application    ONLINE    ONLINE    tdsdb1     
    ora....B1.lsnr application    ONLINE    ONLINE    tdsdb1     
    ora.tdsdb1.gsd application    ONLINE    ONLINE    tdsdb1     
    ora.tdsdb1.ons application    ONLINE    ONLINE    tdsdb1     
    ora.tdsdb1.vip application    ONLINE    ONLINE    tdsdb1     
    ora....SM2.asm application    ONLINE    ONLINE    tdsdb2     
    ora....B2.lsnr application    ONLINE    ONLINE    tdsdb2     
    ora.tdsdb2.gsd application    ONLINE    ONLINE    tdsdb2     
    ora.tdsdb2.ons application    ONLINE    ONLINE    tdsdb2     
    ora.tdsdb2.vip application    ONLINE    ONLINE    tdsdb2     
    ora....SM3.asm application    ONLINE    ONLINE    tdsdb3     
    ora....B3.lsnr application    ONLINE    ONLINE    tdsdb3     
    ora.tdsdb3.gsd application    ONLINE    ONLINE    tdsdb3     
    ora.tdsdb3.ons application    ONLINE    ONLINE    tdsdb3     
    ora.tdsdb3.vip application    ONLINE    ONLINE    tdsdb3    

  • HELP NEEDED!!!displaying xml node name in an input text box

    Hello everybody
    Have a simple proble. I have imported an XML file into flash
    using the Tree component and the XML_conn component. So i have the
    xml tree displying in flash when i have run it.
    I have created an input text box called 'subject'
    All i really need is when a user clicks on any node for that
    node name to be displayed in a the input text box. thats it. ITS
    DRIVING ME CRAZY

    Try something like this. (if your Tree is called myTree)
    var myTreeListener = {}
    myTreeListener.change = function(evtObj) {
    subject.text = evtObj.target.selectedNode.nodeName;
    myTree.addEventListener("change",myTreeListener)

  • Function Module to get the node name in particular level name in Hierarchy

    Hi All,
    We have 0Material hierarchy which consists of 14 levels and materials are in the 14th level.
    We have a requirement to update the 4th level node name to all materials.
    So we have created the attribute to this 0Material and thought of updating in the transformation.
    Could you please suggest us to which function module i can in this scenario.
    Thanks in advance,..
    Prasanna

    Can you explain in more detail what exactly you want to do?
    do you want to limit hierarchy to level4?
    Regards
    Sudeep

Maybe you are looking for

  • HT201317 How do I veiw Photo Stream on my PC?

    How do I veiw Photo Stream on my PC

  • Self paced learning/quiz/HTML5 issue

    Back again! My current project has self paced learning in place. We definitely want the student to be able to return to their last spot if they exit. This works fine throughout the whole course in the swf and html5 versions, until the quiz. The swf v

  • SQL case sensitivity

    i know its a bit off topic for the java forums (in my defence it is to do with a JSP i'm writting), but i thought that someone here probably has come across this at some point. basically, i need to retrieve lines from my database using something simi

  • Unable to access Metalink to download patched 8.1.7

    We need to download the latest patch level for 8i but we cannot access the Metalink system. We contacted OTN and they sent the following note in an email. We are aware of the KnowledgeBase issue and are working to resolve it. We will send an email ou

  • Why no audio output?

    I have been wrestling with the options offered by FMLE3.1 and using it in association with ManyCam... I now think I have pretty good control over all the video source conflict issues, but one thing I have been totally unable to understand is why I ca