"It really is that simple...", I always chuckle when I hear Scott saying that! Excellent video, thanks Scott, hopefully I'll figure it out - eventually!
10/10. Clear and consise. Thanks! FYI I had a an issue when trying to execute "npm start watch" and other NPM commands where it couldn't find pcf-scripts.js. This is because the folder containing my project (even several levels up in the file path) had a space character in it. So make sure your containing folders are all space-character free!
Thanks again for yet another great video. Looking forward to seeing this feature becoming GA. This is totally a no-nonsense next logical step for PCF. And thanks to your video I get to try it hands-on :D
Thank you Tiklu - and thank you for watching. 😊 I can't imagine it will be long before it is GA since all the first party components are using this technique already.
Hello Scott. I have 2 same optionset fields on the form in my model driven app.. So I created 1 custom pcf control and tagged to both the same fields. When I select a value on field 1, field 1's updateview is called, which changes color of the selected option. But how to call field 2's update view also at that time?
Thank you ! @Scott , this looks in GA now, as it implements ComponentFramework.ReactControl when I create a new pcf, but wondering how it keeps up with the react and fluent library versions to match the platform verions
The virtual controls are still in preview (although they are very stable now and in use by many Microsoft controls including the creator kit) - learn.microsoft.com/en-us/power-apps/developer/component-framework/react-controls-platform-libraries The version of react and fluent must be 16.8.6 and 8.29.0 respectively at this time - as new versions are supported, I suspect we will be able to specify in the manifest file that we require a later version. Thanks again for watching and subscribing 😊
Yes- exactly the same! Only down side is that the react library is the production one and so for React error you will need to use the react error code decoder rather than having the full description in the console log.
what a great thing to just return the react component rather than rendering it, great job (y), aaaaaaaaaaand the optimization of course => in love, now what about the version of react and Fluent UI to be used ? how to maintain it, is their a way to directly point to the last one used in the environment ?
It is definitely a much more mature approach than bundling everything and creating a new virtual DOM with each control! As for versions - it looks like the only version of react available is 16.8.6 and 8.29.0 of fluent - we will have to see how this progresses over time as the platform moves on. I feel the best approach is to stick to a specific version of fluent/react in your package.json so that you can be sure you are not using anything that the platform does not provide.
Hi, Do we need to update the custom controls if MS updates react version in CRM, to use the new version of react that the CRM uses.How do we know that is updated and will it be compatible if we don't change?
Hi! You specify the exact version in the platform libraries section on the manifest - currently only one version is available but I am guessing there be later versions available in the future - how this will maintain backward compatibility I don’t yet know!
@@ScottDurow This is still a valid point though. That means that we might have to keep the PCFs in two versions: the one for Model-Driven and Canvas Apps (Custom Pages) and the ones for Portals
"It really is that simple...", I always chuckle when I hear Scott saying that! Excellent video, thanks Scott, hopefully I'll figure it out - eventually!
You’ve got this!! 💪
Haisenberg, I'm really enjoying every video! You are a great teacher!
Hehe - Heisenberg 😎 Thank you for watching!
10/10. Clear and consise. Thanks!
FYI I had a an issue when trying to execute "npm start watch" and other NPM commands where it couldn't find pcf-scripts.js. This is because the folder containing my project (even several levels up in the file path) had a space character in it. So make sure your containing folders are all space-character free!
Thanks again for yet another great video. Looking forward to seeing this feature becoming GA. This is totally a no-nonsense next logical step for PCF. And thanks to your video I get to try it hands-on :D
Thank you Tiklu - and thank you for watching. 😊
I can't imagine it will be long before it is GA since all the first party components are using this technique already.
Hello Scott.
I have 2 same optionset fields on the form in my model driven app.. So I created 1 custom pcf control and tagged to both the same fields.
When I select a value on field 1, field 1's updateview is called, which changes color of the selected option.
But how to call field 2's update view also at that time?
thanks for another great video. Is your PCF course going to reopen for enrolment at any stage?
That’s the plan once it is updated for these new features!
Thank you ! @Scott , this looks in GA now, as it implements ComponentFramework.ReactControl when I create a new pcf, but wondering how it keeps up with the react and fluent library versions to match the platform verions
The virtual controls are still in preview (although they are very stable now and in use by many Microsoft controls including the creator kit) - learn.microsoft.com/en-us/power-apps/developer/component-framework/react-controls-platform-libraries
The version of react and fluent must be 16.8.6 and 8.29.0 respectively at this time - as new versions are supported, I suspect we will be able to specify in the manifest file that we require a later version.
Thanks again for watching and subscribing 😊
@@ScottDurow ok make sense, thank you for your response, really appreciate
@@ScottDurow Do you know when virtual controls will be GA so I can start using them in a production environment?
Looks great!
How about debugging of this Virtual control? Will it be same using fiddler as per MS Docs?
Yes- exactly the same! Only down side is that the react library is the production one and so for React error you will need to use the react error code decoder rather than having the full description in the console log.
Awesome, thanks Scott. You are a legend!
what a great thing to just return the react component rather than rendering it, great job (y), aaaaaaaaaaand the optimization of course => in love, now what about the version of react and Fluent UI to be used ? how to maintain it, is their a way to directly point to the last one used in the environment ?
It is definitely a much more mature approach than bundling everything and creating a new virtual DOM with each control! As for versions - it looks like the only version of react available is 16.8.6 and 8.29.0 of fluent - we will have to see how this progresses over time as the platform moves on. I feel the best approach is to stick to a specific version of fluent/react in your package.json so that you can be sure you are not using anything that the platform does not provide.
Hi, Do we need to update the custom controls if MS updates react version in CRM, to use the new version of react that the CRM uses.How do we know that is updated and will it be compatible if we don't change?
Hi! You specify the exact version in the platform libraries section on the manifest - currently only one version is available but I am guessing there be later versions available in the future - how this will maintain backward compatibility I don’t yet know!
Are these available in powerapps portals?
Not at this time - since portals are not react based - I don't know if there will be a benefit there.
@@ScottDurow This is still a valid point though. That means that we might have to keep the PCFs in two versions: the one for Model-Driven and Canvas Apps (Custom Pages) and the ones for Portals
What is the Code Extension that you use?
Hi! I am using the Power Platform CLI for VS Code - it supports creating PCF components.
Дон