Login / Register  search  syndication

          Ryan Farley's Blog

Ryan Farley on .NET Development with a focus on CRM Development for SalesLogix

Relationship Property Names and Case

In today's SalesLogix Web Developer class, we discussed an issue that someone in the class was having at runtime with a relationship that had a property that started with lower-case letters. Here are the details of that issue and the fix:

Scenario

Create a entity named "testProject" and then relate it to the Account entity. In the relationship, the Account will have a collection named "testProjects" (notice the property name starts lower case). You'll then use that relationship when you wire up your lookup on a form.

Problem

Every things builds fine, however at runtime you get an error saying "Could not find field '_TestProjects' in class Sage.SalesLogix.Entities.Account". Notice that the error refers to the property with an uppercase "T".

Solution

To fix this you just need to simply delete (or change) the relationship property to NOT start lower-case. Always name your relationship properties Proper-case, starting with an upper case letter always.


I don't know why this problem occurs. Seem that somewhere in the system an assumption is being made that the property name will be proper-cased (starting with an upper-case letter). However, I can tell you that you don't see the problem if you use the first letter upper-cased for the properties created in the relationship. Weird.

What's This?
Bookmark and Share

About Ryan Farley

   Ryan Farley is the Director of Development for Customer FX Corporation and the creator of slxdeveloper.com.


Related Content
   Hiding Opportunities in the SalesLogix web client
Occasionally we have clients who do not use the Opportunity components of the SalesLogix web client. 
Posted on Mar 10, 2010 by Kris Halsrud to Kris Halsrud's Blog
 
   Searching for Matching Records in the SalesLogix Web Client
In this short video the user will learn how to search for matching records while adding new records to th
Posted on Mar 10, 2010 by Dale Richter to Tech Talk
 
   Opening Several Records in the SalesLogix Web Client
This webinar will show the user how to open several records at one time. Often you would like to be able
Posted on Mar 10, 2010 by Dale Richter to SalesLogix Training
 
   Creating Ad-Hoc Groups in the SalesLogix Web Client
This webinar will show the user how to create Ad-Hoc Groups in the SalesLogix Web Client. This specific f
Posted on Mar 10, 2010 by Dale Richter to SalesLogix Training
 
   The "What's New" Feature in SalesLogix Web Client
This webinar will focus on the functionality of the "What's New" Feature. This feature all
Posted on Mar 10, 2010 by Dale Richter to SalesLogix Training
 
Comments

No Comments

Leave a Comment

(required)  
(optional)
(required)  
Add
All contents Copyright © 2010 Customer FX Corporation
Customer FX Corporation
2324 University Avenue West, Suite 115
Saint Paul, Minnesota 55114
Tel: 800.728.5783

  Follow @CustomerFX on twitter
Follow the best news, tips, and articles
  Subscribe to Customer FX on youtube
Watch SalesLogix tutorial videos from Customer FX
Login / Register