Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Unanswered

react list in model-driven app

(0) ShareShare
ReportReport
Posted on by 63

Hi,

 

I want to build an empty model-driven app that contains a react component and PCF, connects to CDS and shows the data in a list in the first step. React will be used because of fabric UI.

I have built the App and used the official guidelines to deploy it.

Now I want to have only an empty model-driven app that contains my list in a first step.

 

I have several questions:

  1. Is this the right way to embed customized lists and other components that are interacting with CDS?
  2. Is there anywhere a guide on how to embed a react solution in the correct way?
  3. Do I have to declare it as a grid or subgrid in the manifest?

 

Cheers

FS

  • fs92 Profile Picture
    63 on at
    Re: react list in model-driven app

    Hi HemantG,

     

    what do you mean with the Landing Page? Is it the first Page of the model driven app for an Entity?

    Or do you mean the new Portal Feature with Landing Page as Template?

    edit:

    I have now implemented as follows:

    1. Uploaded the react solutions 

    2. Added View to Entity

    3. Added Custom Control as Grid to View

    4. Created a new model-driven app

    5. Added Entity to model-driven app

    6. Added only the customized view to the entity/model-driven app...

     

    I'm getting now the data of the entity grid to add it over my react solution.

    For this I have logged: console.log(this._context.parameters.dataSetGrid);

    which shows that items are available... How can I access a full dataset/row now??

     

    Best regards

    fs92

  • Hemant Gaur Profile Picture
    on at
    Re: react list in model-driven app
    • Is this the right way to embed customized lists and other components that are interacting with CDS?

    Model driven app Navingation and command bars can be hidden using the navbar and cmdbar url paramers. See sample here 

    You need to have the entity grid for which you are building the custom react customization as landing page which would result in visually showing only your component witout any model app shell like image below. You need to manage navigations from your custom PCF now as needed using APIs for navigation or open record item from grid.

     

    Forum.png

    • Is there anywhere a guide on how to embed a react solution in the correct way?

    React PCF controls can replace form feilds , grids , sub grids and associated grids at entity or record level. You can add these at entity and view level. Also CDS data set options in the control manifest can control what PCF can show - cds-data-set-options="displayCommandBar:true;displayViewSelector:true;displayQuickFindSearch:true"

    See documentation here

    • Do I have to declare it as a grid or subgrid in the manifest?

    If you are planning to take over the whole page , yes declaring it as a data set type controls and configuring it to landing page entity will do the trick. Note that this being PCF you have access to CDS data and also you can use setControlState API to locally cache stuff for faster reload. 

     

     

    hemant

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 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…

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 109 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 82 Super User 2025 Season 1

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 72

Overall leaderboard