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!
|
|
problem with user type lookups
Posted: 30 Jan 08 11:29 AM
|
In a custom form for a custom entity, I am trying to use 2 user type lookup fields, Each one of them is associated with a Standard Id type field, so in the databindings, under LookupResultValue i've set each of these ID fields to its corresponding lookup control, so that this property looks like MainEntity.Field1 and MainEntity.Field2 respectively.
The weird thing is that Field #1 works perfectly and Field #2 does not. Field #1 updates the database with the UserID and Field #2 updates the database with the UserName.
Why is this happening and how can i fix this? |
|
|
| |
|
Re: problem with user type lookups
Posted: 31 Jan 08 10:45 AM
|
Originally posted by Ismael Gonzalez
Does anyone know where I can find a Web Client developers guide? or a guide on how to build lookups? |
|
Sadly, there is no such thing (yet). |
|
|
|
Re: problem with user type lookups
Posted: 31 Jan 08 4:07 PM
|
Is there already a field on a table with the users Lastname,Firstname information? I tried creating a calculated field on the Administrator then updating the userinfo property to include this calculated field, but now when i try and open my portal i get an error.
how can I make a field that has the users LastName,FirstName? |
|
|
|
Re: problem with user type lookups
Posted: 31 Jan 08 4:21 PM
|
If your relationship is to UserInfo, and not User then thagt might be your problem. You always want your "user" realtionships to go to User, not UserInfo. IIRC, the entity expression (for ToString override) for the User entity is already set to the user's Lastname, Firstname so it should display just right.
Also, for displaying in a grid you can select the User column type to translate a USERID to the user name as well if needed. |
|
|
|
Re: problem with user type lookups
Posted: 31 Jan 08 5:05 PM
|
Also, for displaying in a grid you can select the User column type to translate a USERID to the user name as well if needed. |
|
How do you do this? |
|
|
|
Re: problem with user type lookups
Posted: 31 Jan 08 5:08 PM
|
When adding columns to the grid, click the little down arrow on the site of the button to get the menu, then choose User Column from the list and select the field with the USERID value to bind to the column. |
|
|
| |
|
Re: problem with user type lookups
Posted: 01 Feb 08 12:29 PM
|
yet again
So I got my lookup there and it is sending the Contact's name into the database instead of the ID, how do I have to bind this so that it sends the ID to the database?
I was going to do it as an OnChange event like
objMyCustomEntity.myProperty = lueContact.Text;
but this did not work, is the ID installed into a hidden field, or how can I get this to work? |
|
|
|
Re: problem with user type lookups
Posted: 01 Feb 08 2:36 PM
|
You'll want to set the LookupResultValue to be mapped to the object property from teh relationship in the DataBindings. |
|
|
|