SAP HANA XS and SAPUI5 - how to live update a chart?

Hi all,
we are developing with SAP HANA Developer Edition and SAPUI5.
We read data with an XSJS File out of the Database ( i read the recent 40 datasets of the table with an SQL statement and LIMIT).
This is the code in my controller.js which calls the XSJS service that reads the data out of HANA DB.
loadChart: function() {
        var model = new sap.ui.model.json.JSONModel();
        var aUrl = '../../../dev/data_HANAXS/services/readdata.xsjs?cmd=loadChart';
        jQuery.ajax({
            url: aUrl,
            method: 'GET',
            dataType: 'json',
            success: function(data) {
                model.setData({modelData : data});
        return model;
Then in my view.js i set the model for the line chart and i can see my data.
var model = oController.loadChart();
linechart.setModel(model);   
What i want to do now is to live update the chart in regular time intervals, i am using SETINTERVAL ( you can also use jQuery.sap.delayedCall ) for that:
function updateChart() {
            var model = oController.loadChart();
            linechart.setModel(model);
setInterval(updateChart, 5000); // every 5 seconds refresh the chart
And this works fine BUT the COMPLETE CHART (including x-axis and y-axis) is drawn again every 5 seconds , what i want to know is how can i realize it so that ONLY the DATA LINE is drawn again every 5 seconds?
It would be great if anyone could help me regarding this issue?
It must be possible to do a live update of a chart especially for cases where you get steadily new data that has to be visualized.
Regards & Thanks,
Andreas

Hi Micha,
yes i tried that some days before but it did not work. After your message here, i tried it again but same result, what i get after some seconds is "No Data". Moreover i am not quite sure how to set the data with model.setData().
What i do is the following, maybe you know if there is a mistake: this is the code for updating the chart in the controller.js:
update: function(oController) {
        var model = new sap.ui.model.json.JSONModel();
        var aUrl = '../../../xxxx.xsjs?cmd=loadChart';
        jQuery.ajax({
            url: aUrl,
            method: 'GET',
            dataType: 'json',
            success: function(data) {
                model.setData({modelData : data});
                oController.onUpdateCall(model, oController);
onUpdateCall: function (updateJSONModel, oController) {
        oController.updateModel = updateJSONModel;
        var linechart = sap.ui.getCore().byId("linechart");
        var oModel = linechart.getModel();
        var oUpdateData = oController.updateModel.getData();
        oModel.setData(oUpdateData);
I use the same cmd parameter and i call the same xs service method "loadChart" (which always returns the newest datasets - data is continuosly pushed in our HANA DB) that initially loads the data for the chart.
I get no error messages in my browser.
When i do oController.update(oController) in my view.js after 5 seconds, i get "No Data" but analysing the data in browser shows me that the xs service returns the data, so data is definitely there.
Regards & Thanks,
Andreas

Similar Messages

  • Benefits/ Limitations when we use  SAP HANA Extended and Standard products.

    Hi All,
    We are going to purchase SAP HANA media. Please let me know what are the benefits/ limitations when we use  SAP HANA Extended and Standard products.
    Thanks in Advance,
    Vishall

    Hello,
    please check Master Guide (page 9 - chapter 1.6 Software Components)
    https://service.sap.com/~sapidb/011000358700000604552011
    There you can find edition comparison and detailed description.
    To extract the short summary:
    Platform edition = SAP HANA Database + Studio + Client + Host Agent + Information Composer
    Enterprise edition = (Platform edition) + LT Replication Add-on (SLT) + LT Replication Server (SLT) + SAP BO Data Services
    Enterprise extended edition = (Enterprise edition) + Sybase Adaptive Server Enterprise + Sybase Replication Server + Sybase Replication Server Agent + SAP HANA load controller
    It depends on what licenses you already have and how do you intends to use HANA.
    Platform edition = ETL via BO Data Services (you already have license for BO Data Services)
    Enterprise edition = SLT and/or BO Data Services (including licenses)
    Enterprise extended edition = all replication technologies
    Tomas

  • SAP HANA : differences and costs

    Dear All,
    HANA is designed to enable faster ways to process data from business applications in real time, without impacting the underlying source system. I believe HANA will bring new and interesting opportunities to SAP. Which are the most important technical differences between HANA, BWA and BOEA? Which are the cost differences?
    Regards,
    Bob

    Bob,
    Here are my thoughts:
    HANA: Here's my recommendation for the best in-class next-generation BI solution. Deploy HANA as a standlone server with two logical system partitions. 1st partition for standalone HANA modeling and 2nd partition to host HANA DB for BW 7.3. This way you get to exploit HANA performance for both SAP BW system as a database and also use the HANA power for standalone non-BW (ECC and flat-file) application that need good performance.
      BWA: I would not recommend a BWA solution for a new BW implementation. Given the fact that SAP has announced recently that BWA 7.3 will be the last release for BWA. However, if there is a critical BW application in production that needs better performance, then BWA will be a quick fix solution. The cost difference between an SAP HANA solution and a BWA solution is narrowing down quickly. I do not want to go into details of cost.
    BOEA (aka BOE Accelerator Version): Guys, there is some confusion here. BOEA does not support BWA acceleration for non-BW data source data. Meaning that if you are using BOEA (accelerated version) - you can load non-SAP and Non-BW data but can not accelerate the data using BWA unless the data is put in an SAP BW info provider (cubes,etc..). Only BW info providers in a BOEA solution can exploit BWA acceleration. Other data (non-SAP and Non-BW ) can only exploit on indexing capability of BOE internally but not the BWA. BWA portion of BOEA is specific to BW in the backend.
    Also, please read my executive summary on SAP HANA @ http://www.sendspace.com/filegroup/u1AO5NidaMTYSD49JoHsjg
    Regards,
    Rama

  • Where to download SAP HANA Studio and Client files

    Hello all,
    I am trying to learn SAP HANA and started watching the tutorial videos from SAP HANA Academy.  Would it be possible for me to download the SAP HANA Studio and Client files so I can practice development on my PC?  The video, HANA Academy - Installing the SAP HANA Studio and SAP HANA Client tools - YouTube, points to an old SAP Service Marketplace interface and I am unable to follow the instructions on where to get these files.
    Thanks in advance.
    Doods

    Doods,
    you can download HANA Client, Studio and Driver at:
    SAP | HANA Developer Edition
    cheers
    m./

  • HT201269 my pc crashed and i no longer have the music i used to have, how can i sync my ipod  w/ out loosing  all of my  music.  and also how do i update  my ipod only has  a partial version of ios4

    My pc crashed and i no longer have the music i used to have, how can i sync my ipod  w/ out loosing  all of my  music.  and also how do i update  my ipod only has  a partial version of ios4

    It has always been very basic to always maintain a backup copy of your computer for this very occasion.  USe your backup copy to put everything on the new computer, then sync.

  • SAP HANA One and Predictive Analysis Desktop - Time Series Algorithms

    I have been working on a Proof-of-Concept project linking the SAP Predictive Analysis Desktop application to the SAP HANA One environment.
    I have modeled that data using SAP HANA Studio -- created Analytic views, Hierarchies, etc. -- following the HANA Academy videos.  This has worked very well in order to perform the historical analysis and reporting through the Desktop Application. 
    However, I cannot get the Predictive Analysis algorithms -- specifically the Time Series algorithms -- to work appropriately using the Desktop tool. It always errors out and points to the IndexTrace for more information, but it is difficult to pinpoint the exact cause of the issue.  The HANA Academy only has videos on Time Series Algorithms using SQL statements which will not work for my user community since they will have to constantly tweak the data and algorithm configuration. 
    In my experience so far with Predictive Analysis desktop and the Predictive Algorithms, there is a drastic difference between working with Local .CSV / Excel files and connecting to a HANA instance.  The configuration options for using the Time Series Algorithms are different depending upon the data source, which seems to be causing the issue.  For instance, when working with a local file, the Triple Exponential Smoothing configuration allows for the specification of which Date field to use for the calculation.  Once the data source is switched to HANA, it no longer allows for the Date field to be specified.  Using the exact same data set, the Algorithm using the local file works but the HANA one fails. 
    From my research thus far, everyone seems to be using PA for local files or running the Predictive Algorithms directly in HANA using SQL.  I can not find much of anything useful related to combing PA Desktop to HANA. 
    Does anyone have any experience utilizing the Time Series Algorithms in PA Desktop with a HANA instance?   Is there any documentation of how to structure the data in HANA so that it can be properly utilized in PA desktop? 
    HANA Info:
    HANA One Version: Rev 52.1
    HANA Version: 1.00.66.382664
    Predictive Analysis Desktop Info:
    Version: 1.0.11
    Build: 708
    Thanks in advance --
    Brian

    Hi,
    If you use CSV or XLS data source you will be using Native Algorithm or R
    Algorithm in SAP Predictive Analysis.
    When you connect HANA, SAP Predictive Analysis uses PAL Algorithm which runs
    on HANA server.
    Coming to your question regarding difference,
    In SAP PA Native Algorithm, we could provide the Data variable, Algorithm
    picks the seasonal information from the Data column. Both R and SAP HANA PAL
    does not support Date Column. We need configure seasonal information in
    Algorithm properties.
    R Properties
    1) Period : you need to mention the periodicity of the Data
    Monthly : (12)
    Quarter : (4)
    Custom : you can use it for week or Daily or hourly.
    2) Start Year: need to mention Start year.
    Start year is not used by algorithm for calculating Time series, but it helps
    PA to generate Visualization ( Time series chart) by simulating year and
    periodicity information.
    3) Starting Period:
    if your data is Quarterly and you have data recordings from Q2, mention 2 in
    start period.
    Example.
    If the data periodicity is Monthy and my data starts from Feb 1979, we need to provide following information,
    Period: 12
    Start year: 1979
    start Period: 2
    PAL Properties. : Same as properties defined in R.
    Thanks
    Ashok
    [email protected]

  • Creating Logic and modeling for SAP BW datasource in SAP HANA views and SLT

    Hi to all,
    I have small question.
    We have BW system and SAP ECC as source system and to get data from SAP ECC source system we are using SAP ECC Standard data source.
    Now we required to, create modeling in SAP HANA by use of HANA View and get data from SAP ECC source table via SLT.
    So we can replicate same modeling,as we done in SAP BW system.
    But  my question is that, as SAP ECC standard data source hit multiple table and do run-time calculation, before sending to SAP BI.
    How we can derives such calculation and logic, in our HANA studio, because as we know in SLT data transformation can be done in limited way also
    in view we can not drive such logic via SQL script ?.
    Is there any way we can do such modeling and logic in SAP HANA ?
    or
    is there any standard document for this type of case, which we can use ?
    Note: We don't want to use SAP DS or DXC for data loading to HANA, as  we want it in more real time.
    Regards
    Pavneet Rana

    Thanks for reply,
    As SLT is based on ABAP, so we can write complex logic in it.
    But if we talk about SAP ECC standard data source, they have complex logic, based on multiple table.
    So we need to write code from scratch in SLT to derive same result. but it will be huge time consuming , and required good ABAP skills, also it will lead to bug in code.
    Also it will reduce the real time performance of SLT, due to complex logic.
    Second option is procedure via SQL script, which is again huge effort in term if logic and can lead to error/bug in logic.
    Does we have any other way or architecture to do this is very simple way, with high performance and less error issue.
    Regards
    Pavneet Rana

  • Help needed- SAP HANA implementations and costing

    AS a project Manager, I am interested in knowing the details on SAP HANA implementation.
    If any company wants to use HANA then whats should be the cost of appliances, related software's and integration with netweaver?
    How the costing will be decied if any company wants to migrate to HANA?
    Pleae help

    Thanks Krishna and Raj for the info.
    I also found blow link very informative in terms of costing related to Hardware, infra, software etc, do read if u get time.
    http://public.dhe.ibm.com/common/ssi/ecm/en/xsw03127usen/XSW03127USEN.PDF
    If anyone has mre views then pls share

  • _Patch level in SAP HANA Note and _Build No in SAP HANA

    Hello Hana Gurus!
    I need to know where can I find the patch level in the SAP HANA and SAP HANA Notes
    For example, if I want to apply a note
    http://service.sap.com/sap/support/notes/1964428
    there is specified:
    Software Component
    Support Package
    Patch Level
    SAP HANA DATABASE 1.00
    SP069
    2
    SP070
    0
    Ok. I read a lot of sources and understand the following:
    To know the HANA Studio version:
    Help->About SAP HANA Studio.
    It will be like
    Version: 1.0.27
    Build id: 201205021925 (361805)
    Here 1.0.27 means -> 1.0 version and Revision is 27 and Build No is : 361805
    Re: From Studio, how to know the  HANA DB Version
    That is, if we apply 1964428 note, the system is upgraded to SP069 and SP070. Is that correct?
    But what Patch Level means in this (and some other) note (value 2 and 0)?
    Where I can check Patch Level in the HANA?
    And, what are figures Build No indicate
    UPD:
    Here Re: Where we can check Patch leveles in HANA? referred to a certain table "M_HOST_CONFIGURATION". But in my system it does not exist. or tell me where to find it?
    Message was edited by: Tom Flanagan

    Hi Kirisetti,
    please findanswers in italics
    1)
    I understand the database version and the studio version is not the same thing. But why do they match my system (see picture)? Or still the same thing?
    By the way, to see the version of the database I used table SYS.M_DATABASE
    A revision is released with all HANA components are part of the revision release and not just HANA DB server. So it is always ideal that you have all HANA components on same version as in your case. However is is technically feasible that you are usinga older version of Studio to connect to a newer version of HANA DB server. so Help-> About Studio would give you version of the studio and "select version from SYS.M_DATABASE" gives you version of the HANA DB server.
    2)
    and for the version and patch level
    1.0.69.02 would mean HANA DB is on Revision 69 , patch 02
    1.0.70.00 would mean HANA DB is on Revision 70
    Soultion for the problem is to update your HANA DB to revision 69, patch 2 or Revision 70.
    Did I understand correctly, if the note indicated Patch Level = 0, then we simply speak about updating to Revision, implying that no Patch Level? Or how it can be understood?
    I'm assuming here you wish to know if you are downloading the right software for the update.
    if there is a patch mentioned it is available as "Mantainence Revision <rev no>.<patch no>" for download and if there is no patch level mentioned(patch level = 0) they is avaliable as "Revision <rev no.>". Also update procedure for both Revision and patch is the same.
    3)
    Did I understand correctly, the first figure in the Build number (Build id) indicates the Patch Level? How it is possible to interpret the Build number (Build id) more? These figures represent something?
    This build number is something that comes out of build repositiory. HANA version mentioned in all notes and guide refer to just the Revision number and patch level currently. You can ignore the build number

  • Deploying / Transporting SAP HANA-ECC and BW Solution?

    Is there one centralized deployment guid for SAP  HANA solutions in the SAP ECC and SAP BW environment?
    Please can one of you provide some directions to a centralized guide to move / deploy SAP HANA solutions build in one system to Quality and/or production environment?

    Rama,
    there's a pretty straight forward export/import functionality for moveing models from dev to qa and prod. Please see the SAP HANA Modeling Guide, chapter "Processing Information Objects".
    You can also use CTS+ in conjunction with this functionality.
    Regards,
    Marc
    SAP Customer Solution Adoption (CSA)

  • How does live update 6 work with BIOS updates?

    I want to upgrade to the x99 platform but I am concerned with how new it is.  I want to make sure I keep the BIOS updated because of the "newness" of it all and compatibility issues.  Although I have built and continue to upgrade my system I am in no way proficient in trouble shooting or making changes.  So flashing the BIOS always makes me nervous that I will screw something up.  So when I heard that MSI has a program called live update 6 that automatically updates the BIOS it got my interested.
    Can anyone give me some advice on how this program works?  Or are the compatibility issues more an issue of the past when Intel rushed the CPUs out and the MOBO makers had to play catch up?
    Thanks for everyone's advice and help.

    Hi
    Which exactly motherboard you're looking for? If you're afraid of bricking BIOS, then I suggest something like X99 MPower/XPower which has dual BIOS.
    LiveUpdate: downloads the update pack, does some magic within bootup and updates the BIOS. I don't know the exact process it does, but works just like installing a software: download, extract, install. Also MSI offers MFlash which lets YOU go through flashing process: download, prepare USB stick, boot from USB (or use MFlash within BIOS settings) and update.
    Risks: flashing BIOS is always a risk, no matter if it's MSI, Gigabyte or anyone else's brand. It's a chip, that if something goes wrong (for example system is not stable), then motherboard may get bricked and recovery may/may not be possible.
    MFlash instructions:
    https://service.msicomputer.com/msi_user/support/techfaqdetail.aspx?formid=3135

  • MSI GT70 0NC-070NE problems with KLM and S-Bar after Live Update

    Hey there.
    Last night i decided to update my laptop with the newest drivers, so i launched Live Update and got startet.
    When it was done with all of the updates, and had rebooted, both S-Bar and KLM wouldn't start. I clicked the button to have windows try and fix it online, but it didn't help.
    After that i tried to update them to the newest version, and that didn't help either.
    Is this a know issue, or am i just unlucky? Can it maby be solved with installing Win8, as im doing that in a few days from now?

    Quote from: MicHead on 26-January-13, 18:25:53
    Hey there.
    Last night i decided to update my laptop with the newest drivers, so i launched Live Update and got startet.
    When it was done with all of the updates, and had rebooted, both S-Bar and KLM wouldn't start. I clicked the button to have windows try and fix it online, but it didn't help.
    After that i tried to update them to the newest version, and that didn't help either.
    Is this a know issue, or am i just unlucky? Can it maby be solved with installing Win8, as im doing that in a few days from now?
    Make sure you have installed also NET Framework before you use KLM and S-Bar and I really don't recommend to use Live Update, if you want to update your drivers to the latest just go to the manufacurer's website in download section. Don't forget to choose your version of windows before downloading!
    http://www.msi.com/product/nb/GT70-0NC.html

  • How do I update the chart axis values??

    I created a Gantt (bar chart) chart in Numbers for a project at work showing schedules.  It looked fine, and everything worked great.  I want to use that same chart, but I want to just update the data in it.  I can get the bars to change, but the Y axis data (not the numbered values in the chart, but rather the the actual names out to the side of the chart) will not change.  For instance....
    Name
    Start Date
    Finish
    Task 1
    January 1, 2013
    January 15, 2013
    Task 2
    February 1, 2013
    February 15, 2013
    The Tasks on the left will be the Y axis fields in a bar chart....and the dates will populate the graph.  I've created my graph from this data and got it like I want it.  Now let's say I want to simply change some things in the Name column:
    Name
    Start Date
    Finish
    New Task
    January 1, 2013
    January 15, 2013
    Task 4
    February 1, 2013
    February 15, 2013
    So without creating a new chart or anything, I just want to reflect the new names in my existing chart.  In Excel, when you change the value data, it updates the chart and "it just works" .  I'm wanting to use Numbers for this, and I feel like this is a simple thing that I'm just missing.  Help!

    Jerrold....thanks for the reply.  While you didn't answer my question exactly (I know I was a bit vague), you did put me on the right path.  I was trying to get the Category Axis values to change on the chart whenever I updated them in the table itself.  I couldn't figure out why they weren't but I think I have now. 
    I noticed that in the Category Axis field (Inspector) it had the actual typed names of my tasks from the table instead of the cell locations.  So...."Task 1" instead of "Table 1: C7".  I cleared out all of the text in the Category Axis field, which removed it from the chart.  then I just clicked on the fields in the table and it populated the Category Axis blank with the table/cell info instead of the text.  So now when I update one of the fields, it updates the chart because it's pulling from the cell data every time.
    I'm not really sure why Number, by default, enters the text into the Category Axis when making a chart instead of putting in the corresponding cell locations, but whatever.  I got it working now and should be good to go going forward, thanks for your help.

  • How does live update works?

    It scans but finds nothing also no other operation. does this show there is no update or something wrong.

    Quote from: kromosto on 01-November-12, 23:59:42
    S/N:602-V278-010B1208069925
    and here is the rom link
    http://dl.dropbox.com/u/60873/Tahiti.rom
    Yes, this is latest legacy vbios.
    I'm attaching hybrid one[latest versions] that support W8 for your review.
    .100 ==> Normal vBIOS
    .110 ==> LN2 vBIOS

  • How to change the unload priority of a table in SAP HANA?

    Hi Experts,
    How we can change the unload priority of a table in SAP HANA? I know by default the priority is 5. Is there any way so that we can check the unload priority of a particular table in HANA studio? Is there any SQL statement to get the same?
    Please suggest.
    Thanks in advance.
    Regards,
    Arindam

    Hello Arindam,
    Just for the future:
    ALTER TABLE - SAP HANA SQL and System Views Reference - SAP Library
    To check before hand:
    select
    table_name, unload_priority from SYS.TABLES
    where table_name = '<Your Table>'
    To Make the change:
    alter table <Your Table>unload priority <Priority You Want>.
    As you have asked in the BW on HANA section I assume you're on BW and you could also have checked this with tx SE14.
    Hopefully the above gives you everything you need.
    Kind Regards,
    Amerjit

Maybe you are looking for

  • Best settings for .mov files on a Data CD or DVD ?

    Hi, I have a series of sequences in FCP. I want to export them as .mov files and .wmv flies to be played off a data CD or DVD. They are essentially talking heads with a few cut away shots about 5 min each. I'm finding that when I save them as "high"

  • Seek for solution of custom module autosize

    hello everyone i have a simple question but confused me seriously. that is how to let the custom module autosize. i don't wanna a blank area for big size moudule panel with small size content. i don't wanna a scroll bar inside the moudule or just cut

  • Document and header terms

    what does it mean when we say Document, Header term in SAP?

  • Null Pointer Exception while Retrieving Records using Java API

    Hi,     I am using the Class RetrieveLimitedRecords, to retrieve he records from the main table. While using this class I am getting an error Null Pointer Exception, when there are no records matching the search criteriea. Could anybody tell me how t

  • Aps not working

    As above. Remote & a game just won't work. Any ideas? Cheers KJ