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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / why in Powerapp edit f...
Power Apps
Unanswered

why in Powerapp edit form, on selection of lookup filed data fetching is not working properly ?

(0) ShareShare
ReportReport
Posted on by 17

Hi All,

I have two list.

1. "ChildList" with two column -"ChildRequestNumber" (lookup) & "ChildRequesterName" (SingleLine text)

2. "ParentList" with two column - "ParentRequestNumber" (Number type filed) & "ParentRequesterName" (SingleLine text).

Here "ChildRequestNumber" is lookup with "ParentRequestNumber". 

In powerapp form, in new form, on selection of "ChildRequestNumber" lookup field I am fetching data from "ParentList" and displaying in power app form. for ex - I am fetching "ParentRequesterName" data and displaying in "ChildRequesterName" filed. Its working fine. 

I wrote on default property of "ChildRequesterName" filed -:    LookUp('ParentList', 'ParentRequestNumber' = Value(DataCardValue35.Selected.Value),'ParentRequesterName').

 

But in edit form of powerapp, "ChildRequestNumber" (lookup) is showing with extra zeros (because it is lookup with number filed) so to remove extra zero, I wrote

on defaultselectedItem - {
Id: LookUp('ParentList', 'ParentRequestNumber' = Value(ThisItem.ChildRequestNumber.Value), ID),
Value: Text(Value(ThisItem.ChildRequestNumber.Value), "[$-en-US]##,###,###")
}

This is also working fine and removed extra zero. But "ChildRequesterName" is showing empty in edit form. Even I have used same formula in edit form also:

on default property of "ChildRequesterName" filed -:    LookUp('ParentList', 'ParentRequestNumber' = Value(DataCardValue35.Selected.Value),'ParentRequesterName').

Note- DataCardValue35 is same in both new and edit form.

If we set default property of "ChildRequesterName" filed  to parent.default     it will work fine but when again selected lookup column it data will not change because it is set parent.default.

Please help me out in this. what I need to do to show data in edit form by default and after selection of lookup filed.

Thanks a lot !

 

 

Categories:
I have the same question (0)

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard