Pierrik Le Guennec
|
| Posted: 06/20/2005, 9:24 PM |
|
(asked to support - can be a Javascript problem)
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.
After 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 makes "selected" on html code for the new value, but only the request of choice "Search by value" is shown.
If I dont't clean the cookie and reopen the page, the good value is shown.
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.
What's wrong ?
Thanks.
|
|
|
 |
|