Load new data only when needed

I am trying to reduce the number of unnecessary load request to the server. I have this:
var ds1 = new Spry.Data.XMLDataSet("test2.php", "export/row", {sortOnLoad: "grade_id", sortOrderOnLoad: "ascending", distinctOnLoad: true, useCache: false, loadInterval: 2000});
But I want to update regions associated with this dataset only when i click a button, that way i dont kill the server , what is the best way to do that.

Call ds1.loadData(); when you click the button.

Similar Messages

  • Thoughts on TCP/IP "Load only when needed"

    Hello:
    I've finally gotten DSL and was wondering what others thoughts are about the "Load only when needed" option in TCP/IP? Under dialup, it is best to keep this checked, but with broadband, I have read that you can keep it unchecked.
    Just curious what others do in this situation?
    TIA!

    Gordon,
    You got it in one.
    Used to work a treat for me - I could run an applescript to fire up Outlook Express, send all the mail ready to be sent, which would start up Remote Access, I'd key the password, the mails would be sent and thescript would close OE and close the Remote Access connection. Couldn't use the script to fire up remote access cos it doesn't know when / if the connection has been established successfully.
    This would sometimes be done over my mobile whilst in transit, so every second I was connected was costing me.
    I suppose you could have "Load only when needed" set with broadband, the broadband would still be on and connected, but your Mac would have like an extra firewall until it decided to connect to the internet (but once you're connected you stay connected).

  • Load FI data only for open items

    Hi all
    I want to load FI data only for open items.
    We started off with FI_GL_4 which has STATUSPS(status of FI line item)based on which we have written a start routine to filter out the closed items.
    But for other FI-GL datasources we dont have STATUSPS field.
    Then can we load data directly without applying any restriction on it as we dont have STATUSPS field in it?
    Or is there an other way to find all open items ?
    Please helpout.
    Awaiting replies.
    Harika.

    Hi Harikag,
    when you are loading delta data in 0FI_GL_4, it is NOT the right approach to load only the open items.
    Say for example, you have loaded a record with open status.
    If the status of the record gets changed to 'Closed' in SAP, then this will not flow to BW, because of the filter that you are trying to apply in the data load.
    So the item will continue to remain open in BW, though it is closed in R3.
    hence it is highly recommended to do this filtering at report level.
    Otherwise, you are looking at full load option by dropping data everyday, which will have performance issues in loading.
    Thanks,
    Krishnan

  • Query Governor - Summary Data - Only when not out of date?

    In Oracle Discoverer Desktop edition the user can choose how Summary Data are used:
    1. Always, when available
    2. Only when summary data are not out of date (stale)
    3. Never
    What exactly is the meaning of "Only when summary data are not out of date"?
    In previous versions of Discoverer you had the opportunity to specify how old (in days) summary tables were acceptable to you.
    (By the way: In the Danish translation of Discoverer the word "not" has been omitted, so you have the opportunity to use summary data only when they are out of date :-)
    Best regards
    Torben

    Actually it doesn't matter if you have Applecare or not because Apple simply isn't recognizing this as an issue even though multitudes of people have experienced it. If they don't see it as a problem, then they obviously don't have a solution, and so taking your laptop in through apple care is totally useless.
    I've talked to 3 customer support representatives over the phone and they all said they were 'unaware of the issue' and would not even attempt to help. It's very disappointing.

  • Data Extraction and ODS/Cube loading: New date key field added

    Good morning.
    Your expert advise is required with the following:
    1. A data extract was done previously from a source with a full upload to the ODS and cube. An event is triggered from the source when data is available and then the process chain will first clear all the data in the ODS and cube and then reload, activate etc.
    2. In the ODS, the 'forecast period' field was now moved from data fields to 'Key field' as the user would like to report per period in future. The source will in future only provide the data for a specific period and not all the data as before.
    3) Data must be appended in future.
    4) the current InfoPackage in the ODS is a full upload.
    5) The 'old' data in the ODS and cube must not be deleted as the source cannot provide it again. They will report on the data per forecast period key in future.
    I am not sure what to do in BW as far as the InfoPackages are concerned, loading the data and updating the cube.
    My questions are:
    Q1) How will I ensure that BW will append the data for each forecast period to the ODS and cube in future? What do I check in the InfoPackages?
    Q2) I have now removed the process chain event that used to delete the data in the ODS and cube before reloading it again. Was that the right thing to do?
    Your assistance will be highly appreciated. Thanks
    Cornelius Faurie

    Hi Cornelius,
    Q1) How will I ensure that BW will append the data for each forecast period to the ODS and cube in future? What do I check in the InfoPackages?
    -->> Try to load data into ODS in Overwrite mode full update asbefore(adds new records and changes previous records with latest). Pust delta from this ODS to CUBE.
    If existing ODS loading in addition, introduce one more ODS with same granularity of source and load in Overwrite mode if possible delta or Full and push delta only subsequently.
    Q2) I have now removed the process chain event that used to delete the data in the ODS and cube before reloading it again. Was that the right thing to do?
    --> Yes, It is correct. Otherwise you will loose historic data.
    Hope it Helps
    Srini

  • Logging data only when value of tag increases

    Hello,
    I want to data log only when my tag value is increases another it will not log data in database.
    So how do I do this.
    Thanks & Regard
    Nitin Jain

    A functional global, which will look at the current value, compare it to the previous, and if the new value is greater, signal that fact, and replace the previous value with the new value. You probably want the comparison to have a range, or a threshhold, so that it has to have increased by a certain amount before this all occurs, also are you only concerned in increasing? If you signal were a slow sinusoidal one you would register increases all the way up one side of the waveform, then once the peak was reached no more data would be saved, unless of course the amplitude increased. Do a search on functional globals, Action Engines, to see what I'm refering to as a storage mechanism.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • I get the erroor message 'couldn't load XPCOM' but only when i try to access my Netflix Desktop App . I have tried unsuccessfully to corect this. My OS is Linux

    After the last Firefox update to Firefox 19.0.2, I got the error message "Couldn't load XPCOM" when i attempted to open my Netflix Desktop App, I did not get that error message when starting Firefox only when trying to open Netflix. I thought it had something to do with Netflix so I removed it then reinstalled but the error message continued. I searched and asked questions to no avail. I did a command line search: "locate /xpcom" It came up with a list of files relating to xpcom, only one refering to Firefox itself and they all ended with xpcom.dll. When i did a search in the File folder I found this:
    usr/lib/firefox/libxpcom.so .
    One of the people trying to help told me this:
    "The error is caused by the lack of the path "/usr/lib" in the environment variable LD_LIBRARY_PATH
    Solution
    Add the /usr/lib path to the environment variable in this way:
    export LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH"
    I was informed to do the following:
    "Get to a command line prompt (CLP) and use gedit to add that line to your .bashrc file:
    your.account> gedit .bashrc
    when you're done, just save and exit. Log out and back in, and from then on whenever you log in, it will be in the LD_LIBRARY_PATH for you. You might also want to copy .bashrc to some sort of saved version; I use bashrc.sav."
    No change.
    I have done a reinstallation of Firefox and numerous reinstallation of Netflix all with no change.
    Is there a chance that a complete removal of Firefox followed by a reinstallation correct the problem? i don't want to do that unless it is the only solution.
    Oddsbodkin

    Hello Oddsbodkin,
    It looks like the creator of Netflix Desktop has a site for the project here:
    https://answers.launchpad.net/netflix-desktop/
    I would try posting your question there and see if anyone else has encountered this error and has a solution.
    Cheers, Patrick

  • Spry Validation only when needed

    I'm trying to validate a field only when I need to.
    In the following code, if the register checkbox is checked,
    then the user must fill the uname text field. Otherwise they can
    leave it blank. Unfortunately, this is not working.

    I'm trying to validate a field only when I need to.
    In the following code, if the register checkbox is checked,
    then the user must fill the uname text field. Otherwise they can
    leave it blank. Unfortunately, this is not working.

  • Calling fm in new task only when it is possible.

    I'm calling a fm in a new task, and I need to check it is possible to open a new task before proceeding.
    How can I check the number of open tasks? How can I check the maximum number of tasks allowed?
    Thanks in advance.

    Hi!
    You don't have to check it, it is handled by SAP automatically.
    The only requirement, there has to be at least 3 dialog processes in your SAP system.
    For this check transaction SM50.
    Because startin an FM in a new task is an asyncronous processing, it's result is not important to your program run.
    Regards
    Tamá

  • Backup Assistant says "No New Data" even when new entries made in my Droid X

    I have my Droid X set up for a nightly backup.  Every night it runs & then says "No New Data".  I have intentionally added new contacts to my phone contact list to see if it is backed up & it is not.  Does anyone have any idea what I am missing here?  How is this a backup if it doesn't find & store the new information?

    1. Log into Verizon Backup Assistant
    2. Click on Export to CSV
    3. Save File as (or Rename to) Contacts (it should already be converted to CSV so including .csv is redundant)
    4. Log into Gmail/Google Voice
    5. Click on Contacts
    6. Click on Import
    7. Browse for the Contacts (.csv) file
    8. Click Import
    9. Disable BA by going to Settings / Applications . Manage Applications / All Tab / Sync Service / Clear All
    All contacts on your device should sync to Google if they are not in the BA backup...   Now I do say should because no software is perfect.

  • How to display group data only when the particular group is clicked

    Hi frnds,
    I want to design my report as follows:
    Data is grouped by country, and for each country it is showing details for that country. I need to find out a way to display all group names first.  E.g.
    Argentina
    Aruba
    Australia
    And on click of particular country name it should display its details below it
    e.g.
    -Argentina
         BBB            Mendoza          123456
    +Aruba
    +Australia
    Has anyone done that before??? Is it possible to achieve it through Crystal Report Designer (2008)?? If yes then how???
    A prompt reply would be appriciated as i need this information urgently.
    Thanx.

    Thanx Jehanzeb,
    The sample u suggested did not solve my problem since it is opening the group data in new window.
    My question is - can we show/hide group data by clicking on that particular group (under that group name).
    e.g.
    ->(initial display - only groups)
    + Australia
    + America
    + Bhutan
    ->(on clicking a group)
    + Australia
    \- America
    abc    xyx    12213213    wqe9090
    dsd    dcv     90eur90e    ifjjdioifdoi
    + Bhutan
    In short, I am looking for on-demand display of records grouped by some field and the expansion of data must be done in the same page.
    Edited by: Kuldeep Chitrakar on Aug 6, 2008 12:44 PM
    Edited by: Kuldeep Chitrakar on Aug 6, 2008 12:45 PM
    Edited by: Kuldeep Chitrakar on Aug 6, 2008 12:46 PM

  • Spry - load tab content only when clicked / selected

    I'm considering spry to create a multi-tab page layout.. tabs
    such as 'account', 'balance', 'bin', 'history', etc.
    Each tab's content is dynamic and based on moderately
    demanding DB calls. Is there a way to set Spry such that
    - only the default selected tab's content (on page load) is
    'filled', while the content of other tabs is generated only upon
    user's click?
    - once a tab's content is loaded, not regenerate its dynamic
    content? I think I have an idea how to do this, but doesn't hurt to
    ask.
    thanks.

    quote:
    Originally posted by:
    shanbyrt
    Brandan98,
    I have a little script that sets the default panel whenever I
    click on a tab.
    I know it sounds redundant, but if/when the page reloads
    onclick it reloads the default tab's contents. Just so you know I'm
    not talking about persistent state stuff that V1 addressed in other
    posts. :)
    here's the script that I have that sets default tabs
    <script type="text/javascript">
    function setPanel(pan){
    if (pan == 1){
    var tp2 = new Spry.Widget.TabbedPanels("tp2", {defaultTab:
    0});
    if (pan == 2){
    var tp2 = new Spry.Widget.TabbedPanels("tp2",{defaultTab:
    1}); }
    var tp2 = new Spry.Widget.TabbedPanels("tp2");
    </script>
    It seems to work for me, but may not be the best approach.
    Byron
    Hi Byron,
    If i understand you right, this script sets the current tab
    as default so if the page refreshes it reloads the current tab not
    the first tab? If so this is exactly what i'm after! I'm not hot on
    javascript so could you possibly expand a little on how i would
    implement this in a php page??
    Thanks, Mike :)

  • Report showing data only when preview in Eclipse is executed

    Hi people,
    I intend to do a dynamic report sending two parameters and displaying on browser.
    My application runs under Coldfusion 9 and i'm using Java Reporting Component for report generation and Crystal Reports Design for Eclipse 2.0 for design and Oracle 10g database.
    In first preview it shows the parameter window and after confirmation the report is generated. But when i preview again the report is generated with the older data. It seems that the data in the first execution is cached.
    In Coldfusion execution the report appears in browser when the value on the line parameter.setCurrentValue("","Pessoa",value); is the same used in preview. After change this an generic exception Error loading JDBC driver. Class 'oracle.jdbc.driver.OracleDriver' not found is throwed.
    The Coldfusion code is below.
    <cfscript>
         byteRead                    =     '';
         exportFormat               =     createObject('java','com.crystaldecisions.sdk.occa.report.exportoptions.ReportExportFormat').PDF;
         reportBuffer               =     createObject('java','java.io.ByteArrayOutputStream');
         reportDocument               =     createObject('java','com.crystaldecisions.reports.sdk.ReportClientDocument');
         reportParameter               =     createObject('java','com.crystaldecisions.reports.sdk.ParameterFieldController');
         printOutputController     =     createObject('java','com.crystaldecisions.reports.sdk.PrintOutputController');
         connInfo                    =     createObject('java','com.crystaldecisions.sdk.occa.report.data.ConnectionInfo');
         reportPath                    =     expandPath('report/DividasPessoas.rpt' );
         reportDocument.open(reportPath, 0);
         parameter = reportDocument.getDataDefController().getParameterFieldController();
         parameter.setCurrentValue("","Credor","1");
         parameter.setCurrentValue("","Pessoa","226426");
         printOutputController = reportDocument.getPrintOutputController().export(exportFormat);
         reportDocument.close();
         do{
              byteRead = printOutputController.read();
              reportBuffer.write(byteRead);
         }while( printOutputController.available() NEQ 0 );     
         reportBuffer = reportBuffer.toByteArray();
    </cfscript>
    <cfheader name="content-length" value="#ArrayLen(reportBuffer)#" />
    <cfheader name="content-disposition" value="inline;filename=Report.pdf" />
    <cfcontent type="application/pdf" variable="#reportBuffer#" />
    I googled a lot about the problem, reviewed all Eclipse options to disable the "cache" but everything was unsuccessful.
    I don't know if missing code is causing this or another component that i need to use.
    Any suggestions?
    Thanks everybody for attention and sorry for english errors.
    Ian

    Hi,
    Regarding your query that when you preview a report that has parameters in it, the prompts daillog box comes when you first preview the report.when you again preview you get the old values again.
    For this there is a refresh button, click on refresh, it will again promt you for parameters.
    Thanks
    Prithvi

  • Using spreadsheets to load new data to system

    Ok, I am GREEN as green can be here. I am a manager of a group of users that are having a mainframe system re-built in APEX and we have a requirement to load data in to the new system from both an excel sheet as well as a Janus unit barcode reader. Well, the developers are saying this cant be done and that the REXX and CSP of our old system was more powerful than this new APEX.
    Can we do what our requirement is or are the developers right on and APEX cant support external data loads from these sources?
    TIA,
    CPhilip

    Ok, I am GREEN as green can be here. I am a manager of a group of users that are having a mainframe system re-built in APEX and we have a requirement to load data in to the new system from both an excel sheet as well as a Janus unit barcode reader. Well, the developers are saying this cant be done and that the REXX and CSP of our old system was more powerful than this new APEX.
    Can we do what our requirement is or are the developers right on and APEX cant support external data loads from these sources?
    TIA,
    CPhilip

  • Loading new data in cfwindow

    Here's the problem.
    Have a page that lists a bunch of records. Each record has a
    link to edit the record and I've set the code up to add the record
    ID to the url of the page that will open up in cfwindow:
    <a href="javascript:;"
    onClick="ColdFusion.Window.create('edit', 'Top Priority',
    'edittoppriority.cfm?id={intltcwptoppriorityid}&island=<cfoutput>#intislandid#</cfoutput> ',
    {x:100,y:50,height:550,width:1000,modal:false,closable:true,
    draggable:true,resizable:true,center:true,initshow:true,
    minheight:200,minwidth:200})">Edit</a>
    Code runs fine and when I clik the Edit link, the window
    opens and the record in edittoppriority.cfm is displayed and I can
    update it.
    After I close the cfwindow and go to a new record and click
    the Edit link I get the previous record loaded in cfwindow.
    If I refresh the page and click the the same record, I get
    the information for that record.
    So...How do I get cfwindow to flush out the variables that
    were sent so that it uses the new variables next time a link is
    selected.
    Hoping someone can help me out before I have to move on and
    go with the old-fashined pop-up window.
    Thanks

    That is one way to fix it, but you will end up with a bunch
    of cfwindows loaded in memory.
    Another way to do it is using the javascript functions
    ColdFusion.navigate() to reload another page in the same window and
    ColdFusion.Window.show() and ColdFusion.Window.Hide() to open and
    close the window.

Maybe you are looking for

  • Error when launching External WBT

    Hello experts, Frequently, when launching Ext WBT courses-- we receive the following error: Server Response External LMS    External Training Provider  9000 Service ID  01 External Course ID  98406 Status  FAILURE The issue seems to be sporadic as of

  • Lots of permissions always wrong

    Every time i reboot my PPC G5 and verify permissions, this is what I get: Verify permissions for “Macintosh HD” Determining correct file permissions. Permissions differ on ./Library/Audio/MIDI Devices/Generic/Images/AnalogKeyboard.tiff, should be -rw

  • Where can I buy the mSATA adapter for GT70?

    I have a GT70 0NC-494 which came with only a 750GB hard drive. I bought a SATA 3 SSD and i'm having lots of issues with it (like underspeed and unstability), so I want to install a super-raid adapter instead of a single SSD. thanks a lot

  • How to start to connect a database to my program?

    Dear People, I have been studying Collection classes in Java and now would like to learn how to permanently store data in a database. Up until now I have been writing programs where the data disappears after I turn my computer off. I downloaded mySQL

  • FMS server has be be refreshed every few days

    Hi, I have an issue lately where the FMS 3.5 server has to be refreshed via the Administration Console because the videos stop streaming. This has to be done every 2 - 3 days. If I restart the service it does not help. I have to go into the Admin Con