Solved

MS CRM OnLoad error

Posted on 2010-08-26
7
578 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Note: You must have administrative privileges in order to create/edit Sharing Rules. Salesforce.com (http://www.salesforce.com) (SFDC) is a cloud-based customer relationship management (CRM) system. It is a database most commonly used by sales an…
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

690 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