I am using the following code in a label to display a single text value from a sharepoint list called 'procurement':
LookUp(Procurement, ProjectCode exactin Col_ProjectDetails_SingleProject.ProjectCode,Contractor)
'Contractor' is a text value. It displays as simply blank/white space in my label.
If I enter a different column, such as 'Fee', which is a numeric value, then the value displays OK.
The list only has about 100 rows so I don't think it's a delegation issue. Ive tried 'contractor.text' and enclosing the lookup() function in Text() parenthesis with no success. Thanks!
What's causing this? I tried 'contractor.text' and enclosing the lookup() function in text() parentheses with no success.
Any chance you are putting Contractor inside of a Text Input rather than a label? When a text input is set to number it will show any Default text as blank.
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
OK, I figured it was not a label. You have posted here quite a bit and your questions are always very intelligent. I guess you could say I know you are a more of an advanced user 🙂
What type of column is this in SharePoint? Are you getting any errors? A screenshot of your app + environment would be great. I will not guarantee I know the answer but I will try to help.
If you have any instructions for me to replicate your situation I could give it a try!
Hi, thanks for the quick reply, and apologies if my queries come across as rather frequent! I do my best to find solutions elsewhere before posting on the community but Powerapps is now a key aspect of my current work, so I frequently find myself encountering 'edge case' situations (with respect to my own limited experience of the software).
See attached for a screenshot. Maybe that helps?
Thanks for looking into the issue, anyhow! 🙂
Not a problem to ask frequent questions. That's what the forum is here for! I am lucky to have at least one other person in my company who builds with PowerApps so I can ask them questions if I get stuck. Many others are not as fortunate I suspect and that's why the coming to the forum is great!
I notice you have many Warning symbols in your app: what can you tell me about those? What error message is being displayed?
Also, what type of control is the text being shown within? I could now see your tree menu as the screenshot was cut-off at the left.
Hi, sorry for the screengrab cutoff. It's just a standalone label, although it's positioned on a scrollable screen within a datacard. It's not embedded within a gallery, if that's what you mean.
The warning symbols relate to my use of the lookup() function on a sharepoint list. Each warning refers to a separate instance (eg a label asking powerapps to look up a given record and return a given field). I don't think it'll be an issue in the short term, since we've only got about 100 records in the list. But definitely something to be aware of!
Hi @MaxDonen ,
Could you please share a bit more about the ProjectCode column in your Procurement List? Is it a Text type column or Number type column?
Could you please show more details about the Col_ProjectDetails_SingleProject? Is it a collection in your app?
Please consider modify your formula as below:
LookUp(Procurement, ProjectCode in Col_ProjectDetails_SingleProject.ProjectCode, Contractor)
LookUp(Procurement, ProjectCode in Col_ProjectDetails_SingleProject.ProjectCode).Contractor
Note: Please use 'in' operator rather than 'exactin' operator in above formula.
On your side, please also check if there are some records (in your Procurement List) whose ProjectCode value is included within the result the Col_ProjectDetails_SingleProject.ProjectCode formula returned (I guess it is a Table).
Please also check if the Contractor column of the matching record is Blank in your Procurement SP List.
Check it out!
Check it out!
Fill out a quick form to claim your user group badge now!
Find out where you can attend!
Features releasing from October 2019 through March 2020
The largest Power BI, Power Platform, and Data conference in New Zealand