Doug
|
Posted: 04/01/2004, 8:54 AM |
|
Has anybody created pop-up search fields similar to a pop-up date picker? I want to be able to have a button that would open a pop-up search window which would allow for a person to search for and select a item, and have that item entered into the text box. Does CCS have anything to support this or will it have to be custom code? I really have no idea where to start with this so any help is appreciated. Thanks
|
|
|
peterr
Posts: 5971
|
Posted: 04/01/2004, 1:43 PM |
|
Such example is included in CCS Example Pack. Also shown online at http://examples.codecharge.com/ExamplePack/PopUpList/PopUpList.php
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
Trisiana
|
Posted: 04/01/2004, 11:34 PM |
|
Hi Peter, I got the the same needs, I want the pop-up search field for my
thousands customer data.
I mimic the CCample Pack, and it works beautifully. Thanks.
My question is "Is it possible to build global (application wide)
PopUpList_window?" Because if I refer to CCS Example Pack, in case I have 5
different web pages that need customer lookup, I have to build 5 customer
popuplist_window too! Is it possible to have ONLY ONE customer
popuplist_window that serve many pages?
Or in technical, is it possible to make this javascript code dynamic
(departments.department_manager_id.value)?
This is original javascript code inside PopUpList_window, taken from CCS
example pack
==================
function SetOpenerValue(EmpName)
{
window.opener.document.departments.department_manager_id.value = EmpName;
window.opener.focus();
window.close();
}
|
|
|
donsafar
Posts: 90
|
Posted: 04/02/2004, 8:42 AM |
|
Just make sure the form name (departments) and fiieldname(department_manager_id) are the same on each calling page. I have used this same logic in all dataentry applications in a project I worked on (10 different pages).
_________________
Don Safar
|
|
|
|