[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Form Scripting: How to I access a lookup Value

Posted on 2010-11-15
2
Medium Priority
?
611 Views
Last Modified: 2012-05-10
I like to use a value of a lookup list for calculation in a Form Script.

I had a picklist and I could access the value of the picklist:

var priority
priority = crmForm.all.prioritycode.DataValue

I have now replaced the picklist with a lookup field. It contains two attributes NAME & DURATION. I use the NAME attribute to populate the Form Control.  But now I like to get the value of the DURATION attribute to do some calculation with.  

How do I do this?
0
Comment
Question by:juttaReimann
[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
2 Comments
 
LVL 30

Accepted Solution

by:
Feridun Kadir earned 2000 total points
ID: 34140867
What entity is the lookup field connecting to?

Is duration a field on the other entity?  If so, then you can't get at the value of it directly using javascript. You can only directly get values of fields that are explicitly shown on the form. If you want to get the value of another attribute in a connected record(i.e. via a lookup) then you will need to call the CRM web services in the javascript to query for the attribute that you are interested in on the connected record. The CRM SDK has a section on using web services in javascript (or jscript as Microsoft refers to it).

0
 

Author Closing Comment

by:juttaReimann
ID: 34144007
Thanks for pointing me in the right direction.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

This is a walkthrough guide I wrote whilst upgrading my on-premise MS Dynamics CRM 3.0 deployment to 4.0. This covers the actual installation of the product to a working level for my system, I ran into a lot of issues that the steps below fixed so h…
Desired Skill Set for Microsoft Dynamics CRM Technical Resources – Part II
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

649 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