cancel
Showing results for 
Search instead for 
Did you mean: 

launch other webapp with webdavurl as parameter

btorfs
Champ in-the-making
Champ in-the-making
Hello;
I made a custom menu item that is linked to docs in the document_browse_menu.
I now want to link the following action to it;
Get the webdavUrl and store it as a parameter,
this parameter should then be incorporated in a jnlp file
When clicked it should open the jnlp file using java webstart

in other words, clicking on my action should fire another application with the webdavurl or cifs url as parameter…

How should i start on this one?
<script> and <onclick> are no good cause in the server side javascript of alfresco I cannot open a seperate URL…
5 REPLIES 5

btorfs
Champ in-the-making
Champ in-the-making
hi; the previous question is obsolete…

I want to add somethin similar as the "view in webdavURL" function in the documentdetails.
But how can I add this new property to the existing documentdetailsbean?
How is this done for webdavurl?
regrads,
Bert

gavinc
Champ in-the-making
Champ in-the-making
The method is already there, it's called getWebdavUrl() and can be found in BaseDetailsBean.

btorfs
Champ in-the-making
Champ in-the-making
Hi, you are correct, but what I want to do is something similar as the "view in webdav" thing.
I want to start an external java webstart application with the webdavurl as a parameter. So I created the binding BaseDetailsBean.getRemotEye (Remoteye is the name of the application I want to start). But the problem is now that in order to run this jws app, I have to create a jnlp file, with the webdavurl as a parameter. And I want to create this in an alfresco folder in order to call this URL. E.g I want to create this in the images folder (just for testing). How can I do this?
Thanks,
Bert

gavinc
Champ in-the-making
Champ in-the-making
Do you mean you have to create a file which has as part of it's contents the webdav url (i'm not sure how java web start apps work)? If so, it's possible you maybe able to do something with JavaScript i.e. you could configure your action to call a JavaScript and that in turn could create your jnlp file.

btorfs
Champ in-the-making
Champ in-the-making
Hi;
I managed to add an urlmethod for remoteye in the utils.java. Then I made an env var that points to the images directory. In that directory  I created my jnlp file and I provided the url to the basedetailsbean. So if I click on my custom action, the java web start app opens.
I first wanted to do this using the contextpath() but this was apparently not sufficient, that's why I made this env var to have a workaround this.
Thanks,
Bert