Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, February 19, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: webclient: datagrid, ID to name field
Ismael Gonzalez
Posts: 56
 
webclient: datagrid, ID to name fieldYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Jan 08 6:45 PM
ok guys here is the situation:
I created an Entity XX off of Account. 1 Account --> M XX

Created the Child Property from Account to XX via Account.AccountID = XX.AccountID

I created a new form with grid from Account, to hold a datagrid with fields from XX

2 of the fields in XX are a ContactID field for "Customer" and a UserID field for "Consultant"

Now after deploying, etc, when i go to view the grid, i see all the data, but the Customer and Consultant fields show the ID's, which are the values in the DB, but I would like to pull in the FirstName and Lastname values instead of the ID.

Do I have to create joins in the Administrator or how can I get this to work? Can any of you point me in the right direction?

thanks,
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: webclient: datagrid, ID to name fieldYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Jan 08 11:00 PM
You need to create relationships in the AA.

1) Create a M:1 relationship from XX to Contact - include property on XX but no collection property on Contact

2) Create a M:1 relationship from XX to User (not UserInfo) - Include property on XX but not on User

Make sense?

-Ryan
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: webclient: datagrid, ID to name fieldYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Jan 08 11:00 PM
BTW, after creating the relationships you can easily select the Contact and User properties on XX to include in the grid.
[Reply][Quote]
Ismael Gonzalez
Posts: 56
 
Re: webclient: datagrid, ID to name fieldYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Jan 08 4:42 PM
I created the relationships as you noted, and I can add the fields individually but when I try to combine first and last name in one field I get this error:

Line 71: if (this.Visible)
Line 72: {
Line 73: dsAccountCostSavings.SourceObject = BindingSource.Current;
Line 74: }
Line 75: }

The way that im trying to combine them is the following, I have a Bound field in my data grid and in the DataField property I have XXRelationshipUser.FirstName, XXRelationshipUser.LastName and in the TextFormatString I have {0}, {1}

Is this not valid with simple BoundFields?
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: webclient: datagrid, ID to name fieldYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Jan 08 4:46 PM
That is not valid. The Contact entity already has a property with both first and last combined. Look for the property called NameLF and use that instead.

BTW, if you wanted to combine properties like that you could create a custom property where you combine them as needed and return the complete string - then bind that to whatever you wanted.

-Ryan
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 2/19/2025 7:51:59 PM