URL of the Notes Tab - So position it on another tab as a duplicate
-
01 September 2008 19:57
Hi,
I am wanting to duplicate the Notes iframe onto a new tab under accounts. The idea being that if you view the notes tab and the new tab you will see the same information. The reason for this is the new tab includes a lot of information that the staff need to use, but with reference to the notes etc.
I thought that because it is an iframe it shouldn't be a problem having two of the same fields. Any ideas how I can insert a new iframe and make it work as the notes field?
Appreciate any help.
Chris
Semua Balasan
-
01 September 2008 21:56
You can only have 1 notes control per entity. but you can move the entire notes section (not iframe) to any tab you like. just double click on the section and select a new tab for it.
-
01 September 2008 22:53
Hi,
Thanks for the help.
Do you know then if it is possible to actively using Javascript change the entire notes section from the notes tab to another tab when selected. And then back to the notes tab if re-selecting the notes tab again.
If I could do this, my problem is solved.
Thanks,
Chris
-
02 September 2008 0:21
Just realized what you're trying to do. You can easily create a new IFRAME on the desired tab set its “src” attribute with the original notes tab URL and you're done.
Here is a post with a similar request: http://forums.microsoft.com/Dynamics/ShowPost.aspx?PostID=2867250&SiteID=27
-
02 September 2008 1:28
Hi,
I actually found that thread yesterday when I began trying to figure this out, however I was unable to get it going.
Can I not do it simply with a URL, or does it require JavaScript.
At the moment if I use this URL:
/crm/_controls/notes/notesdata.aspx?id=&ParentEntity=4&EnableInlineEdit=true&EnableInsert=trueI do get a notes field with the link to add a new note, but the notes for this client have not loaded into it.
I somehow I feel I am missing the id variable but not sure what it's GET name is.
Is that what the JavaScript is needed for?
Chris
-
02 September 2008 2:04
Chris,
The notes control requires parameters so you need to construct the URL using javascript (dynamically).
Luckily, the JavaScript needed to accomplish that is very simple.
Add a new iframe to the desired tab and call it IFRAME_Notes.
Set the URL to about:blank and uncheck the “restrict cross domain script” checkbox.
In the form onload event insert the following script:
Code Snippetfunction
OnCrmPageLoad(){
CreateNotesIframe();}
function CreateNotesIframe()
{
var IFRAME_Notes = document.all.IFRAME_Notes;IFRAME_Notes.src =
"/MicrosoftCRM/_controls/notes/notesdata.aspx?id=" + crmForm.ObjectId + "&ParentEntity=" + crmForm.ObjectTypeCode + "&EnableInlineEdit=true&EnableInsert=true";}
OnCrmPageLoad();
-
02 September 2008 2:40
Hi Adi Katz,
Thanks! That work perfectly.
Exactly what I was after.
Just to clarify for anybody else reading this forum.
This part of the code (Where is reads MicrosoftCRM bold in red below):
IFRAME_Notes.src = "/MicrosoftCRM/_controls/notes/notesdata.aspx?id=" + crmForm.ObjectId + "&ParentEntity=" + crmForm.ObjectTypeCode + "&EnableInlineEdit=true&EnableInsert=true";
This is the unique name of your CRM. Should be seen in the top right of the main CRM window under your login name.
Many thanks,
Chris
-
21 September 2008 8:24
Hi chris ,
The source should be for any deployment:
Code Snippetfunction CreateNotesIframe()
{
var IFRAME_Notes = document.all.IFRAME_Notes;
IFRAME_Notes.src = "/"+ORG_UNIQUE_NAME+"/_controls/notes/notesdata.aspx?id=" + crmForm.ObjectId + "&ParentEntity=" + crmForm.ObjectTypeCode + "&EnableInlineEdit=true&EnableInsert=true";
}For on-premise CRM deployment.
Shai