tag:blogger.com,1999:blog-9296511.post114986411224313437..comments2023-07-29T06:13:05.725-05:00Comments on ICU MSCRM: Showing Associated Activities In An IFrameUnknownnoreply@blogger.comBlogger122125tag:blogger.com,1999:blog-9296511.post-32593088573429905852009-11-16T11:38:50.714-05:002009-11-16T11:38:50.714-05:00UPDATE to the previous POST:
That code works for ...UPDATE to the previous POST:<br /><br />That code works for all 3 entities, including Contracts. One of my Field's OnChange Events was causing the problem with Contracts.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9296511.post-74471880624511705922009-11-13T11:29:54.388-05:002009-11-13T11:29:54.388-05:00This is awesome! I've applied this to Activit...This is awesome! I've applied this to Activities Associated with Contacts, Accounts, & Contracts so far. It works great except for Contracts. I thought I had updated the url & the object type correctly. Any help with the CONTRACTS would be greatly appreciated...<br /><br />CONTACTS<br />var navActivityHistory;<br />navActivityHistory =<br />document.all.navActivityHistory;<br /><br />if (navActivityHistory != null)<br />{<br />navActivityHistory.style.display = "none";<br />document.all.IFRAME_HistoryFrame.src="/sfa/conts/areas.aspx?oId=" +<br />crmForm.ObjectId +<br />"&oType=2&security=852023&tabSet=areaActivityHistory";<br />}<br />else<br />{<br />alert("navHistory Not Found");<br />}<br /><br />ACCOUNTS<br />var navActivityHistory;<br />navActivityHistory =<br />document.all.navActivityHistory;<br /><br />if (navActivityHistory != null)<br />{<br />document.all.IFRAME_HistoryFrame.src="/sfa/accts/areas.aspx?oId=" +<br />crmForm.ObjectId +<br />"&oType=2&security=852023&tabSet=areaActivityHistory";<br />}<br />else<br />{<br />alert("navHistory Not Found");<br />} <br /><br />CONTRACTS<br /><br /><br />var navActivityHistory;<br />navActivityHistory =<br />document.all.navActivityHistory;<br /><br />if (navActivityHistory != null)<br />{<br />navActivityHistory.style.display = "none";<br />document.all.IFRAME_HistoryFrame.src="/cs/contracts/areas.aspx?oId=" + <br />crmForm.ObjectId +<br />"&oType=1010&security=852023&tabSet=areaActivityHistory";<br />}<br />else<br />{<br />alert("navHistory Not Found");<br />}Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9296511.post-66550536906634311912009-09-23T06:20:44.279-05:002009-09-23T06:20:44.279-05:00Hi everybody
Thanks Matt
Nice post, but I have som...Hi everybody<br />Thanks Matt<br />Nice post, but I have some problems with it.<br />My task is to show opportunities liek you did with History<br /><br />i didn't add iframe via =>customization.<br />i create an element('iframe')<br /><br />the script :<br /> switch (crmForm.FormType)<br /> {<br /> case CRM_FORM_TYPE_UPDATE:<br /> case CRM_FORM_TYPE_READONLY:<br /> case CRM_FORM_TYPE_DISABLED:<br /> var createdElement = document.createElement("iframe");<br /> createdElement.id = "oppsFrame";<br /> createdElement.style.backgroundcolor = "#ffffff";<br /> createdElement.style.width = parentElement.offsetWidth;<br /> createdElement.style.height = "500";<br /> createdElement.removeNode(true);<br /><br /> createdElement.src="/sfa/conts/areas.aspx?oId=" + crmForm.ObjectId + "&oType=" + crmForm.ObjectTypeCode + "&security=" + crmFormSubmit.crmFormSubmitSecurity.value + "&tabSet=areaOpps";<br /> parentElement.appendChild(createdElement);<br /><br /><br /> break;<br /> }<br /><br />I get the window for opportunities where i want to get it,but it is empty-no records (if i choose opportunities from nav menue- i get 2 records )<br /><br />The second problem is when i tried to make "New Opportunity" -i've got CRM Exception :<br />[CrmObjectNotFoundException: contact With Id = 51639e7d-be92-dd11-a862-0003ffd47388 Does Not Exist]<br /> at Microsoft.Crm.BusinessEntities.BusinessProcessObject.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context, Int32[] deletionCodes, Int32 languageCode)<br /> at Microsoft.Crm.BusinessEntities.BusinessProcessObject.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context, Int32[] deletionCodes)<br /> at Microsoft.Crm.BusinessEntities.BusinessProcessObject.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context)<br /> at Microsoft.Crm.ObjectModel.CustomizationService.InitializeFrom(BusinessEntityMoniker moniker, String <br /><br />What is wrong?!<br /><br />YuriYurinoreply@blogger.comtag:blogger.com,1999:blog-9296511.post-71898291521585675022009-06-04T21:02:31.592-05:002009-06-04T21:02:31.592-05:00I've successfully added the Relationships area...I've successfully added the Relationships area to the Account entity in an IFrame but receive this message when I try to create a new Customer Relationship in the IFrame:<br />Error - Record is Unavailable >> The requested record is unavailable or you do not have sufficient permissions to view it.<br /><br />I am a System Administrator..<br />Any thoughts?<br />~MariaAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-9296511.post-43491511856105512562009-03-29T17:06:00.000-05:002009-03-29T17:06:00.000-05:00Thanks for this info it works great with 1 to many...Thanks for this info it works great with 1 to many relationships. Like others here, I am trying to do the same with a many to many relationship, but keep getting invalid argument. Does anybody know how to make this work with crm 4 many to many relationships? I have looked through the source of the main page and located the loadarea parameter (areanew_contact_new_sale) and given it the correct object type and security codes - it seems so close but no cigar. (invalid argument)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9296511.post-60310450820529716612009-03-15T11:46:00.000-05:002009-03-15T11:46:00.000-05:00Excellent stuff and it works great with a custom e...Excellent stuff and it works great with a custom entity that has a "1 to many" relationship it, when I change the relationship to "many to many" it does not work. I looked at the source of the page and now I see the loadarea now has an "area" prefixed but I get an invalid argument, when I use that new value. I'm missing something basic, but don't know enough about this.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9296511.post-60931982968580256572009-03-15T11:45:00.000-05:002009-03-15T11:45:00.000-05:00Excellent stuff and it works great with a custom e...Excellent stuff and it works great with a custom entity that has a "1 to many" relationship it, when I change the relationship to "many to many" it does not work. I looked at the source of the page and now I see the loadarea now has an "area" prefixed but I get an invalid argument, when I use that new value. I'm missing something basic, but don't know enough about this. <BR/><BR/>Any help is appreciated, has anyone figured this out?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9296511.post-33972059678046419342008-09-02T10:41:00.000-05:002008-09-02T10:41:00.000-05:00Hope someone can help me with this: I have an ifra...Hope someone can help me with this: I have an iframe in leads show history for completed activities. When a lead is opened, the lead will show the history but i can not click on an of the associated activites to load them. I have my crm web page set as a trusted website. Also, when i hit F5 (this refreshes the webpage) i can then click on the activities in the IFrame. Odd.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9296511.post-77596261971246640112008-08-24T03:25:00.000-05:002008-08-24T03:25:00.000-05:00Hi MattDo you know how to remove the grid tool bar...Hi Matt<BR/><BR/>Do you know how to remove the grid tool bar in an IFRAME &????<BR/><BR/>PeteAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-9296511.post-15759052176014153032008-07-07T06:24:00.000-05:002008-07-07T06:24:00.000-05:00Anyone knows how to put more than two Iframes on ...Anyone knows how to put more than two Iframes on a form.Let's consider one scenario i want to display associated contacts, leads and opportunity on Account form.wasekhpatelhttps://www.blogger.com/profile/03579617407779706902noreply@blogger.comtag:blogger.com,1999:blog-9296511.post-51792243734610156972008-07-02T12:37:00.000-05:002008-07-02T12:37:00.000-05:00Hello,Just wanted to thank you for this. It was we...Hello,<BR/><BR/>Just wanted to thank you for this. It was well written. I now understand it well enough that I may start experimenting. Hopefully, nothing will blow up! :)<BR/><BR/>Thanks again for your timeAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-9296511.post-50818030130668936282008-06-25T08:07:00.000-05:002008-06-25T08:07:00.000-05:00Not using this technique, but you could put an cus...Not using this technique, but you could put an custom .aspx page in your iframe that shows what you need.Matt Wittemannhttps://www.blogger.com/profile/14476684868021392948noreply@blogger.comtag:blogger.com,1999:blog-9296511.post-22333651316269610122008-06-24T08:32:00.000-05:002008-06-24T08:32:00.000-05:00Can I use custom filtering in activities based on ...Can I use custom filtering in activities based on a custom attribute (e.g. specific department) when showing the history in CRM 4.0?Unknownhttps://www.blogger.com/profile/15336972899681927627noreply@blogger.comtag:blogger.com,1999:blog-9296511.post-5494753797985553972008-06-16T11:17:00.000-05:002008-06-16T11:17:00.000-05:00Chris Brown --I was having the same problems and w...Chris Brown --<BR/>I was having the same problems and was about to give up when I downloaded Fiddler. It told me where the page was going when I clicked on products. It was not <BR/>"sfa/opps/edit.aspx?"<BR/>but<BR/>"<B>/sfa/opps/areas.aspx?</B>".<BR/>Also, it should be navProds and areaProds.<BR/><BR/>Hope this helps,<BR/><BR/>MichaelUnknownhttps://www.blogger.com/profile/00791723356701572707noreply@blogger.comtag:blogger.com,1999:blog-9296511.post-16731709528659614052008-06-09T15:23:00.000-05:002008-06-09T15:23:00.000-05:00Hello,I am trying to show the Products in an IFram...Hello,<BR/><BR/>I am trying to show the Products in an IFrame inside Opportunities so that the users don't have to click on the side. I came across the following link which talks about showing Activities in the IFrame, but I can't get it to work. http://icu-mscrm.blogspot.com/2006/06/showing-associated-activities-in.html<BR/><BR/>The javascript that I am currently trying to use is below.<BR/><BR/>Any help would be much appreciated. <BR/><BR/>{<BR/>var navProducts;<BR/>navProducts = document.all.navProducts;<BR/><BR/>if (navProducts != null)<BR/>{<BR/>document.all.IFRAME_Products.src="/sfa/opps/edit.aspx?oId=" + crmForm.ObjectId + "&oType=" + crmForm.ObjectTypeCode + "&security=852023&tabSet=areaProducts";<BR/>}<BR/>else<BR/>{<BR/>alert("navProducts Not Found");<BR/>} <BR/>}Chris Brownhttps://www.blogger.com/profile/06420122737210154393noreply@blogger.comtag:blogger.com,1999:blog-9296511.post-74359796460412049432008-04-08T10:07:00.000-05:002008-04-08T10:07:00.000-05:00Hi, This is the first time I've tried to do an IFr...Hi, This is the first time I've tried to do an IFrame. I've added the IFrame to the contact form, copied the code in the On-Load event, enabled it, and published. When I open a contact record, I get the error "Navigation to the webpage was canceled". I am sure I am missing something very basic...but don't know what it is. Can anyone help? Thank you!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9296511.post-75928262665243932492008-03-20T16:16:00.000-05:002008-03-20T16:16:00.000-05:00Hi!We have this IFrame.However, we can't seem to g...Hi!<BR/><BR/>We have this IFrame.<BR/><BR/>However, we can't seem to get the Activities to default to ALL with the IFrame without and error. <BR/><BR/>HELP!! :)Laura and Lanehttps://www.blogger.com/profile/01087421070934188773noreply@blogger.comtag:blogger.com,1999:blog-9296511.post-81519962107591079292008-03-19T17:38:00.000-05:002008-03-19T17:38:00.000-05:00All this works great until 4.0 - even then it work...All this works great until 4.0 - even then it works great unless you want to do this with a many to many relationship and then you get "invalid argument" messages.<BR/><BR/>Any ideas? If you look at the loadarea the # parms after the name of the load area have a lot more things in it than when it is just a 1 to many. I just don't know what they all mean!!Richhttps://www.blogger.com/profile/10322686345121631109noreply@blogger.comtag:blogger.com,1999:blog-9296511.post-36014153166201630612008-03-16T15:27:00.000-05:002008-03-16T15:27:00.000-05:00Hi,I've added a new tab to MSCRM V4 with an iframe...Hi,<BR/><BR/>I've added a new tab to MSCRM V4 with an iframe i use a java scriptto populate the src property and it loads as custom asp.net website, Tisall works wonderfully, howver I;m showing grids od data from an external data source, one of the columns is set as a hyperlink, whent he website is loaded in IE ths click through on the link appear in the same window, but when in the MSCRM v4 iframe the click throughs pop a new window no matter what the target property is set to or if i set thetarget to the name of the iframe. <BR/><BR/>Can anyone tell me why and how to stop it popping a new window?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9296511.post-1605969634477355392008-03-14T07:00:00.000-05:002008-03-14T07:00:00.000-05:00I am looking for the same functionality: I only wa...I am looking for the same functionality: I only want to show the related tasks of an account that have a specific type.<BR/><BR/>I thought of injecting the current account object id into a fetchxml clause (to create fetchxml see http://ronaldlemmen.blogspot.com/2006/11/using-advanced-find-for-fetchxml.html ) and display those results. This would work if you could pass a fetchxml string to an aspx page (I guess this happens when you press query in the advanced find view) Does this exist?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9296511.post-3649429486226451562008-03-10T16:29:00.000-05:002008-03-10T16:29:00.000-05:00I have a client who wants something very similar t...I have a client who wants something very similar to this - the ability to show the associated activites in an iFrame.<BR/>However, they only want to show activities of type 'phone call', and to show some extra fields that area in the phone call record (eg, phone number).<BR/>Is there a way to do this?<BR/><BR/>Mike FeingoldAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-9296511.post-33515593676544789632008-03-09T14:46:00.000-05:002008-03-09T14:46:00.000-05:00We've been using this kind of modification in CRM ...We've been using this kind of modification in CRM 3.0 for awhile and it works fine in CRM 4.0....except when a user refreshes a form where this mod is called using onload. It seems that in CRM 4.0, the onload isn't called on refresh (F5), assumedly for performance reasons. (?)<BR/><BR/>Here's something I concocted today to resolve this. The following functions are declared for when a user refreshes a Contact form:<BR/>********<BR/>function frm_Contact_OnRefresh()<BR/>{<BR/> if (window.event)<BR/> {<BR/> document.onkeyup = testcontactrefresh;<BR/> document.onkeydown = testcontactrefresh;<BR/> }<BR/> document.onkeypress = testcontactrefresh;<BR/>}<BR/><BR/>function testcontactrefresh(e)<BR/>{<BR/> var keyId = (window.event) ? event.keyCode : e.keyCode;<BR/><BR/> if(keyId == 116)<BR/> {<BR/> frm_Contact_OnLoad();<BR/> if (window.event) event.keyCode = 0;<BR/> else keyId = 0;<BR/> return false;<BR/> }<BR/>}<BR/>********<BR/>I call frm_Contact_OnRefresh()<BR/>in the contact OnLoad first, then immediately call my frm_Contact_OnLoad() function, which contains all the javascript we want to use on loading (and refreshing!) a contact form. If anyone has comments or feedback on this refresh issue, please don't hesitate to respond because I'm only on day 2 of testing CRM 4.0 and this promises to be a LONG process!!Unknownhttps://www.blogger.com/profile/10785330863039610421noreply@blogger.comtag:blogger.com,1999:blog-9296511.post-56003332131935628822008-03-03T10:37:00.000-05:002008-03-03T10:37:00.000-05:00Matt, many thanks for the tip on fixing the Notes ...Matt, many thanks for the tip on fixing the Notes problem with the XML customisations. That worked perfectly!<BR/>ThanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-9296511.post-14970271112560540702008-02-25T15:05:00.000-05:002008-02-25T15:05:00.000-05:00Hi Matt... I have read this entire post and seen a...Hi Matt... I have read this entire post and seen all of the various uses and problems that people are having. I have one of my own that does not seem to be addressed.<BR/><BR/>I am using the IFRAME to display Opportunity Products on the front page of the related opportunity. <BR/><BR/>Works great, but my problem is <BR/>that when you add a NEW Opportuntiy Product, the IFRAME grid does not refresh, so the newly added record does not appear unless I manually refresh the grid. Strange, because with the traditional CRM screens, the grid refresh happens automatically when a new record is created. Can I programatically translate that same action to the IFRAME version of this same grid?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9296511.post-9723798992052867162008-02-21T13:35:00.000-05:002008-02-21T13:35:00.000-05:00Thanks for the quick reply Matt. I tested it out ...Thanks for the quick reply Matt. I tested it out and when I added those codes, the jscript stops working. iFrame does not load and those fields on the left Nav bar appears. <BR/><BR/>Any other ideas? Thanks.Anonymousnoreply@blogger.com