locked
How can I wait till data is loaded and get the latest entities in HTML CLient RRS feed

  • Question

  • This is my first try using a JavaScript component. I found a nice timeline-Scheduler on github: Timeline Javascript Scheduler

    I made an nearly empt new Screen and I am using LS only to get the data and to switch to the next date.

    This works fine for the first date I set in the created.

    But if I change to the next day, there are still the just loaded records. When I switch again to the following date I get the records from the day before...

    myapp.dispo.divcontainer_render = function (element, contentItem) {
        // We need this div for the timeline
            $(element).append('<div class="calendar"></div><div class="realtime-info"></div>');
    //Bind to the date
        contentItem.dataBind("screen.suchDispodat", function (value) {
                var querydat = value;
                var items = [];
                var sections = [];
    
    //The querydat is set to the right date but the records I get are from the last executed query.     
          contentItem.screen.getQuerydispobydatfahrerorderfahrer(querydat).then(function (result) {
                    var dispos = result.data;
                    dispos.forEach(function (dispo) {


    How can I bind the refresh to something like data loaded?

    Helmut

    • Edited by Helmut Seitz Thursday, February 19, 2015 10:27 AM
    Thursday, February 19, 2015 10:24 AM