FTREE_NODE: Find parent node which has no child nodes

Hi guys
Does anybody know how to find a parent node which has no child node(s)?
I couldn't find any build-in at the online help. Is there a trick to got this?
Thanks in advance
Remo

Hi Remo,
I misspoke, in my earlier post. The FTREE built-in has defined constants for the possible values that FTREE.NODE_STATE can have -- FTREE.COLLAPSED, FTREE.EXPANDED and FTREE.LEAF_NODE.
If you wish, rather than testing for a value of '0', you can instead test for a value of FTREE.LEAF_NODE. Both are functionally identical, but using the constants can improve the readability of your code, eliminating the need for additional comments.
Eric

Similar Messages

  • How to find out if a NODE has any CHILD NODES in a hierarchical tree?

    I want to find out programmatically if a node in a tree has CHILDREN.
    My requirement is this: I want to only show nodes for which the user has permission to execute the program that node is associated with.
    Problem is, my tree population query will not show the child nodes, BUT the sub-menu nodes are displayed and I need to get rid of these nodes.
    There is a function to find out the PARENT of a tree node (FTree.Get_Tree_Node_Parent), but noting to find out if children exist for a node or not?
    What I thought of was to display the tree and then traverse it from the ROOT onwards and then if a NODE is a submenu node (I can find this out by checking the PROGRAM value. If this is NULL it is a sub-menu node) and IF IT HAS NO CHILD NODES then I can delete the node.

    Please provide the examples with DATA
    as far as i know we cannot get the Child Nodes but NODE's Parents we can get
    parent_node := Ftree.Get_Tree_Node_Parent(htree, :SYSTEM.TRIGGER_NODE);I faced the similar problem but i solved it with query.
    Provide the data and your Tree query then we can help

  • How to clear the node which has multiple attributes

    Hello ,
               how to clear the node which has multiple attributes.
    I've tried this using the method SET_STATIC_ATTRIBUTES_NULL but it's not working.
    Thanks,
    Sandhya.

    Hello,
    I suggest you to create an internal table or structure clear it and the bind it to the context node.
    Another possibility is to try to invalidate the node (method INVALIDATE of interface IF_WD_CONTEXT_NODE).
    Regards.

  • Setting bold font for nodes which are not leaf nodes

    In JTree, is it possible to set the font for nodes which are not leaf nodes. Can I do this without using custom renderer, or at the most using a DefaultTreeCellRenderer ?
    regards,
    nirvan

    In JTree, is it possible to set the font for nodes which are not leaf nodes. Can I do this without using custom renderer, or at the most using a DefaultTreeCellRenderer ?
    regards,
    nirvan

  • ADF Tree setting focus back to parent node after deletion of child node

    Hi,
    Is there a way to get the focus back to the parent node (or rather any particular node) in a tree?
    I have a use case where we need to get the focus back to the parent node after a child node is deleted.
    Currently the focus is shifted to the next node in the tree, but the need is to get the focus shifted back to the parent node. Also the parent node should be re-invoked to populate to get the latest status after deletion of the child node.
    Any help/pointers?
    Thanks

    Thanks for the reply Frank.
    I saw the link http://sreevardhanadf.blogspot.in/2012/07/showing-next-row-as-current-row-after.html
    However the issue is since I am using custom created tree using POJO tree item (composite object).
    calling myTree.getWrappedData() doesn't gives me a handle to JUCtrlHierBinding and subsequent access to JUCtrlHierNodeBinding.
    my program gives me data like -
    List<MyTreeItem> treeData = (List<MyTreeItem>)treeModel.getWrappedData();
    because my tree model is build using -
    treeModel = new ChildPropertyTreeModel(items, "children");
    where items is List of <MyTreeItem>
    Hence I am unable to get a handle using -
    List nodeParentList = nodeParent .getKeyPath();
    I am programmatically able to invoke the parent node to get the fresh data, only issue is the focus/selection of that node is not happening
    Is there a way around?
    Thanks
    Sachin

  • How to find program/TCODE which has updated the tables

    Hi All,
    Is there any way to find out program or transcation which has updated the tables.
    BR
    Kamal

    you can see in the table CDHDR or CDPOS which will give you the transaction code and program names.
    Regards,
    Krishna

  • Report or the Technique to find the SC which has no confirmation

    Hi,
    Is there any standard report to find oud all the shopping cart which is approved but no confirmation created for it
    OR please let me know is there any other to get the  same....
    regards,
    Prabhu

    bbp_bw_sc2 , bbp_bw_sc3 and bbp_bw_sc4 transactions  try i believe there is one transaction gives out put as follow on document
    if you connect BW we do have many reporting facilities.
    srm has very limited functionality on reporting part.
    please allign yourr self.
    SRM 5.0 7.0 7.0.2 Procurement Account Assignment Overview of Purchase Order Value per Requester Self-service, plan driven and service procurement 0SR_C02_Q001 MM* and SRM SRM 5.0 7.0 7.0.2 Procurement Account Assignment Cost Center Overview Self-service, plan driven and service procurement 0SR_C02_Q002 MM* and SRM SRM 5.0 7.0 7.0.2 Auctions Auctions Analysis Sourcing with Live Auction 0SR_LAC1_Q0001 SRM SRM 5.0 7.0 7.0.2 Auctions Auction Items Analysis Sourcing with Live Auction 0SR_LAC1_Q0002 SRM SRM 5.0 7.0 7.0.2 Auctions Bidders Analysis Sourcing with Live Auction 0SR_LAC1_Q0003 SRM SRM 5.0 7.0 7.0.2 Procurement Overview (multicube aggregate) Procurement Value Analysis Self-service, plan driven and service procurement. Spend Analysis 0SR_MC01_Q0001 MM* and SRM SRM 5.0 7.0 7.0.2 Procurement Overview (multicube aggregate) Procurement Values per Service Provider Self-service, plan driven and service procurement. Spend Analysis 0SR_MC01_Q0002 MM* and SRM SRM 5.0 7.0 7.0.2 Procurement Overview (multicube aggregate) Supplier Information Self-service, plan driven and service procurement. Spend Analysis 0SR_MC01_Q0003 MM* and SRM SRM 5.0 7.0 7.0.2 Procurement Overview (multicube aggregate) Key Performance Indicators Self-service, plan driven and service procurement. Spend Analysis 0SR_MC01_Q0004 MM* and SRM SRM 5.0 7.0 7.0.2 Procurement Overview (multicube aggregate) Price Trend Analysis per Product Self-service, plan driven and service procurement. Spend Analysis 0SR_MC01_Q0005 MM* and SRM SRM 5.0 7.0 7.0.2 Procurement Overview (multicube aggregate) Number of Suppliers per Country Self-service, plan driven and service procurement. Spend Analysis 0SR_MC01_Q0006 MM* and SRM SRM 5.0 7.0 7.0.2 Procurement Overview (multicube aggregate) ABC Analysis for Suppliers (Lorenz Curve) Self-service, plan driven and service procurement. Spend Analysis 0SR_MC01_Q0007 MM* and SRM SRM 5.0 7.0 7.0.2 Procurement Overview (multicube aggregate) ABC Supplier Self-service, plan driven and service procurement. Spend Analysis 0SR_MC01_Q0008 MM* and SRM SRM 5.0 7.0 7.0.2 Procurement Overview (multicube aggregate) Success of an SRM Project Self-service, plan driven and service procurement. Spend Analysis 0SR_MC01_Q0009 MM* and SRM SRM 5.0 7.0 7.0.2 Procurement Overview (multicube aggregate) Sales Values (for Supplier) Self-service, plan driven and service procurement. Spend Analysis 0SR_MC01_SUS_Q0001 MM* and SRM SRM 5.0 7.0 7.0.2 Procurement Overview (multicube aggregate) Sales Values per Service Provider (for Supplier) Self-service, plan driven and service procurement. Spend Analysis 0SR_MC01_SUS_Q0003 MM* and SRM SRM 5.0 7.0 7.0.2 Procurement Document Overview (Multicube) Purchase Order Document Analysis Self-service, plan driven and service procurement. Spend Analysis 0SR_MC02_Q0001 MM* and SRM SRM 5.0 7.0 7.0.2 Procurement Document Overview (Multicube) Maverick Buying Analysis Self-service, plan driven and service procurement. Spend Analysis 0SR_MC02_Q0002 MM* and SRM SRM 5.0 7.0 7.0.2 Procurement Document Overview (Multicube) Workload per Purchasing Group Self-service, plan driven and service procurement. Spend Analysis 0SR_MC02_Q0003 MM* and SRM SRM 5.0 7.0 7.0.2 Procurement Document Overview (Multicube) Pareto Analysis According to Purchase Order Volume (Chart) Self-service, plan driven and service procurement. Spend Analysis 0SR_MC02_Q0004 MM* and SRM SRM 5.0 7.0 7.0.2 Procurement Document Overview (Multicube) Pareto Analysis According to PO Volume per Category Self-service, plan driven and service procurement. Spend Analysis 0SR_MC02_Q0005 MM* and SRM SRM 5.0 7.0 7.0.2 Procurement Document Overview (Multicube) Confirmation Document Overview Self-service, plan driven and service procurement. Spend Analysis 0SR_MC02_Q2001 MM* and SRM SRM 5.0 7.0 7.0.2 Procurement Document Overview (Multicube) Open Items (Confirmations) Self-service, plan driven and service procurement. Spend Analysis 0SR_MC02_Q2002 MM* and SRM SRM 5.0 7.0 7.0.2 Procurement Document Overview (Multicube) Invoice Document Overview Self-service, plan driven and service procurement. Spend Analysis 0SR_MC02_Q3001 MM* and SRM SRM 5.0 7.0 7.0.2 Procurement Document Overview (Multicube) Excessive Invoices Self-service, plan driven and service procurement. Spend Analysis 0SR_MC02_Q3002 MM* and SRM SRM 5.0 7.0 7.0.2 Procurement Document Overview (Multicube) Sales History (for Supplier) Self-service, plan driven and service procurement. Spend Analysis 0SR_MC02_SUS_Q1002 MM* and SRM SRM 5.0 7.0 7.0.2 Attributes of bids List of Bid Invitation Attributes Sourcing with RFx 0SR_QUODA_Q002 SRM SRM 5.0 7.0 7.0.2 Vendor Evaluation w. purchasing volume Vendor Portfolio with PO Value and Overall Score Supplier Evaluation 0SR_VE_M1_Q001 MM* and SRM SRM 5.0 7.0 7.0.2 Vendor Evaluation w. purchasing volume Total Eval. / Purch. Order Value of Vendor over Time Supplier Evaluation 0SR_VE_M1_Q002 MM* and SRM SRM 5.0 7.0 7.0.2 Vendor Evaluation - Vendor Evaluation of Vendor by Product Category Supplier Evaluation 0SR_VE_M2_Q001 MM* and SRM SRM 5.0 7.0 7.0.2 Vendor Evaluation - Vendor Evaluation of Vendor by Product Category and Product Supplier Evaluation 0SR_VE_M2_Q002 MM* and SRM SRM 5.0 7.0 7.0.2 Vendor Evaluation - Vendor Submitted Evaluations (Vendors) Supplier Evaluation 0SR_VE_M2_Q003 MM* and SRM SRM 5.0 7.0 7.0.2 Auction Details Detailed Analysis of Bids by Category Sourcing with Live Auction 0SRM_LADS1_Q0001 SRM SRM 5.0 7.0 7.0.2 Auction Details Auction Details Sourcing with Live Auction 0SRM_LADS1_Q0002 SRM SRM 5.0 7.0 7.0.2 Vendor Evaluation - Invoice Mandatory Evaluations for Invoices Supplier Evaluation 0SRV_IS1_Q001 MM* and SRM SRM 5.0 7.0 7.0.2 Vendor Evaluation - Invoice Optional Evaluations for Invoices Supplier Evaluation 0SRV_IS1_Q002 MM* and SRM SRM 5.0 7.0 7.0.2 Vendor Evaluation - Invoice Open Evaluations (Invoices) Supplier Evaluation 0SRV_IS1_Q003 MM* and SRM SRM 5.0 7.0 7.0.2 Vendor Evaluation - Goods Receipt/Service Confirmation Mandatory Evalns for Goods Receipts/Service Confirmations Supplier Evaluation 0SRV_IS2_Q001 MM* and SRM SRM 5.0 7.0 7.0.2 Vendor Evaluation - Goods Receipt/Service Confirmation Optional Evalns for Goods Receipts/Service Confirmations Supplier Evaluation 0SRV_IS2_Q002 MM* and SRM SRM 5.0 7.0 7.0.2 Vendor Evaluation - Goods Receipt/Service Confirmation Open Evaluations (Goods/Service Confirmations) Supplier Evaluation 0SRV_IS2_Q003 MM* and SRM SRM 5.0 7.0 7.0.2 Vendor Evaluation - Vendor Submitted Evaluations for Suppliers Supplier Evaluation 0SRV_IS3_Q003 MM* and SRM. regards Muthu
    br
    muthu

  • How to find a SH which has multiple SPs ??

    Dear All,
    How Can I find a Ship-toParty in my system, who has multiple Sold-to-Parties.
    I am guessing this data will be available in KNVP, but was not successfully.
    Anyhelp is appreciated.
    madhu

    check KNVV table also look at the partner functins.
    Shreekant
    Edited by: Shreekant Ashkani on Jun 24, 2009 9:30 PM

  • Delete parent node based on its child node value in XML

    I have an xml like this:
    <UPLOAD_REQUEST>
         <CUSTOMER_DETAIL>
         <NAME>Smith</NAME>
         <AGE>20</AGE>
         <GENDER>M</GENDER>
         </CUSTOMER_DETAIL>
         <CUSTOMER_DETAIL>
         <NAME>Nikita</NAME>
         <AGE>35</AGE>
         <GENDER>F</GENDER>
         </CUSTOMER_DETAIL>
    </UPLOAD_REQUEST>
    I want to delete CUSTOMER_DETAIL node where name = 'nikita' from xml. Also note that there is no identification number for CUSTOMER_DETAIL node.
    I was trying to do it like this:
    UPDATE request_xml
    SET request= deleteXML(request, '/UPLOAD_REQUEST/CUSTOMER_DETAIL')
    WHERE extractvalue(request, '/UPLOAD_REQUEST/CUSTOMER_DETAIL/NAME') = 'Nikita';
    It gives error "*EXTRACTVALUE returns value of only one node*"
    Final output should be
    <UPLOAD_REQUEST>
         <CUSTOMER_DETAIL>
         <NAME>Smith</NAME>
         <AGE>20</AGE>
         <GENDER>M</GENDER>
         </CUSTOMER_DETAIL>
    </UPLOAD_REQUEST>
    Can anyone please help me how to do this?
    Edited by: user10446917 on May 6, 2011 3:38 AM

    Add a predicate in the XPath expression :
    UPDATE request_xml
    SET request = deleteXML(request, '/UPLOAD_REQUEST/CUSTOMER_DETAIL[NAME="Nikita"]')
    ;

  • EXTRACTVALUE + MULTIPLE CHILD NODES

    Hi,
    I have a XML Doc where I have multiple nodes in a tag and I need to extract the data using extractvalue funtion.
    My XMLtype doc stores a xml doc in this form:
    <CYKDoc xmlns="CYKdocument.bankxyz.com">
    <CYK>
    <gci>12345678</gci>
    <system>LION</system>
    <recordType>1</recordType>
    <CYKId>987654</CYKId>
    <policyVersion>DDL 1.0</policyVersion>
    </CYK>
    <CYKResponse>
         <id>q_grid</id>
         <grid>
         <data>
         <dataRow>
         <dataColumn>
         <id>q_grid_id</id>
         <name>q_grid_id</name>
         <codes>
         <code>704</code>
         </codes>
         </dataColumn>
         <dataColumn>
         <id>q_owner_type</id>
         <name>q_owner_type</name>
         <codes>
         **<code>IN</code>**
    **     <code>OUT</code>**
    **     <code>BETWEEN</code>**
         </codes>
         <catName>ben_owner_type</catName>
         </dataColumn>
         </dataRow>
         </data>
         </grid>
         </CYKResponse>
         </CYKResponses>
    </CYKDoc>
    In the above XML, I have a tag of name "q_owner_type" which has multiple child nodes..but I am not able to fetch the codes of any tag at all..
    My Query is :
    SELECT CYK_id,q_id,code,catname
         FROM ((SELECT p.CYK_id CYK_id,
         EXTRACTVALUE (VALUE (tab1), 'dataColumn/id') q_id,
         EXTRACTVALUE(VALUE(tab2), '/code') AS code,
         EXTRACTVALUE (VALUE (tab1),
         'dataColumn/catName'
         ) catname
         FROM CYK.CYK_doc p,
         TABLE
         (XMLSEQUENCE
         (EXTRACT
         (p.CYK_doc, '/CYKDoc/CYKResponses/CYKResponse[id="q_grid"]/grid/data/dataRow[1]/dataColumn'))) tab1,
         TABLE (XMLSEQUENCE (EXTRACT (VALUE (tab1), 'dataColumn/codes/code'))) tab2
         )) a
    WHERE a.CYK_id = 227209;
    I get 4 rows having one question as q_grid_id and 3 questions as q_owner_type but the extractvalue( tab2) doesnt fetch the values of codes....
    I am assuming that its an issue with XPATH I mentioned in alias tab2 but How else to handle it, is an issue here...
    If In TABLE (XMLSEQUENCE (EXTRACT (VALUE (tab1), 'dataColumn/codes/code'))) tab2 I refer the path only till codes, it errors out with saying that "single row fetches multiple records" because there are multiple child records..
    How to handle this??
    Please HELP
    Thanks
    Mahesh

    Hi,
    Is there no way to handle this?
    I am sort of running out of time, but not able to think of any solution for this.. There must be a way to do so..
    I found the below link while surfing :
    http://www.componentworkshop.com/blog/2009/07/21/advanced-oracle-parsing-xml-fragments-in-oracle-functions-and-procedures
    I think this link has some answer to my solution in terms of joins but I managed to find no solution to it.
    <EmailAddresses>
    <EmailAddress>[email protected]</EmailAddress>
    <EmailAddress>[email protected]</EmailAddress>
    <EmailAddress>[email protected]</EmailAddress>
    </EmailAddresses>
    How do i extract the EmailAddress from the parent tag ?? while using the XPath to extract the values..??
    Please let me know.
    Thanks in advance

  • Context Mapping: child-nodes of non-mapped parent nodes

    I am somewhat curious about Context Mapping in WebDynpro.
    Which parents nodes need to be mapped in order to map child nodes ? Does a child node has more than one parent node (e.g. grandparent - two steps above) ?
    A.1  -
    MAPPED----
    >    B.1
      - A1.1   NOT MAPPED
      - A1.2   NOT MAPPED
            - A.1.2.1     MAPPED TO>    B.1.2.4
            - A.1.2.2   NOT MAPPED
      - A1.3   NOT MAPPED
    Is it sufficient that only one of these parent nodes (e.g. direct parent node not mapped, but parent node of this parent node is mapped) need to be mapped so that the child node can be mapped ?
    Is this assumption true or not ?
    The SAP library states:
    "Conversely, child nodes of non-mapped parent nodes cannot be mapped, otherwise this would result in irresolvable conflicts at runtime with respect to the parent-child relation in the context and the mapping relation." (http://help.sap.com/saphelp_nw04/helpdata/de/51/a3384162316532e10000000a1550b0/content.htm)
    This statement is not absolutely clear on this issue.

    Let me put it this way
    You have a node vehicle and you have a child node for that the car. The car node have parameters car1, car2.
    Let the vehicle node have parameters veh1 and veh2
    Then if you map vehicle node one to any other node (say in the comp. controller) you have the option of mapping its children i.e veh1,veh2 and carnode.
    You can have that veh1 is mapped and veh2 is not mapped.
    vehicle node(mapped)
    veh1(may or may not be mapped)
    veh2(may or may not be mapped)
    car node(may or may not be mapped)
    If instead you try to map only the car node the vehicle node will also get mapped automatically but not it's child parameters like veh1 and veh2.
    vehicle node(mapped)
    veh1(may or may not be mapped)
    veh2(may or may not be mapped)
    car nodemapped)
    car1(may or may not be mapped)
    car2(may or may not be mapped)
    Hope this would help.
    Do revert for further clarification
    Regards
    Noufal

  • Parent node showing in schema when child nodes not present

    I had several folks answer my questions on mapping from a flat file to an EDI 835 schema and I am down to just a couple of issues before I finish up. I have a conditional mapping issue that I have to solve before I can map the rest of the document. I am
    mapping three fields in a single non-repeating line in the flat file to a repeating segment in the 835. Basically I need to create a separate AMT_ClaimSupplementalInformation segment for each field in the flat file line. As you can see in the picture
    below I want to create a AMT_ClaimSupplementalInformation segment for CDISCOUNT, CINELIGIBLE and CALLOWED.
    You can see I have quite a bit of conditional logic attached to the three fields, but I have all three connected via a loop to the AMT_ClaimSupplementalInformation parent. I cannot attach the loop to the parent of the three fields because it only appears
    once in the file. And if I leave the loop out the AMT segments get stacked funny, like this:
    <AMT_ClaimSupplementalInformation>
    AMT1
    AMT1
    AMT2
    AMT2
    </AMT_ClaimSupplementalInformation>
    You can see how they should be stacked in the next pic.
    In some cases however, one of those fields may be blank so I will not need to create a AMT_ClaimSupplementalInformation segment for it. I was able to use some conditional mapping ideas you guys gave me using the Not-Equal and Value Mapping functoids, and
    that works great to keep blank child nodes from being created. However, Since I have a loop attached to the AMT_ClaimSupplementalInformation parent node it still creates an empty parent node even when the child nodes are not created. See the empty parent
    node in the pic below.
    Since looping functoids can only be attached to links I don't know how to make the parent node conditional.
    Any suggestions?
    Thanks.

    Boatseller, thanks for the tip. I did end up going the XSLT direction. It's a bit of a hack, but I'm using the following XSLT to eliminate empty nodes :
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
        <xsl:template match="@*|node()">
            <xsl:if test=". != ''">
                <xsl:copy>
                    <xsl:apply-templates select="@*|node()"/>
                </xsl:copy>
            </xsl:if>
        </xsl:template>
    </xsl:stylesheet>
    I created a new map with the 835 schema on each side. I then created an XSLT file and pointed to it in the Custom XSLT Path property. It seems to work well. I call this map right after my FlatFile_To_835 map.
    I was hoping to use the scripting functoid with inline XSLT in the map so that I didn't have to worry about deploying the XSLT file(just another thing to keep up with in the future), but when I compile it I get the following error:
    The "Scripting" functoid has 1 input parameter(s), but 2 parameter(s) are expected.
    I'm wondering if I'm connecting the schemas incorrectly in the map:
    In any case, I'm past the empty nodes issue for now, which was a big roadblock. Now I have to deal with the CAS segments which are, as you said, a real pain. 
    Thanks for all of your input.

  • How to find out the descendants of one node that has a nameplace

    hello
    i got a littile trouble when i try to find out the
    descendants of node which has a nameplace,check this sample code
    below please.
    no matter i try to use the node's local name,name,i still got
    a blank.i am confused about that.
    do u people know how to solove that? i really want get that
    descendants of node with nameplace.
    hope u can help me,thx vv much.

    though i have a vicarious solution,but i don't want use it
    right now,i think there would be exist a direct way.
    attach my vicarious solution:
    function getDescendants(xml:XML,des:String="*") {
    var list:XMLList=xml.descendants("*");
    var rlist:XMLList=new XMLList();
    for each (var node:XML in list) {
    if (node.localName()==des || des=="*") {
    rlist+=node;
    return rlist;
    var xl:XMLList=getDescendants(xx,"b");
    trace(xl.length());//output:1
    trace(xl[0].toXMLString());//output:<bb:b
    xmlns:bb="bb.*"/>
    and yes,the final result is what i want,but i don't like its
    course.

  • How to find table which has no index?

    Hi,
    How to find a table which has no index?
    Please provide the query to find the above.
    Thanks
    Jafar

    select owner,
           table_name
      from dba_tables dt
    where not exists(select 'x'
                        from dba_indexes di
                       where dt.owner=di.table_owner
                         and dt.table_name = di.table_name)

  • Need to chart attribute value of just one child node of XML document

    I have a XML document with (for example) 7 parent nodes, each
    parent node has 5 child nodes. The parent nodes have an attribute
    @EarlierDTS (DateTime type) that is the x-axis category of a chart.
    Each child node has an attribute @eventid which specifies the id of
    the event, and another atttribute @NumOccurs which specifies how
    many times that event occured in that period.
    How do I tell Flex I want a simple line chart of the eventID
    = 215? What if I want two lines, for both eventID=215 and
    eventid=307?
    I have studied the posts and blogs for over a week now, and
    have seen this question or similar come up quite a few places, with
    no answer.
    1) Should I focus on learning how to create a filterfunction
    for the XMLList that underlies my XMLListCollection so that the
    filtered data view is just one child node per parent node ( or two
    child nodes for the second case)? And set the filtered data view as
    the dataprovider of my chart's vertical series?
    2) Should I focus on learning how to create a XML Filter
    query that selects just one or two child nodes for each parent
    node, and set the charts' series' dataprovider to this filter
    expression? (I don't think this is allowed - but I'm checking with
    the forum members...)
    3) Should I focus on learning how to convert the
    XMLListCollection into a HierarchicalData object, and then learning
    how to filter this object so there is only one (or two) childs per
    parent? This seems like a lot of coding - I almost have to create a
    pair of classes - one for the parent and one for the child - so I
    can create nested ArrayObjects.
    4) Should I create a brand new XMLList by walking the
    original XML list, and inserting Parent nodes and just the child
    nodes that match the eventID(s) I want to chart, into the new
    XMLList?
    I believe that the easiest way would be to create a
    Filterfunction for the XMLList, and bind the chart series to the
    (filtered) XML List. But the problem with this approach is that I
    have seen more than 2 posts asking how to accomplish filtering that
    removes specific children from the view, with no solutions posted.
    Help! What is the best way to get just one child for each
    parent, from an XMLList?

    "whertzing" <[email protected]> wrote in
    message
    news:[email protected]...
    >I have a XML document with (for example) 7 parent nodes,
    each parent node
    >has 5
    > child nodes. The parent nodes have an attribute
    @EarlierDTS (DateTime
    > type)
    > that is the x-axis category of a chart. Each child node
    has an attribute
    > @eventid which specifies the id of the event, and
    another atttribute
    > @NumOccurs
    > which specifies how many times that event occured in
    that period.
    >
    > How do I tell Flex I want a simple line chart of the
    eventID = 215? What
    > if I
    > want two lines, for both eventID=215 and eventid=307?
    >
    > I have studied the posts and blogs for over a week now,
    and have seen this
    > question or similar come up quite a few places, with no
    answer.
    >
    > 1) Should I focus on learning how to create a
    filterfunction for the
    > XMLList
    > that underlies my XMLListCollection so that the filtered
    data view is just
    > one
    > child node per parent node ( or two child nodes for the
    second case)? And
    > set
    > the filtered data view as the dataprovider of my chart's
    vertical series?
    >
    > 2) Should I focus on learning how to create a XML Filter
    query that
    > selects
    > just one or two child nodes for each parent node, and
    set the charts'
    > series'
    > dataprovider to this filter expression? (I don't think
    this is allowed -
    > but
    > I'm checking with the forum members...)
    >
    > 3) Should I focus on learning how to convert the
    XMLListCollection into a
    > HierarchicalData object, and then learning how to filter
    this object so
    > there
    > is only one (or two) childs per parent? This seems like
    a lot of coding -
    > I
    > almost have to create a pair of classes - one for the
    parent and one for
    > the
    > child - so I can create nested ArrayObjects.
    >
    > 4) Should I create a brand new XMLList by walking the
    original XML list,
    > and
    > inserting Parent nodes and just the child nodes that
    match the eventID(s)
    > I
    > want to chart, into the new XMLList?
    >
    > I believe that the easiest way would be to create a
    Filterfunction for the
    > XMLList, and bind the chart series to the (filtered) XML
    List. But the
    > problem
    > with this approach is that I have seen more than 2 posts
    asking how to
    > accomplish filtering that removes specific children from
    the view, with no
    > solutions posted.
    >
    > Help! What is the best way to get just one child for
    each parent, from an
    > XMLList?
    I'd just look at a dataFunction. There's an example here that
    may point you
    in the right direction:
    http://flexdiary.blogspot.com/2008/08/charting-example.html
    HTH;
    Amy

Maybe you are looking for

  • Report with columns - totals in column at far right

    Hi All, A user would like to see a report in this type of format:     Total Shift 1       Total Shift 2     Total Rpt Info But not as simple as this.  Meaning the data in the last column is not a total of shift 1 and shift 2, but different total info

  • How do I send only the sound track from iMovie to Media browser?

    I need some wild sound for an iMovie 09 project I'm working on in Garageband (working on the soundtrack). I want to take some wild sound from a clip in iMovie and export it to the media browser so that I can use it in the project in Garageband. I det

  • Erro when opening a file wrong type of file.

    I cannot open an EPS file in Elements 11 it has an .eps file extension and I get an error that it is the wrong type of file.

  • SOAP Requst from BW to XMLA

    HI    Iam very new to this topic.... How to send SOAP request to BW and get back data in XML format using XMLA for Analysis Thanks In Advance Guruva

  • Organize content holder by category

    We have a site where our list of content holders is getting a little unwieldy. We are adding a prefix to each content holder to help aid in searching, but it could be better. Is there a way now, or is there room for a future feature that would let a