PierrikLeGuennec
Posts: 2
|
| Posted: 06/20/2005, 1:08 AM |
|
(asked tu support)
I make a new value by a popup.
I use the technic used by the page GetCustomerInfo of RetrievingFieldsValues exemple, exemples_ccs2 pack, for a listbox :
window.opener.document.{origine}.value = {passe};
window.opener.document.{origine}_ajout.value = {passe};
window.opener.focus();
window.opener.location.reload();
window.close();
In opener page, {origine}_ajout is valued.
By window.opener.location.reload(), I have a result on {origine} listbox, by adding :
function tarifs_BeforeShow()
{
$tarifs_BeforeShow = true;
//End tarifs_BeforeShow
//Custom Code @36-337976E8
// -------------------------
global $tarifs;
// Write your own code here.
$ajout = CCGetCookie("passeAjout");
if ($ajout != "") {
$tarifs->fournisseur->SetValue($ajout);
CCSetCookie("passeAjout","");
}
// -------------------------
//End Custom Code
//Close tarifs_BeforeShow @2-FF41AD30
return $tarifs_BeforeShow;
}
It maker selected on html code for the new value, but only the request of choice is shown.
If I dont't clean the cookie and reopen the page, the good value is shown.
What's wrong ?
Thanks.
|
 |
 |
Pierrik Le Guennec
|
| Posted: 06/20/2005, 2:41 PM |
|
Error : I can make selected value on reload window.opener, but it is not the result of valuing window.opener.
The problem is to reinitialize the listbox, as on page opening. But cclistbox is not documented.
|
|
|
 |
|