tag:blogger.com,1999:blog-5472436831307966815.post6658949261184800171..comments2024-03-20T00:30:07.883-06:00Comments on Daniel Cai's Blog: MSCRM 4.0 Filtered LookupDaniel Caihttp://www.blogger.com/profile/05461949321689249420noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-5472436831307966815.post-27489532150520690152013-03-28T11:49:09.049-06:002013-03-28T11:49:09.049-06:00@David, that's very strange. You should only i...@David, that's very strange. You should only include the ReplaceCrmLookup snippet in your form's onload event once. Could it be the case that you have had ReplaceCrmLookup twice in the same form? Daniel Caihttps://www.blogger.com/profile/05461949321689249420noreply@blogger.comtag:blogger.com,1999:blog-5472436831307966815.post-18996347354460161062013-03-28T11:17:14.330-06:002013-03-28T11:17:14.330-06:00Hi Daniel,
I'm trying to use your code, but I ...Hi Daniel,<br />I'm trying to use your code, but I seem to have an infinite loop in the method window.openStdDlg. It keeps calling itself. I have copied and pasted the code from above. Any idea what could be going wrong.<br />Kind regards,<br />Dave.David Brennanhttps://www.blogger.com/profile/02624652959735003923noreply@blogger.comtag:blogger.com,1999:blog-5472436831307966815.post-12785813851748445662012-01-18T09:33:28.367-07:002012-01-18T09:33:28.367-07:00Hello Daniel,
I have be using the same code for fi...Hello Daniel,<br />I have be using the same code for filtering lookup but your approach of copying the lookupsingle.aspx and than adding code is super genius. Thank you for sharing such an idea.Atif Faisalhttps://www.blogger.com/profile/17020420265666707595noreply@blogger.comtag:blogger.com,1999:blog-5472436831307966815.post-60387882274730831692011-12-15T03:22:39.585-07:002011-12-15T03:22:39.585-07:00Hello Daniel,
Using Jim Wang's plug-in approa...Hello Daniel,<br /><br />Using Jim Wang's plug-in approach to filtering the quote detail products look-up, based on the parent Quote's price-list, I am able to see the filtered list of products.<br /><br />However, when I use the 'search' icon, located on the look-up window, the product list is no longer filtered by price list. <br /><br />Would you know how to filter results returned from the look-up dialog's "search" feature?<br /><br />Cheers!markpittsnhhttps://www.blogger.com/profile/06700603025262451142noreply@blogger.comtag:blogger.com,1999:blog-5472436831307966815.post-61842891778433334962010-07-22T09:02:04.421-06:002010-07-22T09:02:04.421-06:00Hello all,
I have a productid lookup in the qoute...Hello all,<br /><br />I have a productid lookup in the qoutedetails entity which looks up the product table entity which is a custom entity.<br /><br />And again I have a new_professionalsid which holds the names of all the name of all the Professionals in my table.<br /><br />I want when I select the Product from the productid entity for it to display the the Product eg) Electrical Engineer.<br /><br />The new_professionalsid should lookup a the Product that was chosen and create a filter based on the productid and only bring the names of the indivisuals whose Profession is Electrical Engineer.<br /><br />The code:<br /><br />OnChange() /* Which I placed in the productid onchange field.*/<br /><br />FilterLookup(crmForm.all.productid, crmForm.all.new_professionalsid);<br /><br />OnLoad() /* Is placed on the onlad form of the qoutedetail entity */<br /><br />FilterLookup = function(source, target)<br />{<br /> if (IsNull(source) || IsNull(target)) { return; }<br /><br /> var name = IsNull(source.DataValue) ? '' : <br /> source.DataValue[0].name;<br /><br />I dont know where I'm going wrong with my coding please assist<br /><br /> target.additionalparams = 'search=' + name;Thabiso Motlounghttps://www.blogger.com/profile/02277002781140082244noreply@blogger.comtag:blogger.com,1999:blog-5472436831307966815.post-72507272080503823052010-04-07T10:05:34.396-06:002010-04-07T10:05:34.396-06:00Just a follow up comment, I did recently update my...Just a follow up comment, I did recently update my project to Rollup 9, and didn't experience the problem that was described by the commenter, Mr. Anonymous. ;)<br /><br />It's believed that the commenter didn't actually copy looksingle.aspx to ISV folder, instead he did the change to original CRM file, which was overwritten by the rollup update.Daniel Caihttps://www.blogger.com/profile/05461949321689249420noreply@blogger.comtag:blogger.com,1999:blog-5472436831307966815.post-45335767001682283052010-03-05T08:10:42.200-07:002010-03-05T08:10:42.200-07:00No problem at all, thanks for sharing with us. I h...No problem at all, thanks for sharing with us. I haven't really tried rollup 9, glad to know that you have sorted out.Daniel Caihttps://www.blogger.com/profile/05461949321689249420noreply@blogger.comtag:blogger.com,1999:blog-5472436831307966815.post-30478069064665907152010-03-05T03:47:00.304-07:002010-03-05T03:47:00.304-07:00Sorry Daniel
Forget the error.
The problem was ...Sorry Daniel <br /><br />Forget the error. <br />The problem was that the rollup change lookupsingle.aspx.<br />In the new lookupsingle.aspx re-copy your code all is o.k.<br /><br />Sorry againAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5472436831307966815.post-64275578609363753882010-03-05T02:56:52.527-07:002010-03-05T02:56:52.527-07:00Hi Daniel
First of all thanks for your help and y...Hi Daniel<br /><br />First of all thanks for your help and your solution.<br />Your solution was working perfectly until i upgraded the crm to rollup 9.<br />I think the problem has to do with the code in the file lookupsingle.aspx.<br />I haven't any error but also it looks like not working the prefiltering.<br /><br />ThanksAnonymousnoreply@blogger.com