Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Populate User Dropdown

Avatar

Avatar
Validate 1
Level 3
The_Flex_Viking
Level 3

Likes

2 likes

Total Posts

121 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 3
The_Flex_Viking
Level 3

Likes

2 likes

Total Posts

121 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
The_Flex_Viking
Level 3

08-11-2008

I wondering if there is a way to prepopulate a dropdown with a list of users from LC's user list. I was looking at the FindUsers service, and it is supposed to return a list of User objects. At that point, I am stumped though, as I am not sure how to bind it to the form. Do I have to convert the list to XML?

Replies

Avatar

Avatar
Validate 1
Level 3
The_Flex_Viking
Level 3

Likes

2 likes

Total Posts

121 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 3
The_Flex_Viking
Level 3

Likes

2 likes

Total Posts

121 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
The_Flex_Viking
Level 3

08-11-2008

I guess I could query the database directly rather than trying to use the UserManager service.

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

10-11-2008

That is the way to do it....I suggest running a query against the EDCPRINCIPALUSERENTITY table. You could get the results back as a comma delimeted list an populate a hidden field. When the form loads you could extract prgrammatically put the list into the dropdown. I have done this intractively via a web service. If you want my sample, post your email address and I will pass it along.



Paul

Avatar

Avatar
Coach
Level 10
Jasmin_Charbonn
Level 10

Likes

149 likes

Total Posts

2,154 posts

Correct Reply

97 solutions
Top badges earned
Coach
Give Back 1000
Give back 900
Give Back 800
Give back 600
View profile

Avatar
Coach
Level 10
Jasmin_Charbonn
Level 10

Likes

149 likes

Total Posts

2,154 posts

Correct Reply

97 solutions
Top badges earned
Coach
Give Back 1000
Give back 900
Give Back 800
Give back 600
View profile
Jasmin_Charbonn
Level 10

10-11-2008

Unfortunately you would have to convert it over to XML. This is a pain.



Paul's technique would probably be quicker but we try to prevent people from hitting the database directly since there is not guarantee it won't change in future release (although not likely).



I'll log an enhancement request to also have the option of getting the data as xml.



Jasmin

Avatar

13-11-2008

if you are using Flex it is easy to use FindUsers, if not I have a custom component which returns the users in xml format

let me know

thanks

girish

mergeandfuse@gmail.com