CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 [RESOLVED] POP-UP WINDOW DETAIL FROM A PARENT WINDOW GRID ROW.(SHOULD BE INCLUDED ON THE CODECHARGE DOCUMENTATION)

Print topic Send  topic

Author Message
CodeChargeMVP

Posts: 473
Posted: 07/08/2010, 3:26 AM

Hello,

I´ve resolve with javascript the code for a very interesting stuff,

imagine than you got a grid with lots of fields,

¿wouldn´t be better got a link button to a new pop-up window

which show a detail from the

actually row grid?

I think so,

so that´s what i´ve resolved i´ll write a tutorial on this post

so everybody could make it work.


This Comes necesarry cause of a bug on the LINK Codecharge Component,

which doesn´t fix with the fuction OpenPop_UpList() created by the Codecharge developers.

When you try using it that compoenent,it goes weird.

Greets.




_________________
Best Regards
Entrepeneur | NT Consultant
View profile  Send private message
CodeChargeMVP

Posts: 473
Posted: 07/09/2010, 3:02 AM

I´ve improved the code made by andy and resolving some small mistakes.
Without his thinking i could´t be able to made this.


TextBox:

Id: whateveranotherdifferentname_{gridname:rowNumber}
Name:Whatevername_
Type: Hidden


Button:

Id: gridnameButton1_{gridname:rowNumber}
Type: Submit
Value: +
Events: OnClick OpenPop_UpList(this);return false;


function OpenPop_UpList(Campo)
{

with(campo)
{

var fieldname = id;

row_id = fieldname.substr(22);

var parametros="here define the parameters window";
var linkhref="thenameofyourpage.php?ParameterName="+
window.document.getElementById("whateveranotherdifferentname_"+row_id).value;

var win=window.open(linkhref,"win",parametros);

win.focus;


}





}
_________________
Best Regards
Entrepeneur | NT Consultant
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.

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.