Solved

MS CRM OnLoad error

Posted on 2010-08-26
7
576 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
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

 
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Salesforce.com’s Console is a great tool to view activities, leads, contacts, accounts and opportunities all in one screen. It is particularly effective during call blocks and working numerous activities at a time in a quick, repetitive fashion (suc…
Desired Skill Set for Microsoft Dynamics CRM Technical Resources – Part I
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

713 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