Dataset not updating automatically

Hello,
I have a graph that is dynamic.  I already have a variable set up and also a dataset.  This file is saved.
Basically, I am trying to write some code that will open the document, import the variable file (with the new data from the xml file) and then update the graph.
Using the code below, the file opens and also the import of the variables is succesful.  However, the graph is not updating automatically.  I need to actually select the value from the dropdown in the variables window.  Can anyone please tell me what I am doing wrong.
   // Open the file and import the datasets and variables from xml file
  var docRef = open(new File(aiChartFilePath));
   alert("Importing the datasets.");
   docRef.importVariables(new File(xmlFilePath));
var ds1 = docRef.dataSets.getByName("Chart1Variable");
alert(ds1); //this gives the "DataSet Chart1Variable"
docRef.activeDataset = ds1;
ds1.display();
redraw();
rs = "OK";
Thanks in advance for your help.

this should work just fine ... put 2 datasets in the same file:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN"    "http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd" [
   <!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
   <!ENTITY ns_vars "http://ns.adobe.com/Variables/1.0/">
   <!ENTITY ns_imrep "http://ns.adobe.com/ImageReplacement/1.0/">
   <!ENTITY ns_custom "http://ns.adobe.com/GenericCustomNamespace/1.0/">
   <!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
<!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
]>
<svg>
<variableSets  xmlns="&ns_vars;">
   <variableSet  varSetName="binding1" locked="none">
      <variables>
         <variable  varName="Variable1" trait="graphdata" category="&ns_graphs;"></variable>
      </variables>
      <v:sampleDataSets  xmlns="&ns_custom;" xmlns:v="&ns_vars;">
         <v:sampleDataSet  dataSetName="Capella_1">
            <Variable1>
               <data  numDataColumns="2">
                  <propertyRow  key="name">
                     <value></value>
                     <value>ClassA</value>
                     <value>ClassB</value>
                  </propertyRow>
                  <values>
                     <row>
                        <value  key="name">RowA</value>
                        <value>1</value>
                        <value>4</value>
                     </row>
                     <row>
                        <value  key="name">RowB</value>
                        <value>6</value>
                        <value>2</value>
                     </row>
                     <row>
                        <value  key="name">RowC</value>
                        <value>8</value>
                        <value>5</value>
                     </row>
                  </values>
               </data>
            </Variable1>
         </v:sampleDataSet>
         <v:sampleDataSet  dataSetName="UPD">
            <Variable1>
               <data  numDataColumns="2">
                  <propertyRow  key="name">
                     <value></value>
                     <value>ClassA</value>
                     <value>ClassB</value>
                  </propertyRow>
                  <values>
                     <row>
                        <value  key="name">RowA</value>
                        <value>1</value>
                        <value>4</value>
                     </row>
                     <row>
                        <value  key="name">RowB</value>
                        <value>6</value>
                        <value>2</value>
                     </row>
                     <row>
                        <value  key="name">RowC</value>
                        <value>8</value>
                        <value>5</value>
                     </row>
                  </values>
               </data>
            </Variable1>
         </v:sampleDataSet>
      </v:sampleDataSets>
   </variableSet>
</variableSets>
</svg>
Javascript code:
var DBHelper = {
                mainFs: null,
                loadFile: function(fileOrFilename, isAI) {
                            var _fl = (fileOrFilename instanceof "File") ? fileOrFilename : new File(fileOrFilename);
                            if(isAI) { myDoc = app.open(_fl);}                            
                            else {
                                myDoc.importVariables(_fl);
                                this.mainFs = app.activeDocument.path.fullName + "/" + app.activeDocument.name;
                                myDoc.save();
                                myDoc.close();
                                this.loadFile(this.mainFs,true);                               
                displaySet: function(setName) {
                            app.activeDocument.activeDataset = myDoc.dataSets.getByName(setName);
                            app.activeDocument.activeDataset.display();
DBHelper.loadFile("/d/_temp/Capella_Chart_1.ai", true);
DBHelper.loadFile("/d/_temp/variables.xml",false);
DBHelper.displaySet("Capella_1");
cheers;

Similar Messages

  • Time stamp does not update automatically

    Hi, All. I want include the time stamp (yyyy-mo-dd-min-sec) in the file name. However, the value of the time stamp does not update automatically/synchronizes with the computer clock at each new run. I need to do it manually with the right click and update the time to the current.
    How can I solve this? Thanks a lot in advance.

    What does this have to do with NI counter/timer hardware?
    What language are you using and what function are you using to get a timestamp? If the language is LabVIEW, then all you need is Get Date/Time in Seconds. If you are using a front panel Time Stamp control, then you are using the incorrect function.

  • HT5181 iPhoto for iOS: Photos in iphoto's Camera Roll folder are not updated automatically with edits from other programs

    How can I solve the problem în the subject?

    How can I solve the problem în the subject?
    What exactly are you trying to do?
    Have you been editing photos in iPhoto and want to add them to your camera rool or photo stream?
    Then do exactly as the article describes, that you lonked to:
    iPhoto for iOS: Photos in Camera Roll are not updated automatically with edits from iPhoto
    Use iPhoto's Sharing to save a copy of the edited photo to the Caera Roll, or explain on mor e detail, what you want to do.
    Regards
    Léonie

  • Dates in Events do not update automatically

    After iPhoto made events out of my photo library during conversion from from iPhoto06, there are often photos from several days in one "event". I can live with that most of the time, but in several instances I split events. Unfortunately, the dates of the original, unsplit event do not update automatically. This often results in a wrong order of events. If, e.g. I take out pictures from August 10th from an event with photo dates August 10th to August 13th, the original event still shows the starting date of August 10th, and orders the event between August 9th and August 11th.
    The expected behaviour would be that the starting date of the modified event would change automatically to reflect the changes. This does not occur, and, worse, there is not even a possibility to change those dates manually.
    Am I missing something important here, or is this an VERY annoying bug in iPhoto08?

    I agree - but this is a user forum and we can NOT fix anything - only try to help either follow the correct procedures of (as in this case) identify a work around to use until Apple fixes the problem.
    As far as I know the work around of creating a new event form one photo and moving the remaining photos to the new event is the ONLY way arround this problem right now.
    Using the work around will accomplish what you need even though it should not be necessary. Complaining about on this forum will not accomplish anything - compalining directly to Apple might -- iPhoto menu ==> Provide iPhoto Feedback.
    Larry Nebel
    PS - and reading the thread prior to get the work around prior to adding "I have the same problem" would actually be a pretty good idea too!

  • Passbook does not update automatically

    passbook not updating automatically i have to go to each app and manually add updates.

    The only updates are those of amounts for Starbucks, since that is the only one I can comment on. Is that what you are referring to, is the amount, or the number of cards? You didn't answer my other question. If you update the amount in your card, either by purchase to decrease, or reloading to increase, it is those amounts that are not updating? Is this correct? If you purchase a new card, it will not automatically be added to Passbook, you have to manually add it. Since I don't have the Cub foods app, can we just concentrate on Starbucks, since I have it and use it regularly. I will be able to understand what you are doing and maybe not doing that way. To be honest, at this point, I'm still not sure exactly what you are doing.

  • RG1 is not Updating Automatically

    Dear All Salute !!
    RG1 is not updating automatically in the system due to data migration on cutoff date since February; they are maintaining parallel in the legacy system (in Excel or any other), though here is updated project from 5.0 to 6.0.
    I am unable to understand, how the system is going on in the lacking of this.
    From Accounts Department side: Still Cenvat duty posting & statement (57AE) are done manually by dispatch/stores department. As per ECC6, system generated report should be available to the end users to avoid duplicate work & mistake.
    As per observation from SD side _no Opening Balance is uploaded while data migration_.
    I have got information through SDN about table J_2IRG1BAL but I am unaware of using this.
    Please provide me complete solution for this to do the needful instead of OSS Notes. 
    Rgds
    Srivastav
    +91-9973504950

    Adding to Komals reply,
    Please go through the sap note 951955 and check below comments:
    Please check whether you have maintained opening balances for
    all RG1 material in table J_2IRG1BAL. If not, please maintain opening
    balances for all RG1 material in J_2IRG1BAL for the date from which
    you want to run the RG1 report.
    Thanks
    Murtuza

  • Statistical delivery date is not  updating automatically or by default

    When creating  the PO delivery date of a item in PO,is picking,but statistical delivery date is not  updating automatically or by default. I am not getting this automatically .Its need  for vendor evaluation.

    Hi,
    Check on it:-
    Statistical Delivery date vs Confirmed Delivery date
    pherasath

  • Hi, My iPad has iOS 5.1.1 and is not updating automatically. Yes I reconfigured as it came yesterday

    Hi, My iPad has iOS 5.1.1 and is not updating automatically. Yes I reconfigured as it came yesterday

    I thought about that, but where he states that "Yes I reconfigured as it came yesterday," I assumed that this was a new iPad 2 that he just received yesterday. The tagline shows iPad 2, FWIW.
    However, your assumption may be probably is correct.

  • HT204053 My devices, iPad and iPhone, are not updating automatically with pages.  Any suggestions. They use to about one week ago.

    My devices, iPad and iPhone, are not updating automatically with pages.  Any suggestions. They use to update beautifully about one week ago.  I took my MacBook Pro to the Apple store for software issues, and I been having updating issues.  Little help please.....

    Welcome to the Apple community.
    Check all your devices still have documents and data syncing turned on in settings > iCloud and that iCloud is enabled at settings > Pages. If this doesn't help, reset documents & Data from a computer at...
    iCloud.com

  • ITunes: podcasts are not updating automatically

    Hi,
    My podcasts are not updating automatically in iTunes as they as they should.
    My Mac and iTunes are running 24/7, so iTunes it always running. The update interval of the podcast is set to hourly, latest iTunes, latest Mac OS X.
    The podcast actually does update if I re-start iTunes or, if I manually update the podcasts (there is always the latest 1 or 2 daily episodes of say NBC nightly news available, but not yet downloaded)... (but this is not a great solution as I am using iTunes through Plex, the Mac is mor a TV/Mediacenter for my family; Plex can access playlists and podcasts in iTunes, but obviously it cannot trigger iTunes to update, so I have to go out of Plex to update iTunes, very annoying)
    How can I ge my my podcasts to be downloaded automatically by iTunes.
    Thank you for any help!

    Here is a screenshot of the phenomenon/problem... NBC Nightly News is not updated, even both the computer and iTunes are running constanly. Once I click update podcast, the podcast updates, so there is an update available.

  • HT4972 I have done all the steps required to update IOS5 to my iPhone. It did not update automatically.  It just updates to 4.2.1 which says is the latest software for my iPhone. Is there any other way to update my iPhone to IOS5?

    I have done all the steps required to update IOS5 to my iPhone. It did not update automatically.  It just updates to 4.2.1 which says is the latest software for my iPhone. Is there any other way to update my iPhone to IOS5?

    I checked all the posts regarding this, it seems I have a 3G. Only found out now how to check my model. Thanks for your reply.

  • Bug: date inserted in cell does not update automatically

    Can't find where to report a bug in Numbers. When I insert a date in a cell and set it to update automatically, it does not update. Have to update it manually daily. Seems there used to be a way to report bugs...
    Anyone know how to do that now?

    Feature already reported.
    +The Numbers User Guide states:+
    +To add and format the date and time, place the insertion point where you want the value to appear, and then choose Insert > Date & Time.+
    +To change the date and time format, Control-click the date and time value, choose Edit Date & Time, and then choose a date and time format from the pop-up menu. If you want the spreadsheet to always show the current date and time, select “Automatically update on open.”+
    +Alas, under 10.4.11 *(and now under 10.6.1)* this feature doesn't apply.+
    +The date remains as it was when we entered it.+
    +Happily we have a simple workaround:+
    +we may use the formula =TODAY()+
    +But a feature wihch doesn't behave as described may be called a buggy one. Isn't it ?+
    As long as the feature doesn't behave as described, use the given workaround.
    Yvan KOENIG (VALLAURIS, France) samedi 12 septembre 2009 16:50:38

  • Firefox Sync does not update automatically when I add a new bookmark.

    I use one desktop and one notebook at the same time. Firefox Sync does not update bookmarks between my desktop and notebook when I add a new bookmark from one device or the other. Firefox Sync only updates when I manually sync my data from each device. When I used Google Chrome, the Sync feature updated my bookmarks almost instantly. Is there any way I can make Firefox automatically sync whenever I update my bookmark?

    Your imported bookmarks from IE should all be in one folder named "From Internet Explorer". The imported Bookmarks are kept separate for easier identification by the user. You can move them to other folders outside of that folder if you wish; you can also delete any duplicates that you may have placed into Firefox Bookmarks/folders before the import.
    *See --> [https://support.mozilla.com/en-US/kb/Importing%20favorites%20and%20other%20data%20from%20Internet%20Explorer Importing favorites and other data from Internet Explorer]
    For other Bookmarks info and links:
    *See --> [https://support.mozilla.com/en-US/kb/how-do-i-use-bookmarks How do I use bookmarks?]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • E5 music player library not updating automatically

    I have an E5. Earlier when I downloaded new songs on my phone and opened the music player, it automatically searched for new tracks and updated itself. Now I dont know what has happened it doesnt get updated automatically and I have to update it manually. Can I get a fix for it? Please help.

    It is normal for the music player not to always update automatically, whenever adding music, open player and select options>refresh Music Player !
    Also have a read of this :
    /t5/Nseries-and-S60-Smartphones/Album-art-in-Music-Player/ta-p/948321
    /t5/Nseries-and-S60-Smartphones/Album-art-in-Music-Player/ta-p/948321
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

  • In Student File:Status Tab Not Updating Automatically

    Hi all
    When I create a Student, and Create Admission application and create admission,  Every time status should be updated automatically. In one system it is updating Correctly, But in Other system it is not updating.
    In the other system it is updating only when I create student with the status 'Account Data Not Updated'. Later Statuses like (Admitted Applicant: ADMA, Applicant: ADMU,Attending: CS01,Student: CS03) are not updating.
    Can any one tell me where I have to Configure it.
    I think because of it the Student Header Status is also not displaying.
    My developer debugged and found that, As there are no Active Status Indicators, Student Header Status is coming empty.
    Also he found that the Status Infotype 1728 is Empty in one System and filled in other System.
    I have checked both the systems, But I didn't find any difference.
    I have been struggling for past One week for the same.
    Please do the Helpful.
    Thanks and Regards
    Avinash.
    I

    Hi Vinod
    Thanks for help.
    I have activated the BADI HRPIQ00_SET_STATIND for filter ADO1(Create Adm Appl) and AD05(Execute Adm).
    But that BADI is not triggering when I create admission application or when Creating Admission.
    The Status tab is still not updating.
    As per my knowledge when ever we create admission application, or create admission like things, the status tab in student file updates automatically depending on some configuration. Because in the other system (which i told in my earlier Question)in which statuses are updating correctly,there is no active Implementation of the BADI HRPIQ00_SET_STATIND,but still Statuses in this System are Updating Correctly.
    As of now I have Implemented the BADI HRPIQ00_SET_STATIND with filter AD01 AD05. I didnt write any code in it.
    When I put a Break point in the method SET_STATIND of the active Implemented BADI, that break point is not triggering when i create adm appl and when creating admission. So can you tell me how to proceed further to write any code in that.
    Are there any standard templates of code available to activate and deactivate the statuses in the method SET_STATIND.
    Or any other Config issues because of which the updation of statuses are effecting.
    Issue Reg: Status Line
    I have seen the BADI HRPIQ00_ST_HD_HS and Implemented the method BUILD_STATUS_LINE for the Custom status.
    As you told to use standard Implementation to get the status line, Can you tell me where i could find the standard Implementation to build the status line.
    Also to write a custom program to build the status line, Infotype for stauses 1728 is not updating. So I cannot able to fetch the data of statuses from the Infotypes.
    Thanks in advance.
    Regards
    Avinash
    Edited by: Avinash on Dec 4, 2009 8:03 AM

Maybe you are looking for

  • Help Needed in using the FM-URGENT

    Hi ALL, Can anybody throw some light on how the following FM's are used , a sample program if any . RKE_CREATE_CO_ITEM_PLANNING RKE_POST_CO_ITEM_PLANNING. Actually I could not come to any conclusion on using one of them for posting my Planning data a

  • NEED HELP Search with SAF/TREX

    Hello Gurus, I have to work on standard screen in that they are fetching database and extracting the data by using CL_CRM_EI_IIA_QUERY_UI class. In this calss they are using SET_QUERY, GET_QUERY, GET_TEXT_QUERY, SET_TEXT_QUERY,CREATE_TEXT_EDITOR meth

  • Help us improve the look and feel of our community

    The BTCare Community Team needs your help! We want to improve the layout of the forum and would like to get your thoughts and feedback. Please complete this short questionnaire (it's very short, promise) to share your ideas on how we can improve the

  • How to set the default zoom of browser to lowervalue(say 50% of present zoom) through prefs.js?

    Hi, I want to reduce the browser zoom level to a lower value so that i could see the whole of webpage through prefs.js as its for a test automation. I just wanted to see whole page on the browser. Can any help me with what this can be achieved?

  • Slide duration too short to read long captions

    Newbie here. iWeb 1.1.2. How can I change the length of time for each slide? Also can I force a return on captions that run the width of screen? PowerBookG4   Mac OS X (10.4.8)