tag:blogger.com,1999:blog-3003801964503297388.post5673221179492972313..comments2024-03-28T09:21:16.448+02:00Comments on Microsoft Dynamics CRM 4.0 - Unleashed: CRM 4.0 Show Associated-View in IFRAME (AssocViewer)Adi Katzhttp://www.blogger.com/profile/16783428437179825705noreply@blogger.comBlogger35125tag:blogger.com,1999:blog-3003801964503297388.post-67180104214607018382011-08-16T18:17:35.914+03:002011-08-16T18:17:35.914+03:00Hi Adi,
I am a very newbie to CRM. I designed an e...Hi Adi,<br />I am a very newbie to CRM. I designed an entity which has no relationships. It has a small workflow to send email and assign cases. Users also add their notes. Now my question is how can we show the history of each actiivty performed by the user for every record in an IFRAME? Can you please help me out with this?<br /><br />Thanks!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3003801964503297388.post-3063160264158562342010-12-27T08:32:03.833+02:002010-12-27T08:32:03.833+02:00This comment has been removed by the author.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3003801964503297388.post-51056253965586283352010-08-24T16:06:08.631+03:002010-08-24T16:06:08.631+03:00I have just found a solution for my post. It is wo...I have just found a solution for my post. It is working for read only forms but you have to deeal somehow with the iframe src. For the read only forms the path is different. My solution was not to change the path but to add the areas.aspx page in the readonly folder adding to the name a suffix(1 for account, 2 for contact and so on)Irinel BIRSANhttps://www.blogger.com/profile/18410763464346280279noreply@blogger.comtag:blogger.com,1999:blog-3003801964503297388.post-20782769981823560742010-08-23T21:13:05.450+03:002010-08-23T21:13:05.450+03:00This solution suppose to work even for read-only f...This solution suppose to work even for read-only forms, because i got an empty grid when the form is in reda-only stateIrinel BIRSANhttps://www.blogger.com/profile/18410763464346280279noreply@blogger.comtag:blogger.com,1999:blog-3003801964503297388.post-41773816480999268922010-06-29T01:10:16.962+03:002010-06-29T01:10:16.962+03:00Hi Adi,
This was great. Hope this doesn't sh...Hi Adi, <br /><br />This was great. Hope this doesn't show up twice - my first comment didn't appear, maybe I didn't save it. <br /><br />Back on July 15 2009 you responded to a question about using this code for activities by instructing the person who asked to replace certain parts of the code. I think I'm understanding this replacement incorrectly: <br /><br />replace the av.locAssocOneToMany(…) with:<br />av.auto = function auto(iObjectTypeCode,sFindValue)<br />{<br />/* original function call */<br />_auto(iObjectTypeCode,sFindValue);<br />av.iFrame.contentwindow.document.all.crmGrid.Refresh();<br />}<br /><br />What is the /* original function call */? I'm doing that wrong - can you clarify? My IFRAME refrshes when an activity is closed, but not when a new one is created. <br /><br />Thanks!Andyhttps://www.blogger.com/profile/05106573133325535856noreply@blogger.comtag:blogger.com,1999:blog-3003801964503297388.post-25555663303033818932010-06-29T01:04:34.391+03:002010-06-29T01:04:34.391+03:00Hi Adi,
Awesome scripting. You responded to a qu...Hi Adi, <br /><br />Awesome scripting. You responded to a question about using this script for activities with the following: <br /><br />replace the av.locAssocOneToMany(…) with:<br />av.auto = function auto(iObjectTypeCode,sFindValue)<br />{<br />/* original function call */<br />_auto(iObjectTypeCode,sFindValue);<br />av.iFrame.contentwindow.document.all.crmGrid.Refresh();<br />}<br /><br />I think I'm understanding this wrong - can you clarify? <br /><br />Thanks!Andynoreply@blogger.comtag:blogger.com,1999:blog-3003801964503297388.post-27034723519412226662010-06-11T07:30:54.365+03:002010-06-11T07:30:54.365+03:00Hi Adi
I was customized in your instruct. It'...Hi Adi<br /><br />I was customized in your instruct. It's only run local. When run to network, it's not display. Why? Please help me.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3003801964503297388.post-4035319637834014992010-03-16T18:28:59.769+02:002010-03-16T18:28:59.769+02:00Hi Adi,
Great posts! I've been using both of...Hi Adi,<br /><br />Great posts! I've been using both of the viewers without any issues, until recently...<br /><br />I have 4 of the 1 to Many Iframes on the account entity, and until recently its been running without issues. Now all of a sudden, each form that has this code on it is causing IE to "lock up" for about 20-30+ seconds between clicks (CPU spikes to 50% too) <br /><br />this is happening on our case entity as well (2 - 1 to many's there too)<br /><br />**all other entities work as they should without any pauses.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3003801964503297388.post-70732323383736683352010-01-19T21:54:24.518+02:002010-01-19T21:54:24.518+02:00Hey Adi,
I tried your many-to-many solution and i...Hey Adi,<br /><br />I tried your many-to-many solution and it works perfectly. Thanks so much for all the work you've done on your blog. Just discovered it yesterday when looking for a better view solution and after perusing it I see that there are lot of gems on it. I'm going to try your script loader next. It'll save me a lot of headaches.<br /><br />Thanks!<br /><br />ShawnShawnnoreply@blogger.comtag:blogger.com,1999:blog-3003801964503297388.post-75440929481307187622010-01-19T15:38:55.591+02:002010-01-19T15:38:55.591+02:00Joe - can't say much about crm 5.0.
shawn - f...Joe - can't say much about crm 5.0. <br />shawn - follow this link for many2many viewer<br />http://mscrm4ever.blogspot.com/2009/04/crm-40-many-2-many-iframe-viewer.htmlAdi Katzhttps://www.blogger.com/profile/16783428437179825705noreply@blogger.comtag:blogger.com,1999:blog-3003801964503297388.post-87050728314163702772010-01-19T06:21:38.738+02:002010-01-19T06:21:38.738+02:00Hi Adi,
The code is working great for my views of...Hi Adi,<br /><br />The code is working great for my views of one-to-many relationships, but is obviously not for many-to-many ones since you wrote this to override the locAssocOneToMany function. Would it be possible to modify this to work for views of many-to-many relationships?<br /><br />Thanks,<br />ShawnShawnnoreply@blogger.comtag:blogger.com,1999:blog-3003801964503297388.post-18416016232214215792009-11-03T16:43:07.104+02:002009-11-03T16:43:07.104+02:00Hi Adi,
Sorry I meant editable. Thanks for the l...Hi Adi,<br /><br />Sorry I meant editable. Thanks for the link.<br /><br />I've read in several places that inline editing of records in the CRM grid may be available in CRM 5.0 - can you shed any light on this?<br /><br />Thanks<br /><br />JoeJoe.comhttps://www.blogger.com/profile/06085937574319564494noreply@blogger.comtag:blogger.com,1999:blog-3003801964503297388.post-49066398339780423662009-10-31T12:02:38.186+02:002009-10-31T12:02:38.186+02:00What do you mean by writable? CRM grid is not edit...What do you mean by writable? CRM grid is not editable. You can create a master detail from. Take a look at the following post:<br />http://mscrm4ever.blogspot.com/2008/09/crm-master-detail-page-part-1.htmlAdi Katzhttps://www.blogger.com/profile/16783428437179825705noreply@blogger.comtag:blogger.com,1999:blog-3003801964503297388.post-51000607188802687002009-10-30T14:25:32.527+02:002009-10-30T14:25:32.527+02:00Hi Adi
Great post, thank you.
Is there any way t...Hi Adi<br /><br />Great post, thank you.<br /><br />Is there any way to make the associated view writeable?<br /><br />JoeJoe.comhttps://www.blogger.com/profile/06085937574319564494noreply@blogger.comtag:blogger.com,1999:blog-3003801964503297388.post-24862209821639326272009-10-29T14:19:41.454+02:002009-10-29T14:19:41.454+02:00Hi,
Thanks, it helped for me to solve my problem....Hi,<br /><br />Thanks, it helped for me to solve my problem. Keep posting...Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3003801964503297388.post-68300756784977930002009-09-08T10:01:22.305+03:002009-09-08T10:01:22.305+03:00Hi adi
I would like to know how has anonymous add...Hi adi<br /><br />I would like to know how has anonymous added the same code for displaying pending activities and history in two iframes.I am creating two iframes on the case entity to display pending on one and history on the other.<br /><br />Kindly help.Thanx for all the useful customizations posted on your blog.<br /><br />regardsAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3003801964503297388.post-12371879653119560552009-07-22T19:46:09.431+03:002009-07-22T19:46:09.431+03:00Yes, put the code in the onload event and change t...Yes, put the code in the onload event and change the OnCrmPageLoad content with the correct associated view informationAdi Katzhttps://www.blogger.com/profile/16783428437179825705noreply@blogger.comtag:blogger.com,1999:blog-3003801964503297388.post-53106088979325757922009-07-22T19:28:33.913+03:002009-07-22T19:28:33.913+03:00¿Where I have to put de code in order to work? ¿Do...¿Where I have to put de code in order to work? ¿Do I have tu put it in OnLoad event?? please your help. Thanks.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3003801964503297388.post-30286593680403707512009-07-16T11:19:39.538+03:002009-07-16T11:19:39.538+03:00Dear Adi,
I'm sorry for the previous post. It...Dear Adi,<br /><br />I'm sorry for the previous post. It seems to be working now. I gave a wrong id for my iFrame which I figured out. Anyways eventually its working and I can retrieve the existing records from the view. Thanx a million it works like charm....!!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3003801964503297388.post-85306826016249460562009-07-15T20:38:25.144+03:002009-07-15T20:38:25.144+03:00Adi,
Your code for activity and history worked gr...Adi,<br /><br />Your code for activity and history worked great, however I have one wrinkle.<br /><br />I have both grids on one form in two separate IFRAMEs. What I am seeing is that when you complete and activity the activities grid refreshes correctly, but the history grid does not. The auto function does not seem to get called in this scenario.<br /><br />Any ideas as to how to get the history grid to refresh when you open and complete an activity from the IFRAME holding the activity grid?<br /><br />Thank so much in advance for any guidance you can give - you have been so helpful to date!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3003801964503297388.post-47899642711923155972009-07-15T10:31:45.853+03:002009-07-15T10:31:45.853+03:00Hi Adi,
Tried your new code for "Display fet...Hi Adi,<br /><br />Tried your new code for "Display fetch in IFrame-part2" after you made the changes. <br />Now the moment I open the parent form inside which the Iframe is located a message comes "Iframe IFrame_quote_fltsch is undefined". IFrame_quote_fltsch is the name of my Iframe and it is located in the first tab. I've given the url as about:blank and removed the check from restrict cross-frame scripting. Now the Iframe is totaly blank.<br />Pls adviceAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3003801964503297388.post-46259622898805854642009-07-15T05:41:06.114+03:002009-07-15T05:41:06.114+03:00About the opening of existing records. I made a qu...About the opening of existing records. I made a quick change to the OnWindowOpen function. Try it now.Adi Katzhttps://www.blogger.com/profile/16783428437179825705noreply@blogger.comtag:blogger.com,1999:blog-3003801964503297388.post-4281973379690145772009-07-15T04:53:33.320+03:002009-07-15T04:53:33.320+03:00The Assoc viewer overrides the locAssocOneToMany f...The Assoc viewer overrides the locAssocOneToMany function. When you create an iframe that references the activity or history views you need to override the auto function. Try the following changes…<br /><br />Replace line 29: <br />var _auto = null;<br /><br />replace lines 56 and 57:<br />_auto = top.auto;<br />top.auto = av.auto;<br /><br />replace the av.locAssocOneToMany(…) with:<br />av.auto = function auto(iObjectTypeCode,sFindValue)<br />{<br /> /* original function call */<br /> _auto(iObjectTypeCode,sFindValue);<br /> av.iFrame.contentwindow.document.all.crmGrid.Refresh();<br />}<br /><br />make sure this does not influence other grid refreshesAdi Katzhttps://www.blogger.com/profile/16783428437179825705noreply@blogger.comtag:blogger.com,1999:blog-3003801964503297388.post-51969959136611965752009-07-15T02:36:51.544+03:002009-07-15T02:36:51.544+03:00Hello Adi,
Glad to see you are still monitoring t...Hello Adi,<br /><br />Glad to see you are still monitoring these comments.<br /><br />I posted on 7/1 - I am having problems using this code for the Activity and History views (on the Opportunity entity) - the refresh is not working correctly.<br /><br />Do you have any ideas how I might get this working? It would be a huge help for me.<br /><br />ThanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3003801964503297388.post-28866976889375009462009-07-14T17:39:33.913+03:002009-07-14T17:39:33.913+03:00Hi Adi,
Thanx for the link. I tried your code. Ev...Hi Adi,<br /><br />Thanx for the link. I tried your code. Everything seems to be working. I am able to create records and put filter to it and its getting refreshed also.<br /> <br />The only issue which I am facing is when I try to retrieve one of the existing records from the iFrame instead of showing the record, its opening up a new form with blank data. I am not able to access the existing records but I can see the created records in the view inside the iframe.<br />Can you pls guide me where I am going wrong? Would you like to see the code?<br /><br />ThanxAnonymousnoreply@blogger.com