11/26/2024 10:26:15 AM
|
|
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!
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.
|
|
|
|
Anyone managed to add a user lookup without Logix crying??!
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 |
|
|
| |
|
Re: Anyone managed to add a user lookup without Logix crying??!
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 |
|
|
|
Re: Anyone managed to add a user lookup without Logix crying??!
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 |
|
|
|
Re: Anyone managed to add a user lookup without Logix crying??!
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 |
|
|
|
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!
|
|
|
|
|
|
|
|