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 / How to Edit Text Box b...
Power Apps
Unanswered

How to Edit Text Box based on to Table later - connected to Combo Box Selection

(0) ShareShare
ReportReport
Posted on by 2
I am using on the screen TextBox. When the variable is true , the data of text box get saved by patch command button.
But the value which I am selecting is based on the Lookup of combo box.
When it is new record it is ok, I select the combox box, based on the selection it fill my text box and I saved.
But when I want to correct the info of the text, then my I want to select another selection of combox box, But that does get applied as the old record is based on SearchResultGallery_3.Selected.AddressTo
 
Confused, how to correct the code. I want in both the situation New or Old Record the ability to select Combox to get the value and later save it. 
Please advise what correction to be done in the below code
 
 
If(gblReturnNewRecord,
LookUp(TablePartsReturnAdd,SelectTo = ComboBox1_1.Selected.SelectTo,AddressP)
, SearchResultGallery_3.Selected.AddressTo)
Categories:
I have the same question (0)
  • Loconam Profile Picture
    42 on at

    I'm not sure if I understand correctly, but what about using Parent.Default?

     

    If(gblReturnNewRecord,

    LookUp(TablePartsReturnAdd,SelectTo = ComboBox1_1.Selected.SelectTo,AddressP)
    , Parent.Default())
  • MIA27 Profile Picture
    2 on at

    Parent.Default() cannot be assigned as all the controls of my screen save the data by patch() function and for view I connected them via gallery.

     

    Any idea

     

     

  • MIA27 Profile Picture
    2 on at

    Any idea.

    As explained, fully it can be depended on combox box. The code is that if the new record, it accept the value of the combox else it show the value of the earlier saved data.

     

    Now my situation is that I want to edit the old data as well based on the selection,

    What changes to be done to acheive all the 3 below :

     

    If New accept based on combox,

    on edit also accept on combobox,

    else value to remain of earlier saved data.

     

    Pls. guide

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,070

#2
Valantis Profile Picture

Valantis 639

#3
11manish Profile Picture

11manish 608

Last 30 days Overall leaderboard