Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

sorting limitation of list on large data

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    sorting limitation of list on large data

    I have a table with 1 million records and I want to sort asc/desc in list but list is only sorting based on 20 records. For example I have 120 countries data in 1 million records when user sorts by country it should bring Zimbabwe or Argentina/austria based on sort direction. I was able to do this in grid on web browser but grid does not work in mobile apps .

    #2
    Re: sorting limitation of list on large data

    I found a server side sort action but I need it on each column click. I also need typed search under each column(when user starts typing country name starting with a the expanded dropdown should bring all countries with name like A. This is available in kendo UI grid and for large data this is extremely important.

    Comment


      #3
      Re: sorting limitation of list on large data

      Info missing here. If the sort is only applied to 20 records, then you have "Pagination" turned on... is that right? If so, then you don't have your million records in the List. You start with 20 and add as you page. I believe the only way to sort 1 million records client-side... is to have those records client-side.

      It'll be interesting to see a mobile app hold and sort 1 million records. Please post updates to this.

      Comment


        #4
        Re: sorting limitation of list on large data

        Thanks David.
        I now reduced it to 500k records just to test and server side sort works(client side can not as I will have 500 records per page).
        Overall alpha app can handle 500k records(the table is huge with 60 columns but I am displaying 6 columns) with paging, next, previous etc with less than 5 seconds performance but the big issue is for server side sort I will have to add 6 custom buttons or links to create server side sort as current columns do not have option to choose client or server side. The server side sort works well within 10 seconds that sorts 500k records asc/desc. Also export excel list action works great in browser but does not work at all in android/iphone app.

        I think for export I will have to tie the export to xbasic function and then call phonegap export function.
        Untitled.png
        Last edited by amitloh; 07-16-2017, 05:07 PM.

        Comment


          #5
          Re: sorting limitation of list on large data

          for phonegap export now I am getting below error
          Untitled.png

          function myexport as c (e as p)
          'This function is called to get the list of file to download to the device using the PhoneGap file transfer function
          'The function can also create the files to be downloaded

          'The function must return Javascript to create a variable (called '_filesToDownload') in the UX object that contains an array
          'of object names. Each object in the array must have a 'filename' property with the filename of a file to download.
          'The file to download must be in the webroot, or if must be a session file.
          'If the file you want is not in the webroot, you will need to create a session file from the file.
          'The e object passed into the function contains
          'e.filename - the filename of the export file that was created
          'e.tmpl - definition of the component

          'optional
          'Your code can set the e.javascript property to return any Javascript to the client.
          'For example:
          'e.javascript = "alert('File was e-mailed');"
          'example

          dim txt as c
          txt = "this is some text that I want to download"
          dim key as c
          key = "someRandomText.txt"
          dim ext as c
          ext = file.filename_parse(key,"e")

          e.javascript ="alert('"+ext+"');"
          'create a temporary file
          dim fn as c = request.GetRequestTempFileName(ext)
          file.from_string(fn,txt)

          'create a session file
          session.saveFileToSessionFile(fn,key)
          dim url as c
          ''generate a URL that points to the session file
          url = Session.FormatFileDataURL(key)

          dim a[1] as p
          a[1].filename = url
          myexport = "{dialog.object}._filesToDownload = " + json_generate(a)



          end function

          Comment


            #6
            Re: sorting limitation of list on large data

            I believe what you want to do is turn "Paginate data" off... and instead use List Property "List Virtualization". This will render your large list quickly, but will only render a fixed number of rows. However, all data is available in the rendered component. There are no callbacks for additional rows as you move through the List.

            In my tests, client-side sorting occurs on the full set of data. E.g. If you're viewing the first 50 rows, and sort on a column, and then page into the next set of 50 rows... all rows are sorted properly.

            Comment


              #7
              Re: sorting limitation of list on large data

              Thanks David. You are right. If I disable pagination then client side sorts with virtualization sorts based on all.
              The biggest issue is its super slow if I disable paging. It takes more than 1 minute to initially load data when table has 500k records. If I enable paging its less than 10 sec. but sort only work for paged data. The same behavior works in kendo grid or web based alpha data grid but not lists and that may eliminate alpha app(we will have to do kendo app or something else), I still have time to decide/explore in alpha but without these features I can not move forward. My first app was simple so it kind of worked there.

              Comment


                #8
                Re: sorting limitation of list on large data

                There's so much information missing about how your Mobile PhoneGap Build app needs to work. Are you going to be making changes to the List? Does the app need to be online? Do you need to refresh the data in the List in order to pick up new server data?

                Comment


                  #9
                  Re: sorting limitation of list on large data

                  The data is huge(1 million plus) so I will need paging, export, search, filter, sort(all based on 1 million records), BTW- data is readonly for users.
                  This all works perfectly fine in grid and kendo UI. I will try custom list layout and will try to apply server side sort based on buttons. Lets see how it goes.

                  Comment


                    #10
                    Re: sorting limitation of list on large data

                    I don't really understand the need for 1 million records in a List in this case. Since you're investigating server-side sort, this means your app in always online. If so, why would anyone need to page through 1 million records?

                    Comment


                      #11
                      Re: sorting limitation of list on large data

                      This is a data access app to access 1 million records and filter/sort based on 1 million records. The paging can be either based on 1 million or 100k depending on sort, filter and search. This browser based application is already live(everything exactly like I mentioned using kendo UI). I just need to check if I can do the same in android/Iphone app.
                      For example out of 150 countries if user checks 10 countries(checked dropdown-in kendogrid) then user will get 200k records and out of those he can search some keyword and then he will get 30k and he can page on that or export or whatever he wants to do. Basically it need to have rich feature set. So the question of "why" does not exist, the question is can the same rich data access/filter/sort/export be done in alpha android/iphone app with good performance(not via workarounds)

                      Comment


                        #12
                        Re: sorting limitation of list on large data

                        With phonegap app we are thinking of adding rich native features later once atleast basic things of accessing large data with same features is available via app. If its not alpha we will have to find some other app tool to do it.(native app like xamarin) but we are trying to have less coded rad approach.

                        Comment


                          #13
                          Re: sorting limitation of list on large data

                          When dealing with large amounts of data you should consider a tool to increase indexing speed and functionality.

                          Omnidex is one of those tools.
                          Al Buchholz
                          Bookwood Systems, LTD
                          Weekly QReportBuilder Webinars Thursday 1 pm CST

                          Occam's Razor - KISS
                          Normalize till it hurts - De-normalize till it works.
                          Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
                          When we triage a problem it is much easier to read sample systems than to read a mind.
                          "Make it as simple as possible, but not simpler."
                          Albert Einstein

                          http://www.iadn.com/images/media/iadn_member.png

                          Comment


                            #14
                            Re: sorting limitation of list on large data

                            The question of why is the most important question... as it dictates design.

                            Comment


                              #15
                              Re: sorting limitation of list on large data

                              Is this again a joke?

                              Comment

                              Working...
                              X