Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

HyperlinkToURL

3 posts in Appeon (partner product) Last posting was on 2005-04-05 19:14:20.0Z
Chuck Kahn Posted on 2005-03-31 17:06:03.0Z
From: "Chuck Kahn" <chuck.kahn@lmco.com>
Newsgroups: sybase.public.appeon
Subject: HyperlinkToURL
Lines: 12
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
X-Original-NNTP-Posting-Host: edge1a.lmco.com
Message-ID: <424c2df9@forums-2-dub>
X-Original-Trace: 31 Mar 2005 09:06:01 -0800, edge1a.lmco.com
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 31 Mar 2005 09:06:02 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 31 Mar 2005 09:06:03 -0800
X-Trace: forums-1-dub 1112288763 10.22.108.75 (31 Mar 2005 09:06:03 -0800)
X-Original-Trace: 31 Mar 2005 09:06:03 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:762
Article PK: 12678

Any idea if there is a way to do a relative URL using HyperlinkToURL of some
other function so that it looks inside the current application running in
Appeon instead of having an absolute URL. What I am trying to do is to copy
my HELP HTML files to the current application HTML directory inside Appeon
so that users can press the HELP icon inside my PB application and get these
HELP pages.

Thank you.

Chuck


Dean Jones Posted on 2005-03-31 22:02:57.0Z
From: "Dean Jones" <dean_dot_jones_at_powerobjects_dot_com>
Newsgroups: sybase.public.appeon
References: <424c2df9@forums-2-dub>
Subject: Re: HyperlinkToURL
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-Original-NNTP-Posting-Host: 216.207.144.172
Message-ID: <424c738e@forums-2-dub>
X-Original-Trace: 31 Mar 2005 14:02:54 -0800, 216.207.144.172
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 31 Mar 2005 14:02:54 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 31 Mar 2005 14:02:57 -0800
X-Trace: forums-1-dub 1112306577 10.22.108.75 (31 Mar 2005 14:02:57 -0800)
X-Original-Trace: 31 Mar 2005 14:02:57 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:765
Article PK: 12677

I thought there was a class in appeon work around that would give you
information about the request? You could look to see if you can get the URL
from this class and parse it to get the location of the current web
application and use that to build the URL for HyperLinkToURL.

Let me look in the work around pbl.

--
Dean Jones [TeamSybase]
CEO
Certified PowerBuilder Developer
www.powerobjects.com
(612) 339-3355 ext 112

"Chuck Kahn" <chuck.kahn@lmco.com> wrote in message
news:424c2df9@forums-2-dub...
> Any idea if there is a way to do a relative URL using HyperlinkToURL of
> some
> other function so that it looks inside the current application running in
> Appeon instead of having an absolute URL. What I am trying to do is to
> copy
> my HELP HTML files to the current application HTML directory inside Appeon
> so that users can press the HELP icon inside my PB application and get
> these
> HELP pages.
>
> Thank you.
>
> Chuck
>
>


Rex Geissler Posted on 2005-04-05 19:14:20.0Z
From: "Rex Geissler" <Rex.Geissler@sybase.com>
Newsgroups: sybase.public.appeon
References: <424c2df9@forums-2-dub>
Subject: Re: HyperlinkToURL
Lines: 144
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: vpn-dub-125.sybase.com
X-Original-NNTP-Posting-Host: vpn-dub-125.sybase.com
Message-ID: <4252e38c$1@forums-1-dub>
Date: 5 Apr 2005 12:14:20 -0700
X-Trace: forums-1-dub 1112728460 10.22.120.125 (5 Apr 2005 12:14:20 -0700)
X-Original-Trace: 5 Apr 2005 12:14:20 -0700, vpn-dub-125.sybase.com
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:772
Article PK: 20883

Hi Chuck,

Appeon supports changing the URL dynamically in the StaticHyperLink and
PictureHyperLink controls and the HyperLinkToURL function. Consider this
option.

For example, if you use a string variable as the URL in any of those
PowerBuilder features, you could set your base URL such as
http://130.214.10.134/appeon_code_examplesax and then simply add the HTML
help file names to it as the user context dictates. For example, if you go
to the Appeon Code Examples at http://130.214.10.134/appeon_code_examplesax/
then to the Standard Controls menu, then to StaticHyperLink, you can change
the URL that will be posted to
http://130.214.10.134/appeon_code_examplesax/images/exclamation.jpg. If
there were a directory that held your HTML Files under the primary folder,
you could simply add the contextual HTML file to the primary folder for the
application. Then just change the string variable to the primary URL + the
Relative URL and set it to the URL property such as
http://130.214.10.134/appeon_code_examplesax/images/exclamation.jpg, which
should bring up an exclamation flag.

You can change the StaticHyperLink.URL or PictureHyperLink.URL property to
whatever URL you like as it could be a string variable that constantly
changes based upon the context of the user session., either inside the
Appeon Server such as a URL like %Appeon Server%/html/lmco_help.html, or
outside the Appeon Server such as a URL like http://sybase.com/appeon.

In addition, Appeon supports the function HyperLinkToURL as a system
function (the PowerBuilder object Inet is unsupported). Therefore, the
following syntax is partly supported where the URL parameter could again be
a string variable that constantly changes based upon the context of the user
session.

servicereference.HyperlinkToURL (url)


The Appeon Workarounds link at
http://www.appeon.net/support/documents/workarounds.htm also shows an
example:
ShowHelp function
Description

Using the ShowHelp function to display a HLP file or a CHM (HTML Help) file
is unsupported .

Workaround

To enable you to display a HLP file or a CHM file, replace the ShowHelp
function by applying a StaticHyperLink, PictureHyperLink or HyperLinkToURL:



STEP 1 Upload the Help file to your Web Server.

STEP 2 Create a StaticHyperLink or PictureHyperLink control in the
application and set the link of the control to the URL of the Help file.
You can also apply the HyperLinkToURL function in the application for
accessing the URL of the Help file.

Example

This example uses Appeon Help as the HLP file. First upload the HLP file to
the Web Server (in this example Appeon Help is located in
http://www.appeon.net/support/manuals).

Workaround #1: open the HLP or CHM file with a StaticHyperLink control.

Create a StaticHyperLink control in the application. Add the Appeon Help
URL (http://www.appeon.net/support/manuals) to the URL property of
StaticHyperLink control.

Workaround #2: Apply the HyperLinkToURL function to access the URL of the
Help file.

Add the following code to the relevant location in the application:

Inet internet

Internet = create Inet

internet.HyperLinktoURL(http://www.appeon.net/support/manuals)


Regards, Rex

"Chuck Kahn" <chuck.kahn@lmco.com> wrote in message
news:424c2df9@forums-2-dub...
> Any idea if there is a way to do a relative URL using HyperlinkToURL of
some
> other function so that it looks inside the current application running in
> Appeon instead of having an absolute URL. What I am trying to do is to
copy
> my HELP HTML files to the current application HTML directory inside Appeon
> so that users can press the HELP icon inside my PB application and get
these
> HELP pages.
>
> Thank you.
>
> Chuck
>
>

STEPS.gif