PCF - PowerApps Component Framework - with Implementation | Dynamics 365

  Рет қаралды 4,103

Power Dynamix

Power Dynamix

Күн бұрын

Пікірлер: 8
@khwong98
@khwong98 Жыл бұрын
Excellent works.
@powerdynamixx
@powerdynamixx Жыл бұрын
I'm glad you enjoyed the content. Your support means a lot!
@rashimalhotra8642
@rashimalhotra8642 Жыл бұрын
Hello. I have an entity in my model driven app which has 2 fields which are same. Both the fields have my custom pcf control enabled. Now, if I update value of one field, the updateview method is called only for that field. How to call the updateview for the 2nd field at the same time?
@powerdynamixx
@powerdynamixx Жыл бұрын
Could you make sure both PCF controls use the same shared state? When a field is updated, both controls should read and write to the shared state to stay synchronized. Use the same context parameter for both PCF controls. Context parameters allow PCF controls to communicate and share information. Check for changes in the shared state in the updateView method of your PCF controls. If the shared state has been updated, update the control's display accordingly. This way you can check when one field is updated, the shared state will be modified, and both PCF controls will be notified of the change, triggering their updateView methods and keeping them in sync.
@rashimalhotra8642
@rashimalhotra8642 Жыл бұрын
@@powerdynamixx okay, thank you so much for the response 😊 . But how do we make sure that both pcf controls use the same shared state? How is that configured?
@powerdynamixx
@powerdynamixx Жыл бұрын
@@rashimalhotra8642 To ensure both PCF controls use the same shared state: Define context parameters in the PCF controls. Set the same context parameter for both controls in the form editor. Read and write to the context parameter within the PCF control code to share data and stay synchronized.
@ngaihoho4095
@ngaihoho4095 10 ай бұрын
Hi, can I install some other modules by npm install when I make a new control. I tried to npm run build the file and a return error said that can't find the module but it was installed
@powerdynamixx
@powerdynamixx 10 ай бұрын
It seems there might be a configuration issue with your npm installation. The error message you mentioned "the module couldn't be found" despite being installed. Well it can happen due to various reasons like incorrect path configurations or conflicts between different versions of dependencies. I would suggest to double-check if the modules are truly installed. Navigate to your project directory and look for the node_modules folder. The installed module should reside within this folder. Secondly, try clearing the cache and reinstalling the module. Check the specific versions and dependencies to avoid conflicts. Try removing the node_modules folder and package-lock.json file from your project directory and then re-installing the dependencies by running npm install again. Hope this helps! Let me know if you need further assistance.
Moving Word Document Templates in Dynamics 365 with XrmToolBox
7:51
Get Started with PCF Component Development - #GPPB2023
53:28
Dhruvin Shah
Рет қаралды 9 М.
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
Building PCF Controls FULL COURSE for Beginners (2024)
2:43:48
Carl de Souza
Рет қаралды 25 М.
PCF with Scott Durow
1:06:03
NYC BizApps Events
Рет қаралды 4,8 М.
Build awesome PCF’s using React Hooks - David Rivard
57:34
Power Community
Рет қаралды 5 М.