tag:blogger.com,1999:blog-4949466329929758934.post7646681478513010483..comments2024-02-15T20:28:01.602+05:30Comments on The World of MS Dynamics CRM: CRM 4.0 Lookup: Retrieve Column values from Lookup windowAshish Kapoorhttp://www.blogger.com/profile/03673547663377691588noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-4949466329929758934.post-89677156136342212272011-11-01T21:47:19.272+05:302011-11-01T21:47:19.272+05:30In your script above, I only need one column to di...In your script above, I only need one column to display, but I want it to display in company field instead of showing a alert box.<br /><br />Is this possibleAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4949466329929758934.post-3096740824449547012011-01-24T19:52:58.839+05:302011-01-24T19:52:58.839+05:30It is not working when i use form assistant for da...It is not working when i use form assistant for data entry.<br />Is there any way to make it work?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4949466329929758934.post-90914520829738972062010-10-19T23:17:39.169+05:302010-10-19T23:17:39.169+05:30I've been looking for the proper way to do thi...I've been looking for the proper way to do this for days - THANK YOU!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4949466329929758934.post-80991101504770845942010-08-04T03:16:44.665+05:302010-08-04T03:16:44.665+05:30Managed to solve this myself. All I had to do was ...Managed to solve this myself. All I had to do was add the desired fields to the Account Lookup View columns in the form customizations. Once I added them in there, I just did an alert on each array object and found the correct mappings. Here was my end result code:<br /><br />if(crmForm.all.parentcustomerid.DataValue != null && crmForm.all.address1_name.Value == null)<br /><br />{<br />var parentCustomerID = document.getElementById( "parentcustomerid" );<br />var lookupItems = parentCustomerID.items[0].values;<br />crmForm.all.address1_name.value = lookupItems[5].value;<br />crmForm.all.address1_telephone1.value = lookupItems[13].value;<br />crmForm.all.address1_city.value = lookupItems[9].value;<br />crmForm.all.address1_line1.value = lookupItems[6].value;<br />crmForm.all.address1_line2.value = lookupItems[7].value;<br />crmForm.all.address1_line3.value = lookupItems[8].value;<br />crmForm.all.address1_stateorprovince.value = lookupItems[11].value;<br />crmForm.all.address1_postalcode.value = lookupItems[10].value;<br />crmForm.all.address1_country.value = lookupItems[12].value;<br />}<br /><br />Hope this helps someone else :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4949466329929758934.post-6461694048955817422010-08-03T21:11:42.437+05:302010-08-03T21:11:42.437+05:30How would I get the lookup of other fields such as...How would I get the lookup of other fields such as the Account address state and such? I get errors starting at alert(lookupItems[10].value);Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4949466329929758934.post-15773271239355770812010-07-13T17:14:18.396+05:302010-07-13T17:14:18.396+05:30Hi again,
is there a way to get the Guid of the p...Hi again,<br /><br />is there a way to get the Guid of the parentcustomer and not just its name?<br /><br />thank you.Charlesnoreply@blogger.comtag:blogger.com,1999:blog-4949466329929758934.post-6562308355273639462010-07-13T13:34:36.623+05:302010-07-13T13:34:36.623+05:30Hi,
after retrieving the column from the lookup fi...Hi,<br />after retrieving the column from the lookup field this column is clickable in the lookup view because it is a relationship, <br />how can i set it to another look up field in the same form?Charlesnoreply@blogger.comtag:blogger.com,1999:blog-4949466329929758934.post-44201309076070430012010-06-11T10:51:32.285+05:302010-06-11T10:51:32.285+05:30I have created a new fields named Last Appointment...I have created a new fields named Last Appointment Date and Next Appointment Date in contact entity. I need to auto populate these fields from Appointment entity. How can i do that. Please help me??Anonymoushttps://www.blogger.com/profile/01408486017614584945noreply@blogger.com