Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, May 17, 2024 
 
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: Anyone managed to add a user lookup without Logix crying??!
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Anyone managed to add a user lookup without Logix crying??!Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 13 Sep 07 11:41 AM
Hi,

OK I know you are probably bored of my posts by now - but it seems there is genuinely a problem with most things that I try in 7.2. The latest issue I have is with user lookups. Another developer here has had the same issue - so when adding a lookup it is there and i can lookup a user, but whenever I try and Save the form I get:

Static Create method not found on type, Sage.SalesLogix.Security.UserInfo

I am not sure why its doing this - I guess its trying to instantiate a userinfo object and pass it back, but for some reason it never seems to be able to create it. There is no documentation that I know of about adding user lookups, is there something special that I need to do in the userinfo entity to allow them to bind ?

Thanks!

Nick
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Anyone managed to add a user lookup without Logix crying??!Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Sep 07 1:45 AM
Don't create your relationship to the UserInfo entity. Instead use the User entity for the relationship. This is what is causing your problem.

Does that make sense?

-Ryan
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Anyone managed to add a user lookup without Logix crying??!Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Sep 07 2:06 AM
Hi Ryan,
Thanks very much - ill try that; it doesnt really make sense but I know how to create a relationship so thats what I shall do! I guess the userinfo is a speical type of entity you cant use? I wish it wouldnt have let me relate to it in the first place! Oh well, lets give this a go..

Thanks again
Nick
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Anyone managed to add a user lookup without Logix crying??!Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Sep 07 10:46 AM
This will definitely fix the problem.

If you think about it this way. The User in SLX, is made up of several things, the UserInfo data being only one of those things that make up a user (you also have the UserSecurity data, UserProfile data, etc). The User entity is the entity that completely represents the User in SLX, so that is the entity you create relationships to.

-Ryan
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Anyone managed to add a user lookup without Logix crying??!Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Sep 07 11:09 AM
Hi Ryan,

Thanks yes this does now work - I guess if you look at it that way it does make sense, its just frustrating as no matter how hard I try it never seems to let me get access to the userinfo entity, in the end to get user data in a grid I have:

- Tried to add a property that basically interrogated the database to get the user data I need - but these custom properties do not allow you to use Sage.Platform to get the current database connection... (as mentioned it does not like me generating a user info entity and doing an EntityFactory.GetByID..)

-So added a custom class to get the database connection data, then used this from my custom property to get the data I require..

-If that wasnt long winded enough I now have the problem that when I add a record to the grid the custom properties must be being generated later as the grid refereshes with my new row, but the user details are empty until you refresh the tab! Now working on a way of programmatically refreshing the tab (myabe using the nifty IRefresher service I have noticed..)

Thanks!
Nick
[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 © 2024 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): 5/17/2024 1:58:40 AM