cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
melaniez
Frequent Visitor

Lookup columns not displaying in forms

Hi, 

 

I searched in the forum but I didn't find a solution for my issue.

 

I have two tables, one for Projects and an other one for Managers. I have fields such as "Project Manager", "Sponsor" in the table Projects, these fields are combo box and are linked with the table "Managers". The table Managers was created by me. 

 

I put a Display Form in my canvas apps, to display the fields and especially these fields. In development mode, these fields are showing up normally 🙂 But in execution mode, they don't appear. (In my edit form, they appear normally, both in development and execution mode). 

 

I tried to refresh the data sources, to remove and put again the fields but it doesn't work. 

 

The Display Form is linked with the main page in which there is a gallery. The formula I put in my gallery object (for the OnSelect) is :

 

Set(varFormData,LookUp('Projects','Project Title'=Gallery1.Selected.'Project Title')

 

 

I also tried before : 

 

Set(varFormData,Gallery1.Selected)

 

 

varFormData is the variable that I use in the "Item" property for the Display Form. 

 

Thanks in advance for your precious help !

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @melaniez ,

You need to reference the list (source) in the Form - try this

Set(
   varFormID,
   LookUp(
      'Projects',
      'Project Title' = Gallery1.Selected.'Project Title'
   ).ID
)

and then your Form Item

LookUp(
   'Projects',
   ID = varFormID
)

however if (as I suspect), you are doing this OnSelect of Gallery1, the first one can simply be

Set(
   varFormID,
   ThisItem.ID
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

 

View solution in original post

1 REPLY 1
WarrenBelz
Super User
Super User

Hi @melaniez ,

You need to reference the list (source) in the Form - try this

Set(
   varFormID,
   LookUp(
      'Projects',
      'Project Title' = Gallery1.Selected.'Project Title'
   ).ID
)

and then your Form Item

LookUp(
   'Projects',
   ID = varFormID
)

however if (as I suspect), you are doing this OnSelect of Gallery1, the first one can simply be

Set(
   varFormID,
   ThisItem.ID
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

 

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (2,735)