Topic
  • 4 replies
  • Latest Post - ‏2013-08-19T05:10:28Z by Ekanto
MohammadArfath
MohammadArfath
1 Post

Pinned topic Launching an Application on a click of Button from another Application in Maximo

‏2013-07-09T16:02:35Z |

Hi All, 

I have created two applications in maximo i.e App1 and App2 . I need to pass a parameter from App1 application to app2 and open its respective details in App2 application on button click.

I tried the following process : 

1) I created launch in context and mentioned the url of app2 

2)Added Sig option 

3) Mentioned Sigoption in Button properties

4) Updated Security Groups settings to provide access to sig option

After doing this iam able to launch app2 on click of app1 button  but iam unable to pass the parameter dynamically.

To pass the parameter i had to hard code the value in the url . Which i dont want to do.

i.e http://localhost/maximo/ui?event=loadapp&value=app2&additionalevent=useqbe&additionaleventvalue=appid='A123'

In above url appid is the parameter that i hard coded .

But i want to do something like this 

http://localhost/maximo/ui?event=loadapp&value=app2&additionalevent=useqbe&additionaleventvalue=appid=:appid

where :appid is the dynamic value that i need to pass . 

How can i achieve the above functionality ?

I also tried with sqlwhere clause but it's not working 

i.e http://localhost/maximo/ui/?event= loadapp&value=app2&additionalevent=sqlwhere&additionaleventvalue=appid%20in(select%20appid%20fromapp_table%20where%20appid%3D:appid)

Thanks 

  • scottsd
    scottsd
    121 Posts

    Re: Launching an Application on a click of Button from another Application in Maximo

    ‏2013-07-10T15:00:22Z  

    First off this is a good reference for how to build a URL. 

    https://www.ibm.com/developerworks/mydeveloperworks/blogs/a9ba1efe-b731-4317-9724-a181d6155e3a/entry/the_power_of_maximo_url_parameters9?lang=en

    Make sure that you have a valid URL that works outside the launch in context mechanism (i.e. if you type it into the browser directly and hit refresh, does it launch that record correctly?)

    Now once you have the right pattern here's the syntax for launch in context urls:  Notice that the values populated from local relationships and attributes are surrounded by brackets.

     

    https://{PMRELOMPRLN.HOSTNAME}:9443/maximo/ui/login?event=loadapp&value=tptask&uniqueid={OMPDEPLOYMENTID}

  • MohammadArfath.
    MohammadArfath.
    1 Post

    Re: Launching an Application on a click of Button from another Application in Maximo

    ‏2013-07-16T03:25:26Z  
    • scottsd
    • ‏2013-07-10T15:00:22Z

    First off this is a good reference for how to build a URL. 

    https://www.ibm.com/developerworks/mydeveloperworks/blogs/a9ba1efe-b731-4317-9724-a181d6155e3a/entry/the_power_of_maximo_url_parameters9?lang=en

    Make sure that you have a valid URL that works outside the launch in context mechanism (i.e. if you type it into the browser directly and hit refresh, does it launch that record correctly?)

    Now once you have the right pattern here's the syntax for launch in context urls:  Notice that the values populated from local relationships and attributes are surrounded by brackets.

     

    https://{PMRELOMPRLN.HOSTNAME}:9443/maximo/ui/login?event=loadapp&value=tptask&uniqueid={OMPDEPLOYMENTID}

    Hi Scottsd,

    I tried that

    http://localhost/maximo/ui?event=loadapp&value=app2&uniqueid={appid}

    But it will only if everytime i provide value in flower braces in that url

    i.e

    http://localhost/maximo/ui?event=loadapp&value=app2&uniqueid={1234}

    But in my scenario i have a couple of appids that will be received in the application dynamically from webservice . And when the user clicks the button it should go to the respective appid . So i cannot provide appid manually .. I.e like 1234 in URL . I want a means to pass a parameter appid in url . So that if user clicks button it should pick the respective appid dynamically and open the other application and display its details .

    How can  i achieve this ?  .. Need ur help  ... plz

     

     

     

  • scottsd
    scottsd
    121 Posts

    Re: Launching an Application on a click of Button from another Application in Maximo

    ‏2013-07-16T12:56:03Z  

    Hi Scottsd,

    I tried that

    http://localhost/maximo/ui?event=loadapp&value=app2&uniqueid={appid}

    But it will only if everytime i provide value in flower braces in that url

    i.e

    http://localhost/maximo/ui?event=loadapp&value=app2&uniqueid={1234}

    But in my scenario i have a couple of appids that will be received in the application dynamically from webservice . And when the user clicks the button it should go to the respective appid . So i cannot provide appid manually .. I.e like 1234 in URL . I want a means to pass a parameter appid in url . So that if user clicks button it should pick the respective appid dynamically and open the other application and display its details .

    How can  i achieve this ?  .. Need ur help  ... plz

     

     

     

    The appid syntax you've given above, checks the local object record for a field called "appid" and should fill that uniqueid in for that field based on the current value of this record.

    I assume there are two fields on the launching object and each points to some unique record in the secondary apps? 

     

    Make sure you are pointing to an attribute or relationship name/attributename on the launching object and it should be filled in correctly.

     

    Scott

  • Ekanto
    Ekanto
    5 Posts

    Re: Launching an Application on a click of Button from another Application in Maximo

    ‏2013-08-19T05:10:28Z  

    Hi Arfath, There are a few questions:

    1)Is the appid field persistent in both app1 & app2?

    2)For a record in app1, does appid keep dynamically changing due to the webservice?

    3)Is the appid in some other table and linked to app 1 & app 2 through some relationship?