Hi everyone
I have to custom entity A and B.
Now I want to add A's notes section into B's form, and I need to be able to edit A's notes in B's form.
I use iframe to get A's entity id and object id, and put the link in the iframe to show.
The note section shows correctly in B's form, and edit existing note record is fine as well.
However, if I try to add a new note, and error happened. I checked details, found that the entity id is not A's entity id in the iframe, but B's entity id. So it throw an error said "the record with id "XXXXXX" in entity A cannot be found. Is there any ideas?
*This post is locked for comments
Hi Kevin, I don't think this is a supported customisation. There are a bunch of OOTB script that currently used by that notes control to manipulate DOM and trigger events on certain behaviour. The script is trying to find the 'Notes' object, thus it picked up the Notes control on the Entity B.
The only alternative to achieve your requirement is to create your own web resource control that programmatically create/update the notes.
Or put a lookup reference to Entity A to open that record and edit the Notes directly from there.
Edit: was writing this answer and Scott already answered and mentioned another alternatives
Hi, this isn't a supported scenario and generally there are always problems when embedding UI elements in iframes. Could you not still allow notes on entity B put pull together an aggregate view on entity A or even use a workflow/plugin to mirror/copy notes from B up to A. Without knowing the specific scenario, it is hard to suggest any other solution.
Hope this helps,
Scott
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,134 Super User 2024 Season 2
Martin Dráb 229,928 Most Valuable Professional
nmaenpaa 101,156