Power Apps Paginated Galleries

Поделиться
HTML-код
  • Опубликовано: 5 янв 2025

Комментарии • 55

  • @luuminhvuong
    @luuminhvuong 5 лет назад +2

    Exactly what I've been looking for. Reduce data load and reduce performance risk

    • @AprilDunnam
      @AprilDunnam  5 лет назад

      Great, glad that you found it helpful!

  • @EpicBizHero
    @EpicBizHero 3 года назад

    Phewwwwww... After 3 weeks of many different attempts, I followed your written blog and got 0 ERRORS! Thank you April... God Bless You!!!

    • @EpicBizHero
      @EpicBizHero 3 года назад

      I am having one issue that I can't figure out though (maybe it's dealing with the collection): My gallery comes up blank, but my label of how many pages says "1/0". I also created a label that does a CountRows and it says there is only 1 row. Any hints you can think of to help? Thanks in advance April... I really appreciate your content!

    • @EpicBizHero
      @EpicBizHero 3 года назад

      I figured it out... Simple fix. The gallery was a "Blank" Gallery... LOL.

    • @AprilDunnam
      @AprilDunnam  2 года назад

      Glad you got it figured out. Sorry I'm just now seeing this. I don't get notifications when there's a reply to a comment for some reason.

  • @infinity247services8
    @infinity247services8 5 лет назад +1

    Nice to see another pagination after I have posted in PA Blogs two years ago.
    Thanks for sharing here too.

    • @AprilDunnam
      @AprilDunnam  5 лет назад +1

      It's always important to have tutorials in multiple formats (blogs, videos, etc). I'm happy to provide a walkthrough for those who prefer to learn via video.

  • @angrybatvoice
    @angrybatvoice 5 лет назад +1

    April, this is fantastic. Well done!

  • @NKBobcat
    @NKBobcat 5 лет назад +1

    New subscriber here. This is exactly what I'm looking for. Thank you!

    • @AprilDunnam
      @AprilDunnam  5 лет назад +1

      Thanks Bob, glad it was helpful!

  • @achyutpsd
    @achyutpsd 4 года назад

    Dear April
    How to implement first and last page using this logic. Kindly advise

  • @Slash1066
    @Slash1066 3 года назад +1

    It's a shame there isn't a more straightforward way to achieve this really, but thanks for taking the time to explain this method

    • @AprilDunnam
      @AprilDunnam  3 года назад +1

      I agree Matt - good things we have work-arounds for now though

  • @AdiCristea
    @AdiCristea 5 лет назад +3

    There is a problem with the formula, you have 14 records and each screen is showing 6, therefore the last screen should only have 2 (6+6+2), however your screen shows 4. You can actually see the last two records on page 2 (Widget Corp and Apple) are shown as the first two on page 3. I'll try checking what's wrong, but you most probably will see the error straight away before me :).
    Thanks for the video, btw, really helpful!
    Edit: Think I got it - inspectionGalleryRowTotal instead of {newRowTotal: newCounter - totalrecords} should actually become {newRowTotal: inspectionGalleryRowTotal - (newCounter - totalrecords)};
    No change for pageCounter formula though

    • @infinity247services8
      @infinity247services8 5 лет назад

      You may search PowerApps Blog which I wrote for PA 2 years ago on Pagination. All formula are completely given proven to be no problem for pagination and even can use timer for auto pagination

    • @silasmangeni5976
      @silasmangeni5976 5 лет назад

      This has helped correct the issue I was facing as well.

    • @jayveebarretto5985
      @jayveebarretto5985 4 года назад +1

      Next Button Formula
      From :
      newCounter: pageCounter + inspectionGalleryRowTotal
      Change to:
      newCounter: totalrecords - pageCounter
      Prev Button Formula
      Just simply put the UpdateContext of inspectionGalleryRowTotal after the condition.
      This is working perfectly on my app.

    • @AprilDunnam
      @AprilDunnam  4 года назад

      I'm not seeing a difference between what I show here and the blog that someone is promoting on my channel but either way I'm glad that the link was helpful

    • @omerjavaid5841
      @omerjavaid5841 4 года назад

      @@AprilDunnam Formula should be Like that newRawTotel: TotelRecords - PageCounter. Infact you need only one With condition.
      If(newCounter >= totalRecords , inspectionGalleryRowtotal, TotelRecords - PageCounter) . Seocond with condition is not required

  • @משהמעין-ח2ד
    @משהמעין-ח2ד 3 года назад

    It works thanks, but after I add the code in the gallery the search can not be started or drop down

  • @ramitkishoresaha9437
    @ramitkishoresaha9437 4 года назад +1

    That was just awesome! 🙂

  • @paolovr1970
    @paolovr1970 Год назад

    Thanks April 🙏🙏🙏

  • @marcopezzutti6555
    @marcopezzutti6555 5 лет назад +1

    Hi April , may I say this is a fantastic video. One question I don't know what to do if you the user has to select a different filter criteria. Do I still use the collection? Thank you Marco

    • @AprilDunnam
      @AprilDunnam  5 лет назад

      You could still use the collection

  • @jayveebarretto5985
    @jayveebarretto5985 4 года назад +2

    I just found out there is some problem with the next and prev button. I just made some twists on the code.
    Next Button Formula
    From :
    newCounter: pageCounter + inspectionGalleryRowTotal
    Change to:
    newCounter: totalrecords - pageCounter
    Prev Button Formula
    Just simply put the UpdateContext of inspectionGalleryRowTotal after the condition.
    This is working perfectly on my app.

    • @AprilDunnam
      @AprilDunnam  4 года назад

      Thanks for catching that and sharing the fix!

    • @jayveebarretto5985
      @jayveebarretto5985 4 года назад

      No worries. Just helping too :)

    • @anandasanyal
      @anandasanyal 4 года назад

      @@jayveebarretto5985
      Thanks for the code amendment. What's the Back button formula?

    • @jayveebarretto5985
      @jayveebarretto5985 4 года назад +1

      @@anandasanyal just put the updatecontext after the condition.

    • @anandasanyal
      @anandasanyal 4 года назад

      @@jayveebarretto5985
      UpdateContext({});
      Leads to the first page, Not the previous page.
      Thank you

  • @toponightfire
    @toponightfire 4 года назад +1

    If you have total of 14 records and 6 records per page, shouldnt the last page contain 2, 6+6+2 = 14, you was showing 4 items on the last page in your video so last two records of page 2 is repeated?

    • @AprilDunnam
      @AprilDunnam  4 года назад +1

      You are correct Nigel. I was missing something in the formula which was causing the issue. I should probably update the video notes to show this.
      This needs to be updated:
      Next Button Formula
      From :
      newCounter: pageCounter + inspectionGalleryRowTotal
      Change to:
      newCounter: totalrecords - pageCounter
      Prev Button Formula
      Just simply put the UpdateContext of inspectionGalleryRowTotal after the condition.

  • @allisonpaiva8265
    @allisonpaiva8265 4 года назад

    Inside which component have you placed paginations previous/next button?

    • @AprilDunnam
      @AprilDunnam  4 года назад

      Hi Allison - I actually didn't include those in a component in this particular scenario, I just have them added and positioned at the bottom of the screen

  • @rajarn7566
    @rajarn7566 4 года назад

    Can u help me with this-pictures taken using camera,saved to collections and added gallery able to view the same but need multiple pictures to be send to share point,as of now am able to send only 1 picture at a time to Share point

    • @AprilDunnam
      @AprilDunnam  4 года назад

      Hi Raja - You could add the pictures you take with the control to a collection and then Patch that collection to using the ForAll to loop through

  • @bhanuprakash1416
    @bhanuprakash1416 4 года назад

    Hi April ,
    I am having an sql back-end of 60000 to 80000 records how can i paginate over 2000 records as there is a limit in powerapps gallery with pagination.
    Regards,
    Bhanu

    • @AprilDunnam
      @AprilDunnam  4 года назад

      Hi Bhanu - I don't know of a great way to do this with that many records.

  • @gerfer6261
    @gerfer6261 4 года назад +1

    I tried, works
    1 - I found very useful, sometimes Next button behave bit funny
    2- How can I apply to filtered galley please (total pages need to decided by the filtered Items please)

    • @AprilDunnam
      @AprilDunnam  4 года назад +1

      You should just be able to do the Filter in your collection of items.

    • @gerfer6261
      @gerfer6261 4 года назад

      Example code will be handy!!
      cheers

  • @anamikasoni1403
    @anamikasoni1403 4 года назад

    This is fantastic video. Works like a charm... 1 questions . I am building this for user list using office 365 users. Made Pagination working . but i got search text box where user can search for contact .. How do I update data source accordingly

    • @AprilDunnam
      @AprilDunnam  4 года назад

      I would use a variable to store your search box text and then reference that in your filter query.

    • @genepieterson
      @genepieterson 4 года назад

      @@AprilDunnam Hey April. This was amazing and I just used it for my work app. One question: I tried using your advice here for the search box but am not getting the right results. Could you post exactly how you made the search box work? Thanks.

    • @genepieterson
      @genepieterson 4 года назад

      @@AprilDunnam Should be more clear. I have put a filter at the beginning of the gallery's items. But when I search, it only searches the page that I'm on.

  • @MattSchuessler
    @MattSchuessler 5 лет назад +1

    impressive!

  • @Viewerskranthi99
    @Viewerskranthi99 Год назад

    Can you make Shere point tutorial for beginners

    • @AprilDunnam
      @AprilDunnam  Год назад

      Hey! I actually have a beginner tutorial here: ruclips.net/video/6q8Woozw3IM/видео.html