Variable Hyperlink

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
georg.merten
New User
Posts: 17
Joined: Thu Aug 23, 2012 3:24 am
First Name: Georg
Last Name: Merten
Company Name: Kuehne + Nagel
Contact:

Variable Hyperlink

Post by georg.merten »

Hi,

we want to create a variable hyperlink on each page.
it should be the program name that is a link to a usermanual of a wiki-page that describes the program.
The Usermanual page in Wiki should be called like the Program, with an additional suffix U.
so the link should always be like
http://wiki.com/programnameU

is it possible to update the pui.link variable in my rpg-program?

Brgds,
Georg
kfritz
Profound User
Posts: 64
Joined: Thu Aug 04, 2011 4:53 am
First Name: Karl
Last Name: Fritz
Company Name: Logic IT Services
Address 1: Fluhgasse 141
City: Laufenburg
Zip / Postal Code: 5080
Country: Switzerland
Location: Switzerland
Contact:

Re: Variable Hyperlink

Post by kfritz »

Hi,

I think, you would use it for the Help button.

My suggestions:
You can do this on this way on the onclick event:
window.open("http://www.wiki.com/"+get("$PRGM")+"U");
or
pui.link("http://www.wiki.com/"+get("$PRGM")+"U");

The $PRGM id is the field of the INFDS, which indicates the program name. Place it as a hidden output field on the desired screens. Use the window.open API for a new browser window. Note: $PRGM is the ID of the output field

Or create a service program with a parameter program name.

Regards,
Karl
georg.merten
New User
Posts: 17
Joined: Thu Aug 23, 2012 3:24 am
First Name: Georg
Last Name: Merten
Company Name: Kuehne + Nagel
Contact:

Re: Variable Hyperlink

Post by georg.merten »

I've a service program with parameter...

THANKS, it works!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest