Project and Portfolio Management Practitioners Forum
cancel

portlet hyperlink that opens a new window/tab

SOLVED
Go to solution
Highlighted
tony sanchez_1
Valued Contributor.

portlet hyperlink that opens a new window/tab

we would like to have a hyperlink from our custom portlets open in a new window/tab rather than in the current window/frame.

This is particularly a problem with portlets in the project overview section of a project, which open within the project overview frame.

we would the following code would work but it does not.

/itg/web/knta/crt/RequestDetail.jsp?REQUEST_ID=[DSH.PRT.ENTITY_ID]&IS_WINDOID=Y

Anyone have any clues ?
10 REPLIES
Mahen M
Acclaimed Contributor.

Re: portlet hyperlink that opens a new window/tab

Have you ran kUpdateHtml.sh script after the server is down?

Have you re-started the server once after the change?

Regards,
Mahendran M
tony sanchez_1
Valued Contributor.

Re: portlet hyperlink that opens a new window/tab

any reason why we would need to restart the server and run kupdathtml.sh to make this work ?

typically changes to a data source are applied straight away and do not require an outage
Mahen M
Acclaimed Contributor.

Re: portlet hyperlink that opens a new window/tab

oh, You have not done any JSP Paje change, I am sorry, you need not do re-start.

Have made the above change in Address page of the browser?

Regards,
Mahendran M
tony sanchez_1
Valued Contributor.

Re: portlet hyperlink that opens a new window/tab

I have pasted this URL into a browser window and it does not open a new window.

however the staffing profile field shortcut on our project form ( token KNTA_STAFFING_PROFILE ) has a similar structure and does open up a new window.

What makes this really ugly is the behaviour within the project overview summary, where it opens the new window inside the frame
Mahen M
Acclaimed Contributor.
Solution

Re: portlet hyperlink that opens a new window/tab

After entering the URL, Have you clicked 'Go' in your browser once?

The changes in the URL usually will not work, I hope this requires a JSP Change, I am not sure about the level of change the system needs so that it works as per your needs.

Let us wait to see whether we have any workarounds from other members of this forum.

Regards,
Mahendran M
Nisha Kurien
Honored Contributor.

Re: portlet hyperlink that opens a new window/tab

There is a new validation type called 'Link'. This allows the ability to open links in a new environment. This is available in 7.5.

I faced the similar issue where links were opening in the same window rather than a new window. I converted the validation type from URL to Link, and it solved my problem.

Hope this helps!
Erik Cole
Acclaimed Contributor.

Re: portlet hyperlink that opens a new window/tab

Hi Tony,

Just place an HTML tag in your portlet column containing your link, like:

My Hyperlink Text

that uses target="_blank" to force a new window. Be sure to check the "Source contains HTML" checkbox in your portlet definition for that column.

Also, you can just shift-click any links, like on the Project Overview page, and your browser will open them in a new window.
tony sanchez_1
Valued Contributor.

Re: portlet hyperlink that opens a new window/tab

Erik Cole
Acclaimed Contributor.

Re: portlet hyperlink that opens a new window/tab

Make the column type "Text" and enclose your A tag in single quotes.
Nisha Kurien
Honored Contributor.

Re: portlet hyperlink that opens a new window/tab

Try this option. Screenshot attached.