CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Displaying a new value in listbox

Print topic Send  topic

Author Message
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.

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.