Assigning a Data Source to a Chart via JavaScript

Dear all,
Is it possible to assign a Data Source to a Chart via coding ?
something like :
CHART_1.setDataSource ...
Many thanks
Hans

I ran into the same problem.  You can't dynamically switch DataSources for a chart, however, you can re-assign a DataSource to a different query.
I have a chart assigned to DS_1:
On startup, I need to check a flag, and use a different query based on the value of the flag.
Since I can't dynamically switch the DataSource for the chart, I simply switch the query that feeds the DataSource like this:
I hope this helps.

Similar Messages

  • 2 data sources in same chart in Visual Composer

    Hoping you can answer a question for me.
    Do you know if there is a way in Visual Composer to combine the output of 2 data sources into the same chart or table?
    Here is an example of what I am after.
    Inside BW, we currently have sales history for the company (i.e. monthly sales numbers). We can use a BW query as data source for this data.
    Now we have found some interesting web services that provide 'market' type data,( i.e. some economic indicator) that we'd like to corrolate to these sales. We'd like to also chart the monthly value of this external indicator on same chart. I can use an external web service as a data source for this data. Howveer, VC seems to only allow me to send  the output of this service to a separate chart/table. This is not ideal. I'd rather be able to incorprate in same chart.
    If this is not possble, can Web Application designer consume web services? If so, I'd be fine with doing whole application with this tool.

    Hi Brad,
    Technically it is possible to combine to data souces using COMBINE, UNION operators. So the resulting table contains columns of two data souces.
    You can use this resluting table to create a chart.
    I have not checked this uisng web services. But it should be possible.
    Thanks,
    Venkata

  • MS Excel as data source - Cannot create chart views

    Hi,
    I created a model with sql server and excel as the data sources. Most of the numerical data is coming from excel.
    In Answers, I created a table view and it showed me all the data (Eg months, budget amount, plan amount, actuals amount ). But when I tried to create a chart view, it is giving me an error like it requires atleast one measure to create or draw a chart. I am taking Month on x -axis ad all the other columns like budget, plan , actual on y axis.
    Not sure y its behaving like this
    Did anyone encoured similar issue?
    Please help...
    Thanks
    Radha

    Events can be used in CE to trigger one report after another.
    In CMC, define a new event, Schedule type, based on success.  Then schedule your first report, setting Events to Trigger Upon Completion to include this new event.  Sechedule your second report to run at the same time, except select the new event in the Events to Wait For section.  The second report will wait until the first report completes successfully before starting to execute.
    Another possible way is to use Object Packages.  However, if such a package is run on a report server that allows multiple reports to run simultaneously, I think the multiple reports in the package will run at the same time.  (This would have to be verified, as I am not positive.)  But if the report server that the object package is scheduled to run under was single threaded, they would probably execute in order.
    HTH,
    Carl

  • To assign text data source

    Hi
    I have a scenario where I have to extract the text for a customised infoobject like zrsk_cat which is similar to the standard info-object 0risk_categ. How can i use the data source which is used to extract the text of 0risk_categ to extract the text of Zrsk_cat.
    Also the infoobject 0risk_categ is compunded to 0c_ctr_area(credit control area). does that mean we need to make our (zrsk_cat) compounded to 0c_ctr_area for us to extract the text even though we do need this in any other way.
    Please advise.
    Thanks in advance.
    kate.

    Hi BWer
    Thanks for the answer.
    Thats what I have done but when I do assign data source that data source(0risk_categ) is not found as I think its already been assigned to the std infoobject 0risk_categ and I think we cannot use the same data source to assign to two data targets.
    What can I do to make use of this text data source to upload the text to the my new info-object.DO i need to do flexible update....and is it possible for text ?
    Thanks in advance.
    Kate
    Message was edited by: Kate Smith

  • One data source and assign multiple data target in BI?

    Hi all,
    Is it  possible is to assign one data source to multiple data targets in BI? Not like  in BW 3.X ; one data source can assign only one Info source. I am bit confused about it, let me know about this ?
    Regards.
    hari

    Okay, I must have misunderstood your message, I was thinking BI 7 and data targets .. like cubes and DSO's.
    In 3.x, assign your datasource to a single infosource.  Then assign that infosource to multiple data targets by creating update rules and assigning your infosource to each/all of them.
    In this way, you shouldn't need multiple infosources per datasource unless you have a special situation that calls for it.
    Brian

  • Multiple data sources for a (advanced)datagrid?

    Hi all,
    I have two arrays of objects coming in from two different sources keyed on a single column called "id". They have the exact same column structure. I want to show these in a grouped column structure in advanced data grid. The question is can I do that without manually merging the two arrays?
    Concrete example:
    Array1: [{id:1, name:"Cooper", zip:"94536"},
                 {id:2, name:"Corolla", zip:"94404"}]
    Array2: [{id:1, name:"One", zip:"94555"},
                 {id:2, name:"Camry", zip:"94403"}]
    This will look like:
    Id
    Name
    Zip
    Source1
    Source2
    Source1
    Source2
    1
    Cooper
    One
    94536
    94555
    2
    Corolla
    Camry
    94404
    94403
    I would like to do this without creating an array like:
    [{id:1, name1:"Cooper", name2:"One", zip1:"94536", zip2:"94555"},
    {id:1, name1:"Corolla", name2:"Camry", zip1:"94404", zip2:"94403"}]
    Charts are quite good at this since you can assign different data sources to different series and the axis defines the key on which the data will be merged. However, I could not find anything similar for tables.
    Any pointers?
    Thanks so much!

    Come to think of it, is this even possible? How does a datagrid use its dataField parameter to lookup data? I am guessing data_array[row_index][col.dataField] would determine the value of a single cell at row_index and col. If so, my naive approach would require me to override the bracket operator so that the appropriate value is returned..
    e.g. when a simple array of objects is used, you have [{name:John, lastname:Smith}], datagridcolumns dataField is then set to "name". Now I will have two separate arrays:
    arr1: [{name:John, lastname:Smith}]
    arr2: [{name:Smith, lastname:John}]
    mergedarray will have a reference to both of them. Then when getKey("name", 1) is called, it will return a special key which can be used to access the name property from array 1, something like "name1". If I cannot override the bracket operator, mergedarray[0][name1] will return nothing.
    I remember reading somewhere that this kind of override is not possible. Any ideas?

  • Creation of the export data source failed

    trying to activate ods but getting this message that the creation of the export data source failed.
    and it also gives message that RFC Connection to source system is damaged===> no metadata upload
    Please can someone help me with this.
    Thanks in advance.
    Michelle

    Hi,
    Check ur source system connection. by going to RSA1-> Source System-> right click and then select check.
    U will get the info about the source system Connection. IF RFC has failed then better be in touch with ur basis.
    Or try restoring ur source system connection by
    Source system-> Restore.
    Its sets all the default conenctions b/n ur systems.
    Once again check the connection now. if it says ok.. then try do the export data source and then assign the data source to info source and then maintain the Update rules..
    Hope this helps-
    Regards-
    MM

  • Data extraction from transctional data source

    Hi all,
             In bw 3.5 I am fetching data from r3 , vendor evolution(2LIS_02_S013) is name of that data source it is   transaction type data source at that time  data source(2LIS_02_S013) successfully replicate in bw
    after it i make infoarea and its charactics and attribute and then create application component and create infosource but when i assign that data source to my infosource it can't show in pop-up or say i am unable to assign it
    can anybody tel me why i am unable to assign transactional data source to my infosource

    Ok what does it say when you try to assign InfoSource? Can you tell me more.
    In the InfoSource Just on top of Transfer Structure there should be Assign DS Button click on this and assign DataSource or else Right Click on the DS and Assign InfoSource.(If you have IS created)
    Message was edited by:
            SV S

  • External data sources and ODBC

    Does Numbers 2009 support connecting to external data sources such as MySQL via ODBC?

    NO.
    Yvan KOENIG (VALLAURIS, France) jeudi 10 février 2011 17:31:31

  • Multiple data sources to open hub destination ??

    Hi,
            Is it possible to assign multiple data sources to open hub destination?
    At present we are FTP'ing a file to users. Users need one more field added to this file. The information for this field belongs to another ODS. I  checked the infospoke but it does not accept multiple data sources.
    Any ideas?
    Thanks!
    Edited by: BI Quest on Sep 4, 2008 8:12 PM

    You can create multiple transformations for open hub destination. Create destination of open hub destination to be file on application server and then use transfer mechanism to transfer files to desired destination.
    Regards,
    Pravin Karkhanis.

  • Two data sources to One Infosource?

    HI GURUS
    Can we connect Two data sources to One Infosource?
    Regards
    Durai

    Hi Expert !
    Thanks
    If we assigned two data sources to an Infosource, all those fields will be availabe in the transfer rule maintanence screen that we can choose and assign to Infosource infoobjects.
    Am I correct?
    Regards
    Durai

  • Data Source Replication

    Dear Friends, Happy New Year.
    Please give me solution for the following problem.
    I have APO System and BW system.
    In BW, I have ODS and Cube, so Cube is getting data from ODS. I did some changes in (Transferrules and Update rules)Development, Now I want to transport it to Quality. Now tell me do I need to collect 0<ODS> datasource,this will act as a Datasource for Cube and do I need to Replicate it in Qualiy and Production?.
    Thanks

    Hi Ganga,
    no need to transport the data sources.all the data sources are available to every system landscape.so just transport the transfer and update rules and every routine including in that if any,and transport the cube and ods's and just assign the data sources in the production system itself check with your team or with your basis guys they will tell you if there is any change in the naming convention of the data source.normally its directly available to all the 3 systems.so just create the data package and load the data directly.
    Hope everything is clear.
    assign points if it helps...
    Regards,
    ashok

  • Can SQL*Plus connect via ODBC to NON-Oracle data source?????

    I am struggling to understand something. I downloaded Oracle instance client, SQL*Plus and ODBC components with the hopes of being able to connect via SQL*Plus to a non-Oracle/ODBC compliant database.
    Is this possible? Or is SQL*Plus ability to connect via ODBC only to an Oracle data source??
    Thanks...

    sqlplus only connects to oracle. you can use the odbc driver from instant client to allow other applications to access oracle via odbc (e.g. excel). if you need to connect to non-oracle odbc database (ms-access, foxpro, etc.) you need odbc driver for those sources.
    you can use sqldeveloper to connect to oracle and non-oracle databases. check otn product info for sqldeveloper for more details.

  • Wrong Package assigned to a data source in R/3

    Hi,
    I was activating the data source in R/3 and assigned a wrong package (Local Object) Instead of specific project package ZBWPROJECT to it.  Now i would like to know the process how can i change it back with step by step procedure.
    Could any one give the inputs how i can overcome from this incident.
    Regards,
    Venkat

    HI Zoltan Both,
    Thanks for quick response. I installed data source
    This package was assigned in R/3 system and now if we go and try in BI transport connection will it work.
    Regards,
    Venkat

  • For a function module how can I find its assigned data source name?

    Hi BW Gurus,
    If i know the data source name then the  assigned fn. module/Table/Infoset I could find from RSO2. But for function module How do I know its assigned data source name?
    Thanks a lot for the response.
    Regards
    Ven

    Hi Ram,
    In SE16, enter the table name as ROOSOURCE and in contents choose field EXTRACTOR for selection and enter the name of the function module.
    It will return the list of datasources where the function module has been used.
    Best Regards,
    Ankit Agrawal

Maybe you are looking for