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 -> PHP

 Displaying a new value in listbox

Print topic Send  topic

Author Message
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.
View profile  Send private message
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.

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.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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