CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Popup List (Choose Value)

Print topic Send  topic

Author Message
AndreasB

Posts: 9
Posted: 06/27/2007, 4:04 AM

Hi,

my aim is to create a popup list to choose values easily. This should be somewhat similar to the Example of the CCS example pack (http://examples.codecharge.com/ExamplePack/PopUpList/PopUpList.php).

The page(s) calling the popup window have two fields that need to be filled. One hidden filed (ID field) and one text field.

The popup window page has a grid with 3 columns:
1. The text
2. a link (doing some other non-related stuff)
3. the "choose entry" link

Here are my problems:

I would like to open this form from many different fields in many different forms. So i need to set variables for both the form name and the field. Modifying the JavaScript function was easy (and might even work ;)):

  
function SetOpenerValue(formname,idfield,idvalue,textfield,textvalue)  
{  
	window.opener.document.formname.idfield.value = idvalue;  
	window.opener.document.formname.textfield.value = textvalue;  
	window.opener.focus();  
	window.close();  
}  
But therefore, the variables need to be set. Adding the formname and the formfield values needed to the link that actually calls the popup window is no problem, but how do i set the variables in the link in the grid form??

The "choose entry "link would need to look like this:
<a onclick="SetOpenerValue(MyFormName,MyIDFieldName,4,MyTextFieldName,'Blabla');return false;" href="">Choose entry</a>

Where "MyFormName", "MyIDFieldName" and "MyTextFieldName" would need to be set dynamically based on a URL (GET) Value and "4" and "'Blabla'" would be vaules of the specifc row of the link.

Is this possible?
If yes, how? ;)

Kindest Regards,

Andreas
View profile  Send private message
AndreasB

Posts: 9
Posted: 07/02/2007, 2:14 AM

*bounce*

Anyone?
View profile  Send private message

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.