Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
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.

 

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 87 Most Valuable Professional

#2
mmbr1606 Profile Picture

mmbr1606 71 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 65 Super User 2025 Season 1

Overall leaderboard