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

 New page from datbase url

Print topic Send  topic

Author Message
rmahon

Posts: 3
Posted: 09/18/2004, 8:31 AM

Any one know how to add target = _blank to a database URL?

Thanks
Ron
View profile  Send private message
Walter Kempees
Posted: 09/18/2004, 1:51 PM

please explain.
You mean an URL that was stored in a database record?
Output to a grid or Form?
Properties of the label, set type HTML, HTML prperties set target to _blank.

Walt

"rmahon" <rmahon@forum.codecharge> schreef in bericht
news:5414c54e9b81fc@news.codecharge.com...
> Any one know how to add target = _blank to a database URL?
>
> Thanks
> Ron
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

klwillis


Posts: 428
Posted: 09/20/2004, 1:16 PM

You'll have to add that within the HTML

Quote rmahon:
Any one know how to add target = _blank to a database URL?

Thanks
Ron

_________________
Kevin Willis, VP/CIO
HealthCare Information Technology Specialist
http://www.nexushealthcare.com
"Fast - Convenient - Quality-Care"

Medical Software Consulting Services
Email : klwillis@nexushealthcare.com
Skype : klwillis2006
View profile  Send private message
rmahon

Posts: 3
Posted: 09/20/2004, 4:05 PM

Yes I trying to do it programmatically. By building a string and concating them together in an event, maybe before show.
No luck, but I seem to remember doing this several years ago in plan cc.

Seams I did this several years ago with a old version of cc. Right now I’m brain dead and can’t get
Ron
View profile  Send private message
rmahon

Posts: 3
Posted: 09/24/2004, 8:51 AM

Ok some time we all do dumb things! The page propertywas the answer
<?php
//BindEvents Method @1-EE6FF2D5
function BindEvents()
{
global $detail;
$detail->web_url->CCSEvents["BeforeShow"] = "detail_web_url_BeforeShow";
}
//End BindEvents Method

//detail_web_url_BeforeShow @34-54E603DC
function detail_web_url_BeforeShow()
{
$detail_web_url_BeforeShow = true;
//End detail_web_url_BeforeShow

//Custom Code @37-2260A674
// -------------------------
global $detail;
$detail->web_url->Page=$detail->web_url->Value . "\" target =\"_blank";
// -------------------------
//End Custom Code

//Close detail_web_url_BeforeShow @34-CA16E810
return $detail_web_url_BeforeShow;
}
//End Close detail_web_url_BeforeShow


?>

One line of code mad it flyO:)
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.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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