Alpha Video Training
Results 1 to 4 of 4

Thread: Show List Summary Data in a view box

  1. #1
    "Certified" Alphaholic glenschild's Avatar
    Real Name
    Glen Schild
    Join Date
    Apr 2000
    Location
    Frome, Somerset, UK
    Posts
    1,502

    Default Show List Summary Data in a view box

    Hi all

    Okay I have a list which includes compute summary data server side. Within the list event afterServerSideSummaryCompute I am generating the values as such:

    Code:
    var t = summary['ATTENDANCE'].total;
    $('TOTALA').innerHTML = t;
    var c = summary['ATTENDANCE'].count;
    $('TOTALC').innerHTML = c;
    var a = summary['ATTENDANCE'].avg;
    $('TOTALAVG').innerHTML = a;
    var mx = summary['ATTENDANCE'].max;
    $('TOTALMAX').innerHTML = mx;
    var mn = summary['ATTENDANCE'].min;
    $('TOTALMIN').innerHTML = mn;
    var h = "Showing: " + c + " games" + t;
    $('TOTALHEAD').innerHTML = h;
    If I place the divs in the footer of the list then all works well and the values are generated. However the layout does not work. What I want to do is place this data into a viewbox to the right of the list. The problem is that the divs eg:

    Code:
    <div id="TOTALC">msg</div>
    Do not render at all. It is not a refresh issue.

    Any thoughts?

    Attached screenshot shows both the footer data and the viewbox.

    2019-06-15_13-03-04.png

    Thanks in advance.
    Glen Schild



    My Blog


  2. #2
    "Certified" Alphaholic
    Real Name
    David Kates
    Join Date
    Apr 2008
    Location
    Unionville, ON
    Posts
    7,572

    Default Re: Show List Summary Data in a view box

    Setting divs is a first come, first serve proposition. You're setting the divs in the List Footer, so... that's it, you don't get to set anything else. The List footer divs are first in line in the DOM.

    Rename all your List footer div ids... just shove an x in front of each id. Then your ViewBox will show values.

  3. #3
    "Certified" Alphaholic glenschild's Avatar
    Real Name
    Glen Schild
    Join Date
    Apr 2000
    Location
    Frome, Somerset, UK
    Posts
    1,502

    Default Re: Show List Summary Data in a view box

    Hi David

    Thanks but they were not rendering even before I added them to the list footer to check that they immediately rendered.
    Glen Schild



    My Blog


  4. #4
    "Certified" Alphaholic
    Real Name
    David Kates
    Join Date
    Apr 2008
    Location
    Unionville, ON
    Posts
    7,572

    Default Re: Show List Summary Data in a view box

    If I use 2 different divs then I can get the summary to show up in both places...

    List_VB_Summary.PNG

    Code:
    var t = summary['CUSTAMOUNT'].total;
    $('TOTALA').innerHTML = t;
    $('xTOTALA').innerHTML = t;
    ViewBox Layout...
    Code:
    <div id="TOTALA">hello</div>
    What Build of Alpha are you using?

Similar Threads

  1. UX with List View and Buttons - hide buttons based on data in list
    By cavj1 in forum Mobile & Browser Applications
    Replies: 3
    Last Post: 06-22-2018, 05:48 PM
  2. How to update ViewBox data when used as the list's detail view (onClick event)?
    By Maroine81 in forum Mobile & Browser Applications
    Replies: 4
    Last Post: 02-23-2017, 05:55 PM
  3. UX List view not displaying data in WP
    By Peter.Greulich in forum Mobile & Browser Applications
    Replies: 2
    Last Post: 03-14-2015, 06:33 PM
  4. List with detail view and disconnected data... help
    By frankbicknell in forum Mobile & Browser Applications
    Replies: 11
    Last Post: 11-08-2014, 10:51 AM
  5. List with detail view and disconnected data... help
    By frankbicknell in forum Application Server Version 11 - Web/Browser Applications
    Replies: 0
    Last Post: 10-16-2014, 03:41 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •