Power Apps Exchange

Please login or click SIGN UP FOR FREE to create your PowerAppsUG account to join this user group.
 View Only
  • 1.  Variable data in button onselect

    Bronze Contributor
    Posted Sep 13, 2022 04:53 PM
    I have a SharePoint list that has a column for button label and one for button action.  I used this list to create a collection and then the collection to create a gallery, including a button.  I set the text property to be the label and that works as expected.  However the onselect does not.  Nothing happens when I click the button.

    I can create a standalone button and specify Launch(....)and that works fine.  If put that command in a list row/column then reference it in the button onselect as ThisIte.Action nothing happens when the button is clicked.  I also tried just the app ID in the list and the reset of the Launch command as string values in the onselect (I used & to combine the strings with ThisItem.Action in the correct place but also no luck).

    The ThisItem.Action evaluates ok but it does not seem to be effective for a button onselect.  Does anyone know if onselect can take variables for a button?  Really destroys a great design approach I am trying to take.

    Thanks


    ------------------------------
    Larry Heimendinger
    larry@techevents.com
    EverettWA
    ------------------------------


  • 2.  RE: Variable data in button onselect

    Top Contributor
    Posted Nov 10, 2022 09:04 PM
    Hi Larry,
    What is the content of ThisItem.Action? If it is a string with "Launch( . . . )" this will not work - you cannot dynamically specify commands like this.​

    ------------------------------
    Warren Belz
    Queensland Australia
    ------------------------------



  • 3.  RE: Variable data in button onselect

    Bronze Contributor
    Posted Nov 13, 2022 03:39 PM
    I already found out that dynamic data can't be resolvled in a command like this.  Thanks for responding.

    ------------------------------
    Larry Heimendinger
    larry@techevents.com
    EverettWA
    ------------------------------