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

Data Pagination - List Page size depending on the device height

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

    Data Pagination - List Page size depending on the device height

    Hi all.
    I have a list with quite a few records and data pagination is almost a must for me, speed-wise. It works great. Using NavigationButtons as Pagination Method. Width=100% takes care of the horizontal. A few search boxes and buttons, drop-list on the panel.

    How would someone implement a different Page Size value in case of a Data Pagination in List? For example, I'd like to set Page Size = 15 for iphone5, and Page Size = 40 for Nexus10. Could throw in the orientation factor too, but portrait will do it fine. Is there a way to set that value (page size) dynamically, and more important without passing parameters from viewport, bootstrap or something similar. Tried Height=100%, "Control container prevent float=.T." (can't fill the container), with no luck.

    Is there a simple solution? I'm getting lost in the responsive design here.
    Thanks!
    Sime

    PS latest patches of AA

    #2
    Re: Data Pagination - List Page size depending on the device height

    All you are really doing with the Paginate method is to limit the records each call to a reasonable number from the server, the overflow simply scrolls the list to that point off screen, until scrolled into view, as long as you panel card is re sizing OK, then just be a little liberal with the lines per record and it will be fine.
    Insanity: doing the same thing over and over again and expecting different results.
    Albert Einstein, (attributed)
    US (German-born) physicist (1879 - 1955)

    Comment


      #3
      Re: Data Pagination - List Page size depending on the device height

      Do you really want to make a call to the server each time you want a page of data? For an iPhone that a call per 15 rows.

      If you were to render your full List... how many rows would it be?

      I understand not wanting to render all rows. That would potentially blow up the DOM. Instead you can manage List memory usage and use List Virtualization to render a page... or a few pages... at a time... show as many rows as you like. With this method you can alter the number of rows rendered depending on device and orientation.

      Using both Data Pagination and List Virtualization, you can control the number of rows retrieved from the server... and then also control the number of rows rendered. You'd do this if you have a very large number of rows required from the server and also wanted to ensure you managed your DOM successfully.

      Comment


        #4
        Re: Data Pagination - List Page size depending on the device height

        Thanks Peter and David! Sorry for the delayed reply - out of town, with no internet on hand.

        I think, as Peter pointed out, resizing the panel is where I haven't solved the issue. Haven't gotten into the bootstrap or any other technique to wrap the a5 with. David, combining the data pagination with list virtualization sounds cool but it might be overkill for what I'm doing, especially with my limited knowledge of AA. I had to go with the pagination - there're cca 40,000 records, with many fields to work with.

        One new problem I have with the pagination is that I can't seem to be able to move the record pointer together with the page navigation. I use navigation buttons (first, prev next, last) and they work great. I'm able to move back and forth through the pages very quickly. OnSelect a row in the list it shows the right details (from a same table) in the next panel. But if I go to the next page (say 10 rows per page and the selected row jumps from row#13 to row#23) and I do swipe the Detail panel still shows #13's details? Again, the Select works fine. The table is DBF, indexed, but I just want to implement skip +10, using javascript. _listFetchMore needs the list to use FetchMore, not NavButtons. Why doesn't the record pointer/cursor move together with the new page of records, thus not corresponding to the selected row?
        I believe something like "skip 10" in Next, "skip -10" in Prev button (maybe I could use _listGetElement somehow?) would help me, short of using xbasic.
        Or, even simpler, to programmatically click on the selected row on the list. I'm not aware of any syntax for list. highlighted. select() . I'm making up words here now.
        I'm using a DBF, if that matters.

        Comment

        Working...
        X