Page 1 of 1

Variable Hyperlink

Posted: Thu Aug 23, 2012 7:25 am
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

Re: Variable Hyperlink

Posted: Thu Aug 23, 2012 12:19 pm
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

Re: Variable Hyperlink

Posted: Fri Aug 24, 2012 3:23 am
by georg.merten
I've a service program with parameter...

THANKS, it works!