bob laflamme
|
| Posted: 12/16/2004, 7:39 AM |
|
New to codecharge, and I need to know how to use a custom function to populate a listbox.
I have a php function that connects to Microsoft AD and returns an array of user names, I'd like to use this to populate a listbox and then enter the value into a db column.
function get_users()
{
connect to ad and do stuff....
return $array;
}
|
|
|
 |
peterr
Posts: 5971
|
| Posted: 12/17/2004, 1:35 AM |
|
Possibly this would help: http://docs.codecharge.com/studio/html/ProgrammingTechn...stOfValues.html http://forums.codecharge.com/posts.php?post_id=42560&s_...BoxListOfValues
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
Damian Hupfeld
|
| Posted: 01/15/2005, 7:50 PM |
|
Are you interested in sharing the custom PHP code?
regards
Damian Hupfeld http://www.itng.com.au/services.php
<boblaflamme@forum.codecharge (bob laflamme)> wrote in message
news:541c1ac250f4d4@news.codecharge.com...
> New to codecharge, and I need to know how to use a custom function to
> populate
> a listbox.
>
> I have a php function that connects to Microsoft AD and returns an array
> of
> user names, I'd like to use this to populate a listbox and then enter the
> value
> into a db column.
>
> function get_users()
> {
> connect to ad and do stuff....
> return $array;
> }
>
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
Justman
|
| Posted: 01/16/2005, 2:51 PM |
|
Hi Peter,
The link you suggested in this topic would be appropirate if values are "static". What about when you retrieve data from database and you have a recordset that you want to use to populate a listbox especially listbox in an editable grid form. Just a thought.
Cheers,
Justman
|
|
|
 |
peterr
Posts: 5971
|
| Posted: 01/16/2005, 3:06 PM |
|
Looking at that post from Robert Little, he is using an SQL to retrieve listbox values, therefore I don't think that it is static.
The other example is static, but an array can always be created dynamically, which is what Robert Little did.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
|