Filter XML Data for ListBox

 This is the continuation of "Filter ListBox w/ XML Data using a TextBox"
Andy, I read your paper last night. You are so high that I can only understand some of it right now, but you do bring up a performance issue, which needs to be considered for this thread.
Is myListBox.Items a view or the items that have already loaded into the myListBox? I am confused. If myListBox.Items are the items that are currently in the myListBox, then there will be an performance issue if there are a huge amount of items in the myListBox.
Am I right?
Then, the process supposed to be:
1, add XML source to Blend
2, filter the source
3, put in the listbox
Then the code will be much complicated than the 1st one. right?
private void filterBtn_Click(object sender, RoutedEventArgs e)
      myListBox.Items.Filter = target => ((XmlElement)target)["ID"].InnerText.Contains(myTextBox.Text);

There's a pattern that almost every wpf dveloper uses and it's called mvvm.
Google it, there'll be a shed load of articles.
It's a passive view pattern in that the view has minimal logic in it.
The view is your window ( or usercontrol).
You can add a listboxitem to the listbox.items collection but i would only do  that if it's a very simple static collection.
You can bind a collection to itemssource and the listbox will create a listboxitem for each things it gets from that collection.
It creates them using a datatemplate.
When you do that binding apparently directly to a collection a collectionvie is automagically created between control and collection.
You can explicitly create one of those collectionview things yourself and this is agreat way to filter and sort.
You can also use one of those collectionviews to navigate the collection setting the current item in the viewmodel.
That can be synced in the view so you select an item from the viewmodel.
I think I probably drifted off topic there somewhat.
Mvvm is probably different from stuff you've done before.
It's easier to do a bunch of things using mvvm plus it's what any prospective employer will want.
Along with tdd/bdd it's industry standard.
Big tip: learn it.
You want to avoid showing a user a huge load of data. Not so much for performance reasons but because users can only cope with so much data at a time.
Hope that helps.
Recent Technet articles: Property List Editing;
Dynamic XAML

Similar Messages

  • Filter XML Data for Text Fields.

    Hi,
    I'm trying to display a single record out of an XML database
    into dynamic fields in my MovieClip. I need to be able return a
    single record based on the current time. Attached is a sample of my
    XML data.
    I was wondering if this could be acheived with a DataSet
    filterFunction? If it is possible, what code would I need to
    include?
    Finally, do I need to pass my full DataSet to an array or do
    I need to filter first & then pass to an array?
    Thankyou.
    Elton Bernardson.

    There's a pattern that almost every wpf dveloper uses and it's called mvvm.
    Google it, there'll be a shed load of articles.
    It's a passive view pattern in that the view has minimal logic in it.
    The view is your window ( or usercontrol).
    You can add a listboxitem to the listbox.items collection but i would only do  that if it's a very simple static collection.
    You can bind a collection to itemssource and the listbox will create a listboxitem for each things it gets from that collection.
    It creates them using a datatemplate.
    When you do that binding apparently directly to a collection a collectionvie is automagically created between control and collection.
    You can explicitly create one of those collectionview things yourself and this is agreat way to filter and sort.
    You can also use one of those collectionviews to navigate the collection setting the current item in the viewmodel.
    That can be synced in the view so you select an item from the viewmodel.
    I think I probably drifted off topic there somewhat.
    Mvvm is probably different from stuff you've done before.
    It's easier to do a bunch of things using mvvm plus it's what any prospective employer will want.
    Along with tdd/bdd it's industry standard.
    Big tip: learn it.
    You want to avoid showing a user a huge load of data. Not so much for performance reasons but because users can only cope with so much data at a time.
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • Filter xml data

    is it possible?
    I have an xml data file which has first and last name in the
    table and I want to be able to search from one input field with out
    having to create another field with first and last name combined
    Thanks for any help

    Here is what my xml file looks like
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <offices xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance">
    <office id="Y60802" name="Beaumont">
    <firstnamephoto>images/agent/nophoto.jpg</firstnamephoto>
    <firstname>April</firstname>
    <lastname>Schmidt</lastname>
    <title>Realtor</title>
    <officephone>(951)845-5520</officephone>
    <cellphone>(951)283-1359</cellphone>
    <faxnumb>(951)845-4916</faxnumb>
    <email>[email protected]</email>
    <bio>&lt;p&gt;The Pass area is an AWESOME
    place to live! Beautiful snow capped mountains, fields of green and
    all around just a nice place to be. A quickly growing area that
    will soon boast some of the best places to shop! Affordability is
    also a great plus to our area at the moment. Many families are
    coming to the area in an attempt to seek out what makes life
    “better”. With many new schools to serve the areas
    children and parks a plenty. Beaumont seems to be quickly becoming
    the “it” place to
    live.&lt;/p&gt;&lt;p&gt;I have a passion for the
    area that exceeds many peoples emotions, which enables me to be a
    tremendous assist when choosing someone to represent your home. And
    for those of you considering making one of the BIGGEST decisions of
    your lifetime…Buying a home - You will want someone who is
    caring, dedicated and knowledgeable to assist you on that
    journey.&lt;/p&gt;&lt;p&gt;I have lived in the
    Beaumont area for over two decades and have grownup here and am now
    raising my own family here. I have watched this area go from a
    sleepy little town to something that is now considered the
    “IT” place to live. Having successfully built my career
    in Real Estate here in the Pass selling over 300 new homes here in
    the community I am now broadening my horizons by assisting many
    more families in there efforts to achieve the American Dream. I
    look forward to accompanying you on your
    journey!&lt;/p&gt;</bio>
    <listingsurl>searchpoint.net</listingsurl>
    </office>
    <office id="Y60802" name="Beaumont">
    <firstnamephoto>images/agent/nophoto.jpg</firstnamephoto>
    <firstname>Chang</firstname>
    <lastname>Moua</lastname>
    <title>Realtor</title>
    <officephone>(951)845-5520</officephone>
    <cellphone>(951)313-7804</cellphone>
    <faxnumb>(951)845-4916</faxnumb>
    <email>[email protected]</email>
    <bio>&lt;p&gt;In the community: Over 10 years
    in the community.&lt;/p&gt;&lt;p&gt;Sales &amp;
    markerting, Leadership Training
    graduate&lt;/p&gt;&lt;p&gt;Affiliation: National
    Association of Realtors, Yucaipa valley Board of
    realtors&lt;/p&gt;&lt;p&gt;My extensive background
    in the area of customer services and sales, beside attending many
    training classes and seminars, help me keep up with the constant
    and fast pace changes in the market place. Train in technology in
    our industry will help me serve my client to their best
    interst.&lt;/p&gt;&lt;p&gt;You should choose me,
    whether you are selling or buying, because your interest is always
    my priority and responsibility.&lt;/p&gt;</bio>
    <listingsurl>searchpoint.net</listingsurl>
    </office>
    <office id="Y60802" name="Beaumont">
    <firstnamephoto>images/agent/nophoto.jpg</firstnamephoto>
    <firstname>Dawn</firstname>
    <lastname>Henry</lastname>
    <title>Realtor</title>
    <officephone>(951)845-5520</officephone>
    <cellphone>(951)961-8210</cellphone>
    <faxnumb>(951)845-4916</faxnumb>
    <email>[email protected]</email>
    <bio>&lt;ul
    class="bio-info"&gt;&lt;li&gt;Member of the community
    since 1969&lt;/li&gt;&lt;li&gt;Associated with
    Coldwell Banker Kivett-Teeters since
    1998&lt;/li&gt;&lt;li&gt;Certificates: Certified
    Home Marketing Specialist. Certified Negotiator
    Specialist.&lt;/li&gt;&lt;li&gt;Affliations:
    National Association of
    Realtors.&lt;/li&gt;&lt;li&gt;California
    Association of
    Realtors.&lt;/li&gt;&lt;li&gt;Yucaipa Board of
    Realtors.&lt;/li&gt;&lt;li&gt;Awards: Sterling
    Society. (1999,
    2000)&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;As a
    manager and real estate agent our broker exposes us to the latest
    in technology. I attend different meetings and classes to keep up
    with the constant changes in our business. My goal is to help
    motivate and train the new agents to succeed in real estate. I have
    many years experience in sales and the customer service industry. I
    strive to make all real estate transactions smooth and as painless
    as possible. We can make your dreams come
    true.&lt;/p&gt;</bio>
    <listingsurl>searchpoint.net</listingsurl>
    </office>

  • Problems handling xml data for tree control.

    Hi,
    I have tried using tree control for displaying my xml data
    but I had a problem that i did not have labels in my xml data. A
    sample xml data is attached. So it displays the whole data at each
    level in the tree. The root label will be the entire the xml data
    and then one level down the remaining xml data and so on...
    How do i solve this issue i,e get the tags names itself as
    labels..
    Thanks in advance....

    An update after some efforts..
    Could get the folders perfectly i.e until the level of
    CPUTime perfectly but could not get the leaf: 32 since i used the
    following to set the label.
    I would like to know if there is a way to find out if a node
    is a leaf or folder and according set the label

  • Query XML data for blanks

    Hi 
    I am try to see if there are any blanks in a node of a table that has xml data in one of the columns. The query I use is returning zero results. Any suggestions?
    Select COUNT(*)from ENTITY
    Where CONVERT(XML, Ent_root_xml, 0 ).value('(//UD_PQ_FLAG/node())[1]', 'VARCHAR(50)')= ' '

    This is a little tricky. When you don't use /text(), looking for space is the right thing. But when you use /text() you should look for NULL:
    DECLARE @x TABLE (id int NOT NULL, x xml NOT NULL)
    INSERT @x (id, x)
       VALUES (1, '<ROOT><Node>This node is intentionally not left blank.</Node></ROOT>'),
              (2, '<ROOT><Node></Node></ROOT>')
    SELECT id
    FROM   @x
    CROSS  APPLY x.nodes('/ROOT') AS T(x)
    WHERE  T.x.value('(Node/text())[1]', 'varchar(23)') IS NULL
    SELECT id
    FROM   @x
    CROSS  APPLY x.nodes('/ROOT') AS T(x)
    WHERE  T.x.value('Node[1]', 'varchar(23)') = ' '
    Erland Sommarskog, SQL Server MVP, [email protected]

  • External XML data for plot chart

    Hi,
    Can you provide the XML equivalent & the corresponding changes to be done in the below plot chart code :
    <?xml version="1.0"?>
    <!-- charts/BasicPlot.mxml -->
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
      <mx:Script><![CDATA[
         import mx.collections.ArrayCollection;
         [Bindable]
         public var expenses:ArrayCollection = new ArrayCollection([
            {Month:"January", Profit:2000, Expenses:1500, Amount:450},
            {Month:"February", Profit:1000, Expenses:200, Amount:600},
            {Month:"March", Profit:1500, Expenses:500, Amount:300},
            {Month:"April", Profit:500, Expenses:300, Amount:500},
            {Month:"May", Profit:1000, Expenses:450, Amount:250},
            {Month:"June", Profit:2000, Expenses:500, Amount:700}
      ]]></mx:Script>
      <mx:Panel title="Plot Chart">
         <mx:PlotChart id="myChart" dataProvider="{expenses}"
         showDataTips="true">
            <mx:series>
               <mx:PlotSeries
                    xField="Expenses"
                    yField="Profit"
                    displayName="Plot 1"
               />
               <mx:PlotSeries
                    xField="Amount"
                    yField="Expenses"
                    displayName="Plot 2"
               />
               <mx:PlotSeries
                    xField="Profit"
                    yField="Amount"
                    displayName="Plot 3"
               />
            </mx:series>
         </mx:PlotChart>
         <mx:Legend dataProvider="{myChart}"/>
      </mx:Panel>
    </mx:Application>

    This does what you want.
    If this post answers your question or helps, please mark it as such.
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      creationComplete="init();">
      <mx:Script>
        <![CDATA[
          import mx.collections.XMLListCollection;
          [Bindable] public var expenses:XMLListCollection;
          private function init():void{
            expenses = new XMLListCollection(XMLList(xml..dataItem));
          private var xml:XML =
            <data>
              <dataItem>
                <Month>January</Month>
                <Profit>2000</Profit>
                <Expenses>1500</Expenses>
                <Amount>450</Amount>
              </dataItem>
              <dataItem>
                <Month>February</Month>
                <Profit>1000</Profit>
                <Expenses>200</Expenses>
                <Amount>600</Amount>
              </dataItem>
              <dataItem>
                <Month>March</Month>
                <Profit>1500</Profit>
                <Expenses>500</Expenses>
                <Amount>300</Amount>
              </dataItem>
              <dataItem>
                <Month>April</Month>
                <Profit>500</Profit>
                <Expenses>300</Expenses>
                <Amount>500</Amount>
              </dataItem>
              <dataItem>
                <Month>May</Month>
                <Profit>1000</Profit>
                <Expenses>450</Expenses>
                <Amount>250</Amount>
              </dataItem>
              <dataItem>
                <Month>June</Month>
                <Profit>2000</Profit>
                <Expenses>500</Expenses>
                <Amount>700</Amount>
              </dataItem>
            </data>;
      ]]></mx:Script>
      <mx:Panel title="Plot Chart">
         <mx:PlotChart id="myChart" dataProvider="{expenses}"
         showDataTips="true">
            <mx:series>
               <mx:PlotSeries
                    xField="Expenses"
                    yField="Profit"
                    displayName="Plot 1"
               />
               <mx:PlotSeries
                    xField="Amount"
                    yField="Expenses"
                    displayName="Plot 2"
               />
               <mx:PlotSeries
                    xField="Profit"
                    yField="Amount"
                    displayName="Plot 3"
               />
            </mx:series>
         </mx:PlotChart>
         <mx:Legend dataProvider="{myChart}"/>
      </mx:Panel>
    </mx:Application>

  • Filter xml data Class and use pushView to populate List (Flex Mobile project)

    I am such noob so I apologize for my ignorance. Trying to learn and work at the same time but i'm stumped been searching and my understanding is not up to snuff just yet.
    I looked at the Mobile Shopping Cart that Adobe has little over my head to grasp and impliment but my project is similar without the cart option basically.
    I'm currently using a single view with 3 states
    <s:states>
    <s:State name="default"/>
    <s:State name="productView"/>
    <s:State name="detailsView"/>
    </s:states>
    Default state has a list that uses a xml file with categoryID number's that correspond with the main products xml file.
    Which when the item is selected it filters and updates the List on the productView and so on to the detailsView.
    Like this:
    Category -> Products-> Details
    I'm using a filterCollection from an .as Class file to complete this here is a small snipet.
    private function productService_resultHandler(event:ResultEvent):void
    var productsArray:Array = new Array();
    var resultData:XMLList = event.result..product;
    for each (var p:XML in resultData) {
    var product:Product = Product.buildProductFromAttributes( p );
         productsArray.push( product );
    products = new ArrayCollection( productsArray );
         products.filterFunction = filterForCategory;
         products.refresh();
    private function filterForCategory(item:Product):Boolean{
    return item.catID == selectedCategory;
    public function filterCollection(id:Number):void{
    selectedCategory = id;
         products.refresh();
    Project works great but incredibly slow on Mobile device iOS. In-between the states I have transition animations and it bogs right down.
    So I was trying to experiment by using pushView and basically do the same but utilize Flex's viewNavigator to see if it speeds things up but I can't get the filter function to push the filtered data to the newView component.
    Or I was thinking of trying to order the events such as seletedItem->transition->filtered Data it seems like it is all happing at once and the app just sits for 3 seconds before the state is updated.
    Any help appreciated or more info needed let me know. THX

    So I will solve this later.
    I was able to stick to the original project layout with states within views instead of view states. Ditched the transition Move effects averaging 1 to 2 seconds on all state changes.
    It is a really basic product view app that all files are local. I'm not super impressed at the first go but it works and into the First Project archieve's and will revisit it on version 2. Which will probably start soon. It's better than hello world!

  • Preformatted RTF string in XML data for BI Publisher merge

    Hi
    I have been presented to the question: Can we send a preformatted RTF text as one of the input fields in XML stream to BI Publisher (mail)merge?
    We're using the MS Word plugin to create a RTF template. Effectively we want to merge RTF text using RTF template.
    I cannot find any documentation stating that it is supported. My tests locally in the MS Word plugin are'nt exactly sucessfull, but there is a number of possible reasons for that.. :-)
    Does anybody know explicitly if it is supported (or not)?
    Regards
    /John

    Hi..
    Obviously the buffer size need to be extend...also its look like you are customizing the report ..so it would be better if you check for data redundancy once.
    you have to increase the size of buffer ....and then let it completly open the xml output file...till its done and then save it and use for preview.
    You have to ask your dba to increase the buffer ...or from sysadmin --->conc manager--->output post processing ...check for the manager and increase the buffer size as well.
    Thanks
    Ratnesh

  • Unable to filter the data for multiple time selections by dimensions

    Hi to all,
    I am new in MDX, i have a problem with my MDX query.
    Calculated Member Logic:
    SUM((OPENINGPERIOD([Date].[YQMD].[Year],[Date].[YQMD].[Month].&[2010-12-01T00:00:00]):[Date].[YQMD].Currentmember),[Measures].[Paid Amt])
    Mdx Logic EX:
    With Member [MEASURES].[Received_Amount]
    AS
    SUM((OPENINGPERIOD([Date].[YQMD].[Year],[Date].[YQMD].[Month].&[2010-12-01T00:00:00]):[Date].[YQMD].Currentmember)
    ,[Measures].[Paid Amt])
    SELECT {[MEASURES].[Received_Amount]} On Columns
    ,[Date].[YQMD].[Year].members On Rows
    From [Financial]
    If i select multiple time periods in Rows, the query working fine.
    but if select multiple periods in where clause it is not responding.
    With Member [MEASURES].[Received_Amount]
    AS
    SUM((OPENINGPERIOD([Date].[YQMD].[Year],[Date].[YQMD].[Month].&[2010-12-01T00:00:00]):[Date].[YQMD].Currentmember)
    ,[Measures].[Paid Amt])
    SELECT {[MEASURES].[Received_Amount]} On Columns
    ,[Speciality].[Specialty Name].[Specialty Name].members On Rows
    From [Financial]
    Where {[Date].[YQMD].[Year].&[2012-01-01T00:00:00],[Date].[YQMD].[Year].&[2013-01-01T00:00:00]}
    Note:
    Each of them is considered from the minimum date in the database to the selected time.
    And also the data has to be filtered with respect to each drill down dimension.
    If select multiple time periods the same formula has to be applied with respect to the dimensions.
    Kindly help me to get out of this problem
    Best Regards,
    Nagendra

    Hi David,
    Thanks for your response.
    I have a measure, i have to get received_amount in the database from the database starting period to my selection period. Later i have to check by dimensions using same measure. if i select any one period by dimension it's coming, but if i select multiple
    periods in filter level by dimensions it's showing no records.
    For Ex: 
    I have four years data in my database (2010-2013).
    In 2010
    Bill_Amt
    Bill_Date  
    Specialty received_amount
    1000
    10/01/2010 4
    600
    2000
    04/08/2010 2
    1000
    In 2013
    Bill_Amt
    Bill_Date Specialty
    received_amount
    1500
    22/02/2013 2
    1200
    2000
    14/03/2013 1
    800
    In the above scenario,
    By Period:
    if i go by period i should get,  
    Jan'13  ---> 1600
    Feb'13  ---> 2800
    Mar'13  ---> 3600
    Specialty By Single Period:
    If i select Jan'13 by specialty
    Specialty
     received_amount
    2 1000
    4 600
    If i select Feb'13 by specialty
    Specialty
     received_amount
    2 2200
    4 600
    If i select Mar'13 by specialty
    Specialty
     received_amount
    1 800
    2 2200
    4 600
    Specialty By Multiple selection Periods:
    The result should be sum of the individual selection periods by specialty as follows,
    If i select Jan'13 & Feb'13 by specialty
    Specialty
     received_amount
    2 3200
    4 1200
    If i select Jan'13 , Feb'13 & Mar'13 by specialty
    Specialty
     received_amount
    1 800
    2 5400
    4 1800
    Regards,
    Nagendra

  • XML data for Spry Menu ?

    I maintain several web sites with static pages that all carry
    a common Spry menu bar hard coded into each page via a template.
    How can I use an XML file to feed a Spry menu widget to save
    uploading all the pages every time there is a change on the site
    that requires the menu to be updated?
    I've searched the web and help files for an answer to this
    without success, so any help or pointers would be most appreciated.

    I made this example that uses a xml file to build the spry
    menu, the page is html, you need to make a seperate dataset for
    each <ul> tag, or item group in the menu, notice the two
    datasets in my sample, you could expand and make as many as you
    want, all drawn from xml files. check out the page here:
    http://gohbcc.com/examples/menutest.html
    html page:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    xmlns:spry="
    http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Untitled Document</title>
    <script src="SpryAssets/SpryMenuBar.js"
    type="text/javascript"></script>
    <script src="SpryAssets/xpath.js"
    type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js"
    type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css"
    rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    <!--
    var ds1 = new Spry.Data.XMLDataSet("s.xml", "links/link");
    var ds2 = new Spry.Data.XMLDataSet("t.xml", "links/link");
    //-->
    </script>
    </head>
    <body>
    <ul id="MenuBar1" class="MenuBarHorizontal">
    <li><a class="MenuBarItemSubmenu" href="#">Item
    1</a>
    <ul>
    <div spry:region="ds1">
    <li spry:repeat="ds1">
    <a href="{a/@href}">{a}</a>
    </li>
    </div>
    <li><a href="#">Item 1.1</a></li>
    <li><a href="#">Item 1.2</a></li>
    <li><a href="#">Item 1.3</a></li>
    </ul>
    </li>
    <li><a href="#">Item 2</a></li>
    <li><a class="MenuBarItemSubmenu" href="#">Item
    3</a>
    <ul>
    <div spry:region="ds2">
    <li spry:repeat="ds2">
    <a href="{a/@href}">{a}</a>
    </li>
    </div>
    <li><a href="#">Item 3.2</a></li>
    <li><a href="#">Item 3.3</a></li>
    </ul>
    </li>
    <li><a href="#">Item 4</a></li>
    </ul>
    <p> </p>
    <div spry:region="ds1" style="float:right;">
    <table>
    <tr>
    <th>A</th>
    <th>A/@href</th>
    </tr>
    <tr spry:repeat="ds1">
    <td>{a}</td>
    <td>{a/@href}</td>
    </tr>
    </table>
    </div>
    <p> </p>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1",
    {imgDown:"SpryAssets/SpryMenuBarDownHover.gif",
    imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>
    XML Files
    t.xml;
    <?xml version="1.0" encoding="utf-8"?>
    <links>
    <link><a
    href='customer_enter.php?method=Fname'>First
    Name</a></link>
    <link><a
    href='customer_enter.php?method=caseNum'>Case
    Number</a></link>
    <link><a
    href='customer_enter.php?method=Lname'>Last
    Name</a></link>
    <link><a
    href='customer_enter.php?method=caseWorker'>Case
    Worker</a></link>
    </links>
    s.xml:
    <?xml version="1.0" encoding="utf-8"?>
    <links>
    <link><a href='customer_find.php?method=name'>By
    Name</a></link>
    <link><a
    href='customer_find.php?method=caseNum'>By Case
    Number</a></link>
    <link><a href='customer_find.php?method=date'>By
    Date</a></link>
    <link><a
    href='customer_find.php?method=itemNum'>By Item
    Number</a></link>
    </links>

  • Custom Map in flash using XML data for dynamic map and point of intrest loading...

    Been some time since I have used Flash for anything...
    I'm working on a little project to dynamically build a map
    and set points of interest on the map. At this time I have the
    (mySQL) data being queried and formatted with PHP and pushing the
    data to Flash as XML.
    In starting the project I'm a bit lost... I mean I have my
    data and a good XML format but as it is I'm lost on parsing the
    data in Flash and assigning its values to movie clips or other...
    I've looked at the Loader Component and the XML Connector
    Component and find I can get that to work at all...
    My second though was to create a single movie clip on stage
    and give it an instance name of "Background" and have it load the
    URL of an image given in the attached XML doc... Node "a_zone" and
    the value given to attribute "image"... But this brings me back to
    square one of not quite understanding Flash and parsing XML... With
    this second idea I would use AS to create a movie clip, set it's X
    & Y cords and load an image to it based on the XML attributes
    listed in the "Gatherable" node (one for each node).
    Any suggestions, examples or related info is welcome...
    Thanks in advance!

    Okay, that really wasn't what I was looking for... But I did
    go back and RTM :-)
    Here's what I have... 1st frame:
    2nd Layer: movieclip with the instance name "currentPicture"
    The image loads into "currentPicture" from the URL given in
    the XML "a_zone" node attribute "image" just fine....
    But I'm not able to grab the attributes of each "Gatherable"
    node it seems... am I missing something or just not pointing to the
    right node?
    I keep getting:
    undefined
    undefined
    undefined
    Error opening URL
    "file:///C|/apache2triad/htdocs/gatherer/flash/undefined"
    Error opening URL
    "file:///C|/apache2triad/htdocs/gatherer/flash/undefined"
    Error opening URL
    "file:///C|/apache2triad/htdocs/gatherer/flash/undefined"

  • External XML data for more charts in a single page

    I am using a plot chart which gets data from an external XML file through <mx:HTTPService>
    I create another chart in the same page which also gets data from another XML file.
    How can i provide data to this chart through the HTTP Service ?
    - Sen

    I hope i've understood well what you want to do.
    Easily you could define 2 different httpservice with different url and bind them to chart.
    hope this help!
    bye!

  • How to automatically update xml data for xml connector

    I suspect the answer to this is simple because I am a real novice when it comes to ActionScript.
    I have a project with an XML Connector that goes out and gets data from an xml file and displays it in a label in my flash.
    It does this when the swf file loads using ActionScript in frame 1.
    The ActionScript is simply:
    this.labels_xc.trigger();
    This is great. It loads the data from the XML file no problem.  But the data in the XML file changes every so often.  How do I get the swf file to go out and get the new data on a regular interval (say every 2 minutes or so)?  I've looked at scripts with timers and I can't figure it out.
    Here is the url to the page I'm testing it on:
    http://www.timescapemedia.com/uptake/text.html

    My lack of experience here is showing.
    I tried putting the following, but neither work.
    this.labels_xc.trigger();
    setInterval(f, 30000);
    function f() {
    this.labels_xc.trigger();
    and
    this.labels_xc.trigger();
    setInterval(f, 30000);
    function f( ) {
    this.labels_xc.trigger();
    Obviously I'm not putting this together correctly.
    I appreciate your patience and help.

  • Evaluating XML data for comparison

    Does anyone know if it is possible to evaluate an xml node to see if it holds a specific value, and if so how?
    I am trying to do something like this...
    Set myChild = myRoot.evaluateXPathExpression("//collections/page/pnum")
    if myChild(1) = 1 THEN
         [do something]
    Else
         [do something else]
    End if
    I keep getting  a "Object does not support this property or method" error on the first line of the if statement.
    If I placeXML into a text frame I can get the value of myChild(1), so I know the XPath is correct and there is something there, I just can't figure out how to use it.
    That particular node should hold the value of 1.
    I am using VB and CS5.5, but javascript answers/ examples are fine.
    thanks

    I got it figured out.  If anyone else cares to know, it goes like this...
    if myChild(1).contents = 1 THEN

  • Reg :  vo.writeXML() how to filter the data before generating the xml data

    Hi team,
    I have table region with multi selection option.
    My requirement is to fetch the data and generate the xml data for the selected rows.
    By using : writeXML() --> it is fetching all the data.
    What are the methods i need to use,so i can fetch only the selected data ?
    Any pointers ?
    -Sridhar

    Hi Peddi,
    i tried the way u mentioned :
    But the new VO2 (Target) VO is having an extra row, iam not understanding how that is getting stored in VO2.
    Can you please review the below query and let me know if any issue.
    public void copyVO()
    int rowCount=0 ;
    OAFXMLVOImpl vo1 = getOAFXMLVO1(); //source
    OAFXMLVOImpl vo2 = getOAFXMLVO2(); //destination
    OAFXMLVORowImpl row2= null ;
    OAFXMLVORowImpl row1 =null;
    if(vo2!=null && vo2.hasNext())
    { vo2.first();
    do
    vo2.getCurrentRow().remove();
    vo2.next();
    while (vo2.hasNext());
    oracle.jbo.Row[] rows = (oracle.jbo.Row[]) vo1.getFilteredRows("check", "Y");
    rowCount = rows.length;
    if(rowCount>0)
    vo2.setMaxFetchSize(0);
    for(int i=0;i<rowCount;i++)
    row1 = (OAFXMLVORowImpl)rows;
    System.out.println("User ID-->"+ row1.getUserId());
    System.out.println("Checked -->"+ row1.getcheck() );
    row2 = (OAFXMLVORowImpl) vo2.createRow();
    row2.setUserId(row1.getUserId());
    row2.setcheck(row1.getcheck());
    vo2.insertRow(row2);
    row2.setNewRowState(row2.STATUS_INITIALIZED);
    } //end of if
    -Sridhar

Maybe you are looking for

  • Problems wirelessly extending 5Ghz network with Time Capsule

    Summary: My Time Capsule wirelessly extends a 5Ghz "n" network provided by my Airport Extreme, but the Time Capsule frequently fails and stops providing Internet access to connected computers. I'm not sure if the problem is with the Time Capsule or w

  • HTML5 Audeo Player Widget

    I use iWeb 09 for a personal webzine. I have used a simple flash audio player on the site. The ipod and iPad is closed to flash. The audio files I play are brief, somewhat as long as a sample of a song on iTunes. The iTunes app on ipad and ipod has a

  • Problem displaying a graph

    I am trying to display a line graph from a given arrays of integers, which are stores as x and y points consecutively. (ie. int values[] = {x0,y0,x1,y1,etc...}) However, after I compiled and run the code, no graph is displayed. What's wrong?... impor

  • When to use a database...

    Hello everyone, This is my first post on this forum. I appreciate any help you can give me in advance. I recently decided that I wanted to get back the programming skills I used to have in college. (My job for the past five years hasn't involved any

  • "Save Message" - in Task list - Planning 11.1.2.2.302.3

    Hi, We have implemented Planning 11.1.2.2.302.3 and following was asked from our customer. When I enter data (numbers) in the task list, I want to be warn with a pop up window, if I click "next" that "data are not save" --> - save yes or no-. As per