Power Apps Exchange

Please login or click SIGN UP FOR FREE to create your PowerAppsUG account to join this user group.
 View Only
  • 1.  Saving an ID from a combo box after selecting the item from the combo box using data cards

    Posted Feb 08, 2023 03:51 PM
    Hello All,

    I am drawing a blank and hoping someone knows the answer.  I am missing something.

    I have a From that has a Category data card that uses a combo box to select the Category from the Category table.  The combo box only allows for one Category to be selected
    There is a CategoryID data card on the form, hidden, and I need that field filled in with the ID of the Category table of the selected Category from the combo box.
    If the Category is updated for a record then the CategoryID would be updated with the new ID.

    I have tried a number of ways to get this to work and I an not having any luck.

    Thanks in advance for your help.

    Kind regards,


    ------------------------------
    John Heck
    ------------------------------


  • 2.  RE: Saving an ID from a combo box after selecting the item from the combo box using data cards
    Best Answer

    Bronze Contributor
    Posted Feb 09, 2023 01:34 PM

    Set the default value of Category ID card data to be the selected value of the combo box.

    Another way to d it would be to set a variable at OnChange property of combo box and have that variable be the default for the card



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



  • 3.  RE: Saving an ID from a combo box after selecting the item from the combo box using data cards

    Posted Feb 10, 2023 11:29 AM

    Hello Larry, that is what I figured out, was to set the default value of the Category ID card data to the selected value of the combo box.  

    Thanks for the help.



    ------------------------------
    John Heck
    ------------------------------