16.04.2009, 12:05 | #1 |
Участник
|
Microsoft Dynamics CRM Team Blog: Microsoft Dynamics CRM IFRAME Magic
Источник: http://blogs.msdn.com/crm/archive/20...ame-magic.aspx
============== Microsoft Dynamics CRM allows you to access external web sites from within forms using IFRAMES (Inline Frames). You can configure the IFRAME to take information from the parent record. A pretty standard use of this is a Web tab on the Account form where the Account’s web site URL is passed to the IFRAME and the web site is available from a Web tab. To do this, one sets up a little code for the form On Load event that puts the Accounts web site URL into the IFRAME’s URL. It’s actually pretty simple. Here is the code (assumes you already know how to set up an IFRAME). IFRAME_WebSite is the name of the IFRAME and .src references the URL it uses. // Load web site URL { var AccountURL = crmForm.all.websiteurl.DataValue; if (AccountURL != null) { crmForm.all.IFRAME_WebSite.src = AccountURL; } } Having done this, I thought it would be neat to add a tab to display a map of the Account’s location. I used the same process except I stuffed address fields into the IFRAME URL instead of the web site. The code I used is: // Load Map URLThe code is really pretty simple as you can see. But the results are pretty neat. And the Live Search Maps give you different views such as Bird’s Eye which I love: There are lots of things you can do with IFRAMEs. Hopefully this will get your imagination going. Cheers, Larry Lentz Источник: http://blogs.msdn.com/crm/archive/20...ame-magic.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|