|
Ethen
|
 |
« 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
|
 |
« 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
|
 |
« 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
|
 |
« 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
|
 |
« 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
|
 |
« Reply #5 on: February 26, 2010, 05:22:44 am » |
|
which method to use for redirecting the url..
|
|
|
|
|
Logged
|
regards,
Ethen...
|
|
|
|