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 / 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard