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 / PCF Issue With Model A...
Power Apps
Unanswered

PCF Issue With Model App Utilizing New Global Search Experience

(1) ShareShare
ReportReport
Posted on by 160

I recently turned on the new Global Search Experience for my model apps and found an interesting issue with PCF components that do not display the View Selector.

 

When the view selector is hidden utilizing the cds-data-set-option the Global Search Experience search box becomes the first focused item when you click on the Sitemap link displaying the PCF component.  This causes the "recent searches" drop down to displays until the user click on another element on the page.  This is very frustrating to user of the system since this happens every time they open this sub-area on the sitemap.

 

RAWilson_0-1611077791839.png

 

The cause of Issue is the displayViewSelector being set to false in the ControlManifest.Input.xml file.  I have tried every combination of the displayCommandBar, displayViewSelector, and displayQuickFind being true/false and have discovered that this only happens when the displayViewSelector is set to false.  Displaying any of the other elements does not fix the issue.  During my testing I also removed all the code from my init and updateView functions to ensure none of my code was causing the problem.

 

<data-set name="dutyStatusDataSet" display-name-key="Dataset_Display_Key" cds-data-set-options="displayCommandBar:false;displayViewSelector:false;displayQuickFind:false">

 

 

Workaround: 

Temporarily I am using a workaround to alleviate this issue.  I set the displayViewSelector to true and then manually hide it using the following code which i run during the init function within the index.ts.  This works and the timing is fast enough that the user does not see the view selector.

 

 

let viewSelector = document.querySelector("div[data-id='data-set-body-container']")?.parentElement?.previousSibling;	
		if (viewSelector)
		{
			(viewSelector as HTMLDivElement).style.display = 'none';			
		}

 

 

 

 

I have the same question (0)
  • ScottDurow Profile Picture
    1,039 on at

    I believe this is a more general issue with the new search experience - with a fix being worked on. The behaviour happens for the 1st party functionality as well in some places.

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard