cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mattr87
New Member

Multiple datasets in pcf control for canvas app

Hi!

Does anyone know if it is possible to have mulitple datasets in a pcf control for the intention of adding the control to a canvas app? I have tried but running into a error importing the control into a canvas app.

 

For example, in controlManifestInput xml:

<manifest>
     <control>
        <data-set name="sampleDataSet0" display-name-key="Dataset_Display_Key0" />
        <data-set name="sampleDataSet1" display-name-key="Dataset_Display_Key1" />
        <resources/>
     </control>
</manifest>
 
Thanks!
 
4 REPLIES 4
DianaBirkelbach
Super User
Super User

I have the same problem. If it’s supported, seems to be a bug right now. 
Kind regards,

Diana

Kind regards,
Diana
----------
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Yes, seems to work fine in development environment but no success in power apps (canvas) studio.

I don't think it's supported.

 

If you think about how a dataset actually works - the dataset is specified on the page  (outside the context of the PCF control) and then you override the PCF control used to render the data (from datagrid / editable datagrid) to your own control.

 

And we've seen elsewhere (from the attempts to update fields on a form from a dataset control) that a subgrid on a page is completely separated from the rest of the page.

---
If this post has answered your question please consider it for "Accept as Solution" or if it has been helpful give it a "Thumbs Up".

Hi @ben-thompson 

 

If it's really unsupported in CanvasApps, would be good to know. Right now the parameter-combinations are not listed anywhere. 

 

More datasets pcfs works perfectly in ModelDriven Apps. Even the PCF Template for dataset has a comment in the manifest  saying that we can use more than one:

   <!-- dataset node represents a set of entity records on CDS; allow more than one datasets -->

It's a really elegant possibility, which I use in ModelDriven Apps. I see it as the same principle as the field pcfs accepting more parameters; dataset pcfs accepts more datasets. It's not about changing data: it's readonly anyway.

Until now I don't really understand the reason beyond not being able to use more datasets in CanvasApps and I didn't get a better error message in order to understand if it's unsupported or just a bug.

 

Kind regards,

Diana

----------
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Kind regards,
Diana
----------
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Users online (1,765)