Remote mx:Model source not refreshing

Hi,
I'm working on a little project, which involves an <mx:List> object being populated by an <mx:Model>. This Model takes a remote XML file as a source.
However, when I update the XML file, the only way to get the List object to take the new data is to recompile the application. Obviously, I don't want to have to recompile for every update to the XML file, as there will be quite a lot in future.
Does anyone know how I can get Flex to not cache the XML file?
Thanks.

omething i threw together:
you'll have to replace the URL with the location of your XML.
if this doesn't work or you need more help please let me know, im still a flex newb myself.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init()" layout="absolute">
     <mx:Script>
          <![CDATA[
               import mx.collections.ArrayCollection;
               import mx.rpc.events.ResultEvent;
               [Bindable]
               private var ac:ArrayCollection = new ArrayCollection();
               [Bindable]
               private var ac2:ArrayCollection = new ArrayCollection();
               [Bindable]
               private var ss:int = 0;
               private function init():void
                    getStory.send();
               private function resultHandler(event:ResultEvent):void
                    ac.removeAll();
                    ac2.removeAll();
                    for each (var t:XML in XML(event.result)..story.@label)
                         ac.addItem(t);
              for each (var t2:XML in XML(event.result)..story[ss].chapter.@label)
                         ac2.addItem(t2);
          ]]>
     </mx:Script>
     <mx:HTTPService id="getStory" resultFormat="e4x" url="http://www.snorksoft.co.uk/storys.xml" result="resultHandler(event)"/>
     <mx:List id="Storys" dataProvider="{ac}" itemClick="{ss = Storys.selectedIndex}init();" x="10" y="25" width="175" height="299"/>
     <mx:List id="Chapters" dataProvider="{ac2}" x="193" itemClick="storyText.text = Chapters.selectedItem + ' selected' " y="25" height="299"/>
     <mx:Label x="10" y="10" text="Story"/>
     <mx:Label x="193" y="10" text="Chapter"/>
     <mx:Text x="363" y="25" width="201" height="299" id="storyText"/>
     <mx:Label x="363" y="10" text="Content"/>
</mx:Application>
But copy that into a seperate application for testing, the XML file i parsed which is exact same to yours is located on www.snorksoft.co.uk/storys.xml
Thanks! Rob.
Message was edited by: rbz.

Similar Messages

  • While editing the columns in ADo net source not refresh the columns

    Hi,
    When i am editing the columns in the adonetsource can't able to edit it.
    EG:
    id       name     sal are the available columns
    select id, 'name' as ename,sal from emp.
    I Edited this query as :
    select  id, 'empname' as ename,sal from emp
    It won't affect in the source. & how to change the query using expression. in adonetsource there is no data access mode as from varible.   pls help on it.
    Thanks

    Hi Sai,
    Let me know what you are trying to Edit in columns. You want to alias the column name or you want to edit the string of column.
    Column Aliasing : 
    select id, name as EmpName, sal from emp
    Check with this and let me know if you still facing issues.
    Regards,
    Vaishu

  • Matrialized view not refreshing all records from source.

    My materialized view is not refreshing a fixed number of rows i.e 198 every time from source to target.What are the reasons for such behavior. Also what should i do to resolve this discrepancy.
    My mv is a FAST REFRESH ON DEMAND based on ROWID.
    It has a simple sql query select col1,col2,col3 from testschema.mytable@mydb;
    Thanks,
    Sandesh

    Hello Raman & KV,
    Thanks for your Suggestions.
    Unfortunately, I would not be able to implement any of your suggestions because, I m not allowed to change the DTP Settings.
    So, I m working on finding the root cause of this issue and came across a SAP Note - 1506944 - Only one package is always extracted during direct access , which says this is a Program Error.
    Hence, i m checking more with SAP on this and will share their insights once i hear back from them.
    Cheers
    Shiva

  • [ATI open source driver, laptop] Screen not refreshing properly.

    Hi guys, I've been using ATI Catalyst driver and everything was working well until I decided to switch to open source driver.
    Now I have strange problem. My screen is not refreshing properly, I mean, for example I use Facebook and I decide to read something in other card in browser and after I switch cards I can still see some of the facebook page elements, window title does not change. After I move cursor over page elements are refreshing. When I scroll page, even a little bit, it refreshes as well. Or I use terminal, I type some command, press enter and sometimes screen doesn't refresh and I can't see output until I try to resize window or select text (which I can't see...).
    Sorry for not the best description, I will give you screens tomorrow because today I can't.
    My graphics card is Radeon HD 5400 Series and I use ASUS X52J laptop.

    tomk wrote:Install radeonhd and run X with no xorg.conf - it will autodetect the driver.
    The radeonhd works.  It's the radeon driver that doesn't work, I tried no xorg.conf and it still used the vesa driver.
    Last edited by cyclotomic (2009-06-27 07:11:12)

  • Remote Desktop Session - Sections of Screen Not Refreshing

    Remote Desktop Session Not Refreshing        
    I have 3 monitors.
    When I connect to any RDP session, my screen seems to lag.  For instance, I click the start button and nothing displays, but when I move the mouse, I see parts of the start menu appear. 
    This seems to be a recent issue. I RDP sessions throughout the day, so you could imagine how annoying this could be.
    Can anyone please give me some advice?
    Windows 7
    10GB RAM
    64-bit

    Hello NBell_DF,
    Please try to use other Windows 7 computer in the same network environment to see if they can normally remote desktop to the corresponding computers.
    If they also have the same issue, it may be related to the network. And then use the command ping <destination IP> to check the network delay.
    If other computer don’t have the similar issue, please update the network driver.
    Additionally, we could choose your connection speed to optimize performance.
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • Can not refresh server manager Error:0x8007045b

    OS: Windows 2012 R2 Core
    Services: Hyper V
    I was trying to remote reboot and the session hung. No worries I decided I could just reboot the next morning. So I rebooted the next day but when I go into server manager I get
    an errror can not refresh server manager Error:0x8007045b. Did some research found suggestions to fix it using a DISM.exe /Online /Cleanup-image /Restorehealth.
    But then I get an error 1115 A system Shutdown is in progress. I attempt to fix this issue using pskill winlogon but the issue pursistest. I have restarted the server several times now. Not sure how to fix this.
    Thanks in advance,
    Jake

    Hi,
    In addition to the above information,
    Checkout the below thread for similar discussion,
    http://social.technet.microsoft.com/forums/windowsserver/en-US/a700e9f6-4491-4c70-8bd0-d9d3111e2f70/windows-reboot-error
    Regards,
    Gopi
    JiJi
    Technologies

  • AiO Remote Ink Levels etc not accessible with USB connection

    My printer prints and scans just fine...except that it ran out of ink after about 15 pages. I'm trying to view the ink levels, but everything in the HP AiO Remote says it's not supported with the USB connection. There's no other way to connect my printer. I need to view the ink levels and be able to put in new ink, but I can't because the software isn't working right. Help?

    Hi @HnnhSmth95, 
    I see by your post that you are unable to view the ink levels by a USB connection. I can help you with this, but I will need some more information.
    What is the full name and product number of your printer? How Do I Find My Model Number or Product Number?
    What operating system are you using? How to Find the Windows Edition and Version on Your Computer.
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • Master Password Feature: After sometime (10-15 min.) the drop down list for the field on any site does not show; opening new window (not refresh or new tab) drop down appears.?

    I manage a ton of accounts for different customers suing the same login pages (GoDaddy, WordPress, etc.) I use the Master Password Feature to help keep track of the many variants in logins and passwords.
    After some unknown period of time, even closing the page tab so a new page session is started at the remote server, Firefox does not provide me with the usual drop-down selection list of the previously used login names. However, if I open a new FF window (file/new window) from the menu bar, the drop down becomes available.
    How can I refresh the original window session in FF or change the timeout length?

    Well, you said LOV...that might mean you are using JDev 11g. Are you? If so what technology stack are you using?
    Assuming you are using JSF (?) you might be "backing" your list component in the application scope...but that is not likely.
    If you are using ADF/BC on your business component level, you can clear your view object from which you are querying the possible values of this list...unless your you have made a method to compile this list...in which case you know what you are doing...so that is probably not the case.
    Essentially you want to requery the VO upon which your LOV is based...unless you are using JPA or something...and then I know "requery" is not the right word...is it?

  • Master-Detail Detail does not refresh after it's been empty

    I have a master detail page (both are tables) that works just fine, until I click a master record that has no details.
    After that the panelHeader of teh detail is refreshed with the PPT but the table underneath it is not, I keep seeing "no rows yet", no matter which master record I click.
    When I go to a different page and return it's fine again.
    Only one of my pages has this behavior, I tested this on another and it was fine. Has anyone seen this behavior before?
    My console has this message:
    May 11, 2007 10:52:38 AM oracle.adfinternal.view.faces.model.binding.FacesCtrlRangeBinding$FacesModel getSelectedRow
    WARNING: rowIterator is null
    Message was edited by:
    Wendy Tromp

    Ok I found it,
    My details iterator had the following properties:
    <iterator id="AfdelingMedewerkersIterator" RangeSize="-1"
    Binds="AfdelingMedewerkers"
    DataControl="PRBAppModuleDataControl"
    Refresh="IfNeeded" RefreshCondition="#{!adfFacesContext.postback}" />
    I have no idea why I set it like that, but removing the Refresh properties fixed my problem.
    I am still clueless as of why this led to the behavior as described above. I could have understood it if my iterator was not refreshed at all, but I have no idea why it stopped working only after the details were empty and not a second before...
    Anyway, problem solved!

  • Excel 2010 Pivot Table VBA Not Refreshing Table

    My company recently upgraded from Excel 2003 to 2010. I had VBA written to take source data and convert it into a number of Pivot Tables on a number of worksheets. It has been working fine for years. After upgrading to 2010 the VBA crashed. I tracked it
    down to the fact that when my code was making changes to the Pivot Tables (changing fields, filters, etc...) the pivot table on the worksheet had no data, but the fields were there. I can manually go to the pivot table and manually refresh and all the data
    comes in.
    So I tried adding the VBA code to refresh the pivot table, but the pivot tables will not refresh with data.
    I tried:
    ActiveSheet.PivotTables("WO Pivot").RefreshTable
    and
    ActiveWorkbook.RefreshAll
    And these did not work.
    I also tried recording a macro for the manual steps to refresh and got:
     ActiveSheet.PivotTables("WO Pivot").PivotCache.Refresh
    This does not work either.
    The PivotTable name is correct, but I tried using the number as well, and the name works for other code manipulating the the pivot table.
    e.g.:
    With ActiveSheet.PivotTables("WOPivot").PivotFields("Task Title")
          .Orientation = xlRowField .Position = 2
          .Subtotals = Array(False, False, False, False, False, False, False, False, False, False, _False, False)
    End
    With Why isn't this working? Is there another way to refresh pivot table data in 2010?
    Thanks. P.S. I've tried formating this so it is readable, but it comes out garbled. Hope this looks better.

    The solution above didn't work for me, but the following did the trick:
    ActiveSheet.PivotTables("WOPivot").PivotCache.Refresh
    By the way, I identified it by recording a macro, then going on the Pivot Table that needed refreshing and pressing F9 to refresh it. The line of VBA code above was the result.
    Cheers,
    Marco.

  • Azure - The name 'model' does not exist in the current context

    I am getting the error below but only on Azure, everything builds and runs fine on multiple machines running locally. But when I deploy to Azure I get the error below trying to login. Not even sure where to start researching this one
    Compilation Error
    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 
    Compiler Error Message: CS0103: The name 'model' does not exist in the current context
    Source Error:
    Line 1: @model Web.Models.LoginViewModel

    hi,
    From the error message, it seems like a MVC issue.
    I suggest you could re-configure your web configuration follow those solutions The name 'model' does not exist in current context in MVC3
    and
    Razor View throwing “The name 'model' does not exist in the current context” .
    And then you could try to deploy project to azure again. I think this error may be disappeared. Please try it.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Multiple Select List does not Refresh with Dynamic Action

    All,
    Scenario:
    Using APEX 4.2.2, I have a Select List page item (P4_SPONSOR) set to allow multiple values which has a dynamic LOV to populate the list.  What I would like to do is highlight the display values based on another page item's value (P4_DRIVER_ID).  When I set the source of P4_SPONSOR to static text, such as a delimited string of 1:2:3:4, any display values where the return values are equal to the static text are highlighted when the page loads.
    Problem:
    The problem lies in trying to use a query as a source for P4_SPONSOR which is filtered based on the other page item, P4_DRIVER_ID.  For instance, my SQL Query (returning colon separated values) returns the same as the static text noted above.  In the query's WHERE clause, I specify that the driver's ID is equal to P4_DRIVER_ID:
    SELECT sponsor_id
    FROM sponsors_drivers_xref
    WHERE driver_id = :P4_DRIVER_ID;
    This, as I understand it, would necessitate a refresh of P4_SPONSOR whenever the value of P4_DRIVER_ID changes.  So, I have a Dynamic Action that does just that.  When executed on the page, I can see the P4_SPONSOR multiple select list actually refresh, but none of the display values become highlighted.
    Thoughts?
    Thanks,
    -Seth.

    Seth,
    A dynamic action refresh of your select list will refresh the list of values (this is what you are seeing), it will not refresh the value of the item itself.  In fact, it will remove any values that you had already selected.  To refresh the value you will need to add additional dynamic actions.
    Create another dynamic action with:
    Event: After Refresh
    Selection Type: Item(s)
    Item(s): P4_SPONSOR
    If this was a normal select list you could just create a Set Value action and use your query to set the value of the select list.  Since this is a multiple select list your will need to get your colon delimited value first and then use some javascript to set the values of your select list.
    Create an hidden page item name P4_SPONSOR_TEMP.
    Add a true action to your new dynamic action:
    Action: Set Value
    Set Type: SQL Statement
    SQL Statement:
    SELECT sponsor_id
    FROM sponsors_drivers_xref
    WHERE driver_id = :P4_DRIVER_ID;
    Page Items to Submit: P4_DRIVER_ID
    Selection Type: Item(s)
    Item(s): P4_SPONSOR_TEMP
    Add another true action to your new dynamic action:
    Action: Set Value
    Set Type: JavaScript Expression
    JavaScript Expression:
    $("#P4_SPONSOR_TEMP").val().split(":")
    Selection Type: Item(s)
    Item(s): P4_SPONSOR
    --Jeff

  • Parameter not refreshing based on dataset filter

    I have a requirement for a cascading parameter in my SSRS RDL, where the selection of the parameter A refreshes the available values in parameter B.
    I've implemented this as such
    DataSet A populates the values and default values of Parameter A
    DataSet B populates the values and default values for Parameter B
    DataSet B is also filtered by matching the common field in the selected values of Parameter A
    This solution works fine in both Visual Studio Preview of the RDL and when I push the RDL out to my local sandbox SSRS, which is 2008 R2.
    However, our Dev, UAT and Production environments are SSRS 2008 SP3 and the cascading parameter functionality does not seem to be working there. I.e. When I select Parameter A, Parameter B is not refreshed.
    I have read up on cascading parameters (can't link article since my account isn't verified) to see the recommended way to setup these up, but my data sources are XML (calling a WCF service) not SQL so I'm unclear of how to pass the Paramater A value
    to the DataSet B XML query.
    Is this issue simply a limitation of SQL 2008 SSRS vs 2008 R2? Is there any other workaround, etc I can leverage?

    Hi Keenan,
    Sorry for my delay.
    Based on my test, I can reproduce the same issue in SSRS 2008. It is work well in SSRS 2008R2. If possible, I recommend you update your SSRS 2008 to SSRS 2008R2.
    Since this behavior is by design, you can submit a wish to the Microsoft Connect at
    https://connect.microsoft.com/SQLServer/Feedback. Your feedback is valuable for us to improve our products and increase the level of service provided.
    Regards,
    Alisa Tang
    If you have any feedback on our support, please click
    here.
    Alisa Tang
    TechNet Community Support

  • Data refreshed when preview in XLF but not refreshed in exported SWF

    Hi,,
    I have an XML file linked to Exel which is the source of an XLF file. All connections are OK and I am able to see the latest data are being refreshed when I preview the XLF file.But when I exported the XLF file to SWF file, the error 2048 occured and the data is not refreshed at all.
    I have put the SWF file in the Global Security Settings Panel (Always Allow list) and also checked the Every Time I visit the webpage under the Temporary Internet Files and History Settings.
    Anything else I need to do..can someone help?

    Hi
    Error 2048 is usually caused by two main reasons.
    One -  the global security settings are not set to allow files from the desired folder to be accessed.  Check that you have added the source folder(s) for your data to the list "allows trust files in this location" under Adobe's online settings manager.
    Two - you're trying to access a file on a domain that is different from the one you're running the swf file on. For this you need a crossdomain file added to the root folder of the server you're trying to access.
    So your crossdomain.xml should look like this
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
    <allow-http-request-headers-from domain="" headers="" secure="false" />
    <allow-access-from domain="*" secure="false" />
    </cross-domain-policy>
    For more information, search other posts on this topic or please check out  the Adobe website.
    Andy
    Xcelsius QA

  • Edited Images Do Not Refresh

    When I edit an image in an external program (PS, Illustrator), Dreamweaver doesn't show the changes. It insists that no changes have been made. Refresh doesn't help, nor does using any of those idiotic internal image editing buttons in DW. (Half of them are greyed out most of the time anyway.)
    There's more information & frustration at this thread: http://forums.adobe.com/message/2181158#2181158 ... which was mysteriously marked "Answered".
    Here's  an example: I have a graphic in an HTML document, stored locally. I  edit the graphic and save it, but DW continues to use the older preview  image. I can see the updated image in Live View, but it actually reverts  back to the earlier image when I return to Design Mode! Madness! Why  would it do that? It also fails to update the preview image when I upload & use absolute URLs to identify the image.
    This was not an issue in CS3 IIRC. I think the addition of those image-editing tools in CS5 have screwed things up somehow, like DW has decided it is the only program on the machine.
    This is one of those things that stops workflow dead in its tracks.

    Also, the issue seems to happen only when working with absolute links
    --  I create a lot of HTML emails for clients, and I'm pretty certain 
    that's the only time I run into this issue. For the rest of my work 
    links are root-relative, and seem to update fine.
    This is why I said what I said because that's what I was afraid of.  I've been skeptical myself of DWs abilities at handling remote content in your specific situation, which unfortunately is very common.  What I would recommend doing is what I have done and submit a feature request to Adobe for future versions since they seem to be moving a bit quicker now after publishing the CS5.5 release to accomodate for HTML5 and CSS3.
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Personally speaking my recommendation was an HTML email mode where the "browse" function could potentially work with remote connection (eg: FTP) and select the files creating absolute links as you go, and have the ability to turn on inline CSS writing permanently (unlike the current drop-down option in the Properties window).  That was just my suggestion, but the more suggestions people send to Adobe about this, the more likely it is to happen.
    And just as a final note based on what you describe it is a caching issue.  What is happening when working with remote images is that DW downloads a copy locally and then you see that.  Live View always refreshes since it runs against the server, and the Refresh button "should" re-download all images from the server to replace the cached versions, but that does not appear to be working.  You might also want to submit a separate bug report using that same form (there is an option saying Feature Request or Bug Report) so they are aware that the cache not refreshing as often as it should is being viewed as a bug.  From my experiences in working with HTML emails I tend to push people towards services like Mailchimp that allow me as a designer, to simply give them a ZIP file containing their work, they just upload and send.  No absolute linking is necessary since the images are hosted by the ESP so it allows me as a designer to work with all local files, zip and go.  There was another service that someone else mentioned on the forums that has a similar feature that I do apologize that I don't remember the name to because I have no experience with that service, but it's definitely something to consider if you are setting up an account with an ESP.  Unfortunately, there are also places like Constant Contact that has its own custom markup that you must use to even track links in an email, so believe me when I say I've seen both sides of the spectrum.

Maybe you are looking for