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 / Unable to use one pcf ...
Power Apps
Unanswered

Unable to use one pcf control in another control

(0) ShareShare
ReportReport
Posted on by 7

Hi Team,

 

I have few pcf controls in one project. Each control is a dataset control which displays list of records and filter functionality is also implemented in each control. Let's consider control names as grid1,grid2 etc.

I had a requirement to add one extra filter to all the pcf controls, here I need to use multiple react controls like hover card, text field and action button. So I created one tsx file(customLookup.tsx) and added extra filter related code in that file.

I am importing customLookup.tsx to the main file grid1.tsx. its working as expected.

Now, instead of creating new customLookup.tsx in grid2 control, I wanted to use the same tsx file(as the complete code of customLookup is same for all controls).

 

I am importing customLookup.tsx from grid1 control to the grid 2 control using below syntax.

Import {customLookup} from "../../../grid1/grid1/controls/customLookup"

Calling customLookup with below syntax.

<customLookup context={this.props.context} > </customLookup>

Here I am passing grid 2 props context to the grid 1 customLookup.tsx so getting below issue. 

"ComponentFramework.context(grid2/generated/manifestTypes).IInputs" is not assignable to "Component framework.context(grid1/generated/manifestTypes).IInputs".

 

Thanks in advance. Any help on this issue is much appreciated.

 

Regards,

Anusha Boppudi.

 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard