web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Patching a choice colu...
Power Apps
Answered

Patching a choice column using the choice from another table selected via gallery

(0) ShareShare
ReportReport
Posted on by 129

Good morning

 

I have 2 tables nov_agreements and nov_meters

 

both have a column called type with 3 choices.

 

from a list of agreements i want to add a meter. I select the agreement in the gallery and then go to create a meter. 

I want to patch the type field with the type value from the selected agreement. this is what i have 

Alastairs_0-1702635535797.pngAlastairs_1-1702635605859.png

Please let me know if you need any further information.

 

Thanks in advance. Alastair

Categories:
I have the same question (0)
  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    Hi @Alastairs 

     

    If you patch data to choice column you should use this formula

     

     type: {Value: nov_agree_gal.Selected.type}

     

    {
    mprx: meter_edit_mprx_txt_4.Text,
    eac: Value(meter_edit_eac_txt_4.Text),
    g_ref: nov_agree_gal.Selected.gref
    m_ticket_ref: nov_sel_gal.Selected.m_ticket_ref,
    type: {Value: nov_agree_gal.Selected.type}

     

     

     

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

     

  • Alastairs Profile Picture
    129 on at

    Thanks for looking at this. unfortunately that is giving an error still 

    Alastairs_0-1702637128537.png

     

  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    Why you use same combo box to two different column.

     

    {
    g_ref: nov_agree_gal.Selected.gref

    type: {Value: nov_agree_gal.Selected.type}
    }

     

  • Alastairs Profile Picture
    129 on at

    the 2 tables have the same column as i'll need them for different reports however as all meters under the agreement will have the same type i wanted to eliminate the ability for users to select the wrong one

  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    Try this,

     

    type: { Value: nov_agree_gal.Selected.type.Value }

    (Or)

     

     type: nov_agree_gal.Selected.type.Value 
  • Alastairs Profile Picture
    129 on at

    Still the same issue i'm afraid

  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    What is the data type of g_ref column ?

     

    Share current updated formula ?

  • Alastairs Profile Picture
    129 on at

    the q_ref column works fine, it's the type thats not working and that is a choice 

  • Rajkumar_M Profile Picture
    3,747 Moderator on at
  • Verified answer
    Alastairs Profile Picture
    129 on at

    so i've created a workaround, i've put in a drop down box that defaults to the type of the selected agreement and then uses the selected option to patch the meter table.

    I've then hidden the drop down and pretended i've done it properly. 

     

    Thanks for your help though

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard