Power Apps Exchange

Please login or click SIGN UP FOR FREE to create your PowerAppsUG account to join this user group.
 View Only
  • 1.  "Postback" in repeating tables (collections)

    Posted Aug 26, 2021 08:31 AM
    I am using a collection with input fields as a "repeating table" like in infopath.
    So, to write the input value back to the collection, i use a "patch" in the input field "OnChange" property.
    So, as soon as i click outside the field after the input, it writes back the value.

    During filling out, the users normally click directly in the next input field, but due to the post back they have to click a second time, before they can start the next input.

    When filling out many fields, it is very annoying and confusing for the user.
    Do you have any solution idea for that?

    ------------------------------
    Fabian Heil
    ------------------------------


  • 2.  RE: "Postback" in repeating tables (collections)

    Top Contributor
    Posted Aug 27, 2021 12:29 AM
    Use the SetFocus() function after your patch.

    ------------------------------
    Will Page
    Technical consultant
    Christchurch, NZ
    ------------------------------



  • 3.  RE: "Postback" in repeating tables (collections)

    Posted Aug 27, 2021 02:50 AM
    Seems, that this doesnt work in galleries



    ------------------------------
    Fabian Heil
    ------------------------------



  • 4.  RE: "Postback" in repeating tables (collections)

    Top Contributor
    Posted Aug 27, 2021 03:16 AM
    That's annoying. You could take your patch out of the gallery altogether.

    Maybe in the OnSelect of everything in the gallery set a Boolean variable that causes a transparent rectangle to cover the rest of the screen. When the user clicks elsewhere (on the invisible rectangle), patch the whole collection with the values from the controls within the gallery with a ForAll() and set the Boolean back to hide the transparent rectangle. Or just have that variable show a large boldly coloured save button.
    It's nice not to have a save button and just patch everything as you go, but there are a few annoyances that make it hard sometimes.


    ------------------------------
    Will Page
    Technical consultant
    Christchurch, NZ
    ------------------------------