Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control doesn't show updated content (getAttribute.setValue) #6

Closed
jellevervloessem opened this issue May 11, 2020 · 2 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@jellevervloessem
Copy link

Hi,

onChange of Field A, we load text from another entity in the content of the RichText-field.
formContext.getAttribute("meetingminutes").setValue(templateText);
but since I installed the managed version (and now also v2.4) the D365RichtTextEditor won't show the update text.

Am I missing something? Or is the control not aware of any change?

@ChrisMayor
Copy link
Owner

Hello Jelle,

currently, the control is not aware of any change with setValue (since fixing of the issue: #2).

I will try to solve this in the next days.

@ChrisMayor ChrisMayor added the bug Something isn't working label May 12, 2020
@ChrisMayor ChrisMayor self-assigned this May 14, 2020
@ChrisMayor
Copy link
Owner

The way async changes are handled in the PCF Framework is not good. I hope Microsoft will provide a better support for changes and change detection in future versions of the PCF Framework.

I now made some workarounds in the control and I think it works now good for a text control including change detection. So, please upgrade to 2.5 and please let me know if you observe any side effects.

I had a look at some different pcf text controls on Github and haven't seen one with a good solution for this, so either the avoid any change detection (by not calling NotifiyChanged in the control) or don't support setValue in Dynamics (by ignoring updates after initialization of the control),

This Text control offers now both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants