-
Notifications
You must be signed in to change notification settings - Fork 19
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
Never finish loading... quick edit form #126
Comments
Hello, |
ok, here is the file with the errors: yes, there are a few, some are maybe mine but another could be something to do with the control... |
Thanks for the log, helpful ! |
no, the lookup field name is "axx_persona", it is a relationship with accounts, here it is an image, and when I reload the form then it loads correctly, and all the errors disapear, here the log from the page when it loads correctly: |
Hello Clement, how are you doing?, Do you know what this could be? I wnat to know because if i don't resolve it I won't be able to use your control and it seems to be a small bug maybe. Thanks!! |
Hi, I am experiencing the same issue, exactly as @vernetmatias. I found 2 possible solutions I believe, but would like to verify with other users and @carfup that it is correct. The problem seems to be that private variable _parentRecordDetails is getting new value in getParams method which is called from updateView. Now, queryQuickViewFormData method does await getLookupDetails method which sets Attributes property of the _parentRecordDetails. But before queryQuickViewFormData comes to call processFormXmlData, it seems that the framework calls updateView multiple times and thus reset _parentRecordDetails leaving it Attributes property equal to undefined. The error happens later in retrieveFieldOptions method when it tries to access techFieldName attribute. I tested 2 solutions, first is to stop calling getParams method from updateView and call it from init method. I am not sure about this one, although it seems to work for me it might be something I am missing and Clement intentionally calls this one from updateView. Do you see any problem with this solution @carfup ? Second solution is just to create a new private variable for parent record attributes and replace occurences of _parentRecordDetails.Attributes with the new variable. It would be great to hear from you @carfup about this. Thanks in advance. |
Hi, @radevic I'll check your two approaches and get back to you. I have to push a new release soon since I also adjusted the PCF to be bind on a lookup field so :). Regards, |
Hello, |
Model Driven App =). |
as follow up, @radevic you were right, about the approach. |
Good to hear that @carfup , looking forward to see the next release, thanks :) |
The release 1.4.0.0 is available to fix this : https://github.com/carfup/PCFControls/releases/tag/1.4.0.0 |
Hello Clement,
When I create a record using Flow and then open the record, the control doesn't loads at the first time I open it but if i close and then open again then it loads properly,
here is a print screen it stays like that:
then when i go out from the form and reopen it, it loads:
The text was updated successfully, but these errors were encountered: