Maximo Wire - The IBM Maximo Help & Discussion Forum
May 23, 2012, 12:28:28 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to Maximo Wire, the IBM Maximo help forum. Feel free to register and ask any Maximo related questions you like.
 
  Home Help Search Login Register  
*
Pages: [1]   Go Down
  Print  
Author Topic: How to create a button which redirects user to some external url or application  (Read 1460 times)
0 Members and 2 Guests are viewing this topic.
Ethen
Global Moderator
Sr. Member
*****

Karma: 16
Posts: 303



View Profile WWW
« on: January 21, 2010, 06:44:44 am »

Hi all,
I have a small requirement of adding a button to an application which when clicked, will redirect user to a predefined url page using parameters (name value pair) from application.
I got no idea how to do it..
If anyone has worked on it please suggest...
Logged

regards,

Ethen...
vijet
Jr. Member
**

Karma: 5
Posts: 56



View Profile Email
« Reply #1 on: January 29, 2010, 07:09:13 pm »

Hi Ethen,

No idea about the button but Why not try this with a simple Hyperlink... That would reduce a lot of your work...

Regards
Vijet
Logged
Ethen
Global Moderator
Sr. Member
*****

Karma: 16
Posts: 303



View Profile WWW
« Reply #2 on: February 01, 2010, 07:36:48 am »

actually i wanted to send some parameters and do some manipulation before redirecting, which would not be possible in case of hyperlink.

and btw how are you.. long time no see
Logged

regards,

Ethen...
matzi
Newbie
*

Karma: 3
Posts: 17


View Profile Email
« Reply #3 on: February 01, 2010, 10:27:57 am »

You can make the button as a new controller and hard code all you desired values in it. Then add it to your application by editing the application xml.

I have never created a controller from scratch so I can't tell you exactly how to do it, but if you take a look at the existing controllers at %MAXIMO_ROOT%\applications\maximo\maximouiweb\webmodule\webclient\controls you might get any ideas on how to do it.

This is for Maximo 6 by the way, I don't know if Maximo 7 handles the controllers in the same way.
Logged
renegroz
Newbie
*

Karma: 0
Posts: 2


View Profile Email
« Reply #4 on: February 24, 2010, 04:39:52 am »

the way to do exactly what you want i.e. construct a URL based on some parameters and then pop a window or redirect the current window would have to be done via a bean class. I had the same requirement and thought it can be done simply by using a hyperlink but Maximo sadly doesnt substitutes parameteres into it so the URL would be hardcoded into the hyperlink.
To create what you want you will need to extend the appBean class for the application you are after. Create a new action method lets called it REDIRECT (this has to be in caps to match the sigoption) for the purposes of this example.
In that method perform the Java logic as you require it.
Point the app to use your new extended appBean class.
Create a Signature option of the same name (REDIRECT) and give yourself access to it.
Once done you can create a button with event REDIRECT and it will execute the logic in your method of the bean class.
Logged
Ethen
Global Moderator
Sr. Member
*****

Karma: 16
Posts: 303



View Profile WWW
« Reply #5 on: February 26, 2010, 05:22:44 am »

which method to use for redirecting the url..
Logged

regards,

Ethen...
Pages: [1]   Go Up
  Print  
 
Jump to:  

Recent

TinyPortal v1.0 beta 4 © Bloc
Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!