Virtual React PCF code components - create new, and convert existing ones!

Поділитися
Вставка
  • Опубліковано 13 жов 2024

КОМЕНТАРІ • 27

  • @nerdemcodigo
    @nerdemcodigo Рік тому +4

    Haisenberg, I'm really enjoying every video! You are a great teacher!

    • @ScottDurow
      @ScottDurow  Рік тому +2

      Hehe - Heisenberg 😎 Thank you for watching!

  • @disturbedcarrot
    @disturbedcarrot 2 роки тому +1

    "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!

    • @ScottDurow
      @ScottDurow  2 роки тому +2

      You’ve got this!! 💪

  • @whatsongisthis5691
    @whatsongisthis5691 7 місяців тому

    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!

  • @TikluGanguly
    @TikluGanguly 2 роки тому +1

    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

    • @ScottDurow
      @ScottDurow  2 роки тому +1

      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.

  • @sxlalan
    @sxlalan 2 роки тому +1

    thanks for another great video. Is your PCF course going to reopen for enrolment at any stage?

    • @ScottDurow
      @ScottDurow  2 роки тому +1

      That’s the plan once it is updated for these new features!

  • @saadnadir6630
    @saadnadir6630 2 роки тому

    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 ?

    • @ScottDurow
      @ScottDurow  2 роки тому +2

      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.

  • @mahboobalamcs
    @mahboobalamcs 2 роки тому

    Looks great!
    How about debugging of this Virtual control? Will it be same using fiddler as per MS Docs?

    • @ScottDurow
      @ScottDurow  2 роки тому +2

      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.

    • @mahboobalamcs
      @mahboobalamcs 2 роки тому +1

      Awesome, thanks Scott. You are a legend!

  • @noorsyyed
    @noorsyyed Рік тому

    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

    • @ScottDurow
      @ScottDurow  Рік тому

      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 😊

    • @noorsyyed
      @noorsyyed Рік тому

      @@ScottDurow ok make sense, thank you for your response, really appreciate

    • @Robert-by4vr
      @Robert-by4vr Рік тому

      @@ScottDurow Do you know when virtual controls will be GA so I can start using them in a production environment?

  • @rashimalhotra8642
    @rashimalhotra8642 Рік тому

    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?

  • @MrMakanand
    @MrMakanand Рік тому

    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?

    • @ScottDurow
      @ScottDurow  Рік тому

      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!

  • @hetpatel7215
    @hetpatel7215 2 роки тому

    Are these available in powerapps portals?

    • @ScottDurow
      @ScottDurow  2 роки тому +1

      Not at this time - since portals are not react based - I don't know if there will be a benefit there.

    • @PCFLady
      @PCFLady 2 роки тому +2

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

  • @todorpetkov3715
    @todorpetkov3715 2 роки тому

    What is the Code Extension that you use?

    • @ScottDurow
      @ScottDurow  2 роки тому

      Hi! I am using the Power Platform CLI for VS Code - it supports creating PCF components.

  • @VelaS8068
    @VelaS8068 2 роки тому

    Дон