splay
Posts: 8
|
| Posted: 07/23/2008, 2:10 PM |
|
Hi Guys,
I am wondering if this is possible.
I have an Autofill textbox that works quite nicely, you type a company name in and it works fine.
For each company I have a list of users within that company, so I want when the Company name has been selected for my dropdown of users to be filtered by the selected company.
I have had a look at building a custom service page but then I cant seem to see a way to connect to that custom page from a control. If I click the attributes of my dropdown list and choose PTAutofill, chosee my custom serivce page and then try to map the fields, it tells me the connection parameter wasnt set.
This was my first attempt at a custom service page so a little lost.
How do you ever connect to your custom page?
Can you fill controls with its details?
Thanks
|
 |
 |
marcwolf
Posts: 361
|
| Posted: 07/23/2008, 4:04 PM |
|
Hi there.
Yes - I have done that - with basically unmlimities linked dropdowns.
what you need to do is this.
The onchange of the first dropdown does a call back to the server which does several things.
1. Get a recordset of all records that match the passed criteria
2. Create Javascript that will clear out the target dropdown
3. Populate the dropdown with the contens of the recordset.
I have some code that does this plus some examples that I can send. Although I do not technically use AJAX - I use a hidden Iframe, however the concept is the same - call the server and then process the results.
I can post this code later today as I am not at my notmal development machine.
Take Care
Dave
p.s. you can also drop me an email at
boccabellad AT cvsol DOT com
And I can send some of the code to you.
_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
|
 |
 |
marcwolf
Posts: 361
|
| Posted: 07/23/2008, 4:04 PM |
|
accidental duplication
_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
|
 |
 |
|