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

 Re: Link->SetLink(...)

Print topic Send  topic

Author Message
datadoit
Posted: 10/07/2007, 9:04 AM

rickielee wrote:
> Hi there
>
> I want to modify a link/URL (stored in a DB field) before displaying it (I use
> the BeforeShow event of a Link component).
>
> It seems impossible to use the SetValue() to set the modified link...
>
> However I can use the SetLink() function inside my code but I noticed that
> SetLink() always makes sure that the URL ends with a slash "/"...
>
> Any way to avoid the end-slash?
>
> Thx,
>
> ---------------------------------------

Check to make sure the link's Visibility is set to 'Dynamic'. This'll
put the necessary <!-- BEGIN Link --><!-- END Link --> tags in the HTML.
With that, this means that the name of the link can't be altered in
the HTML. What I mean by this is that it MUST have the curly brackets
around the name:

Ex: <!-- BEGIN Link --><a href="{Link_Src}">{Link}</a><!-- END Link -->

Then in the Link's BeforeShow you can use SetValue(). In fact, without
a SetValue() your link will not even display since it won't have a value.

As far as your trailing slash on your SetLink(), dunno. Provide some
version info's as far as PHP, web server, platform, etc.

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.