Solved

MS CRM OnLoad error

Posted on 2010-08-26
7
572 Views
Last Modified: 2013-11-24
I have the following code in the OnLoad event. It is supposed to populate an Iframe from a hyperlink that is in another field called new_cllink.

Attached is the error.
{ 

var AccountURL = crmForm.all.new_cllink.DataValue; 

if (AccountURL != null) 

{ 

crmForm.all.IFRAME_CLAccount.src = AccountURL; 

} 

}

Open in new window

Untitled-1.jpg
0
Comment
Question by:varesources
  • 3
  • 2
  • 2
7 Comments
 
LVL 29

Expert Comment

by:Feridun Kadir
ID: 33537553
I've looked at your code for some time. I can't see anything wrong with it.

Do you have any other CRM add-ins installed?
0
 
LVL 1

Author Comment

by:varesources
ID: 33537574
c360 productivity pack
0
 
LVL 29

Accepted Solution

by:
Feridun Kadir earned 500 total points
ID: 33537794
Ok. I found this comment regarding c360 in another website which suggests that you should put your script before any c360 script:

From http://www.eggheadcafe.com/software/aspnet/31983951/crmform-is-undefined.aspx

It looks like my actual issue was in the sequence of
my script vs the boilerplate script that c360 inserted automatically
to handle its alert functionality.  If I try to reference crmForm
after their script, it is undefined.  I had believed I had tested my
script before the c360 script or with the c360 script removed
completely, but I must have made a mistake when I did so.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 1

Author Comment

by:varesources
ID: 33537822
Thanks. I'll try that tomorrow.
0
 
LVL 7

Expert Comment

by:stacko111
ID: 33539777
I think your code is slightly incorrect, also make sure that the new_cllink field is set to be Type: nvarchar and Format: URL.

New code below:

{
var AccountURL = crmForm.all.new_cllink.DataValue;
if (AccountURL != null)
{
document.all.IFRAME_CLAccount.src = AccountURL;
}
}
0
 
LVL 7

Expert Comment

by:stacko111
ID: 33539795
Just re-read feridun's posts, I didn't take into account the c360 stuff so if my code doesn't help then ignore me ;o)
0
 
LVL 1

Author Comment

by:varesources
ID: 33542898
feridun

That worked! Thanks!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Open source customer support/help desk options? 10 164
Posting a Batch Causing "Worldwide Freezing" 1 69
License Management Policy 6 86
SSRS Problems 9 56
I showed you how to use console view (HERE (http://www.experts-exchange.com/articles/18379/Getting-Started-and-Using-the-Salesforce-com-Console.html)) -– but how do you set it up on the admin side of Salesforce? Note that you have to have Admin leve…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now