Scenario i would have...possible?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2013 05:03 AM
Hi all,
i would make the following thing in the Alfresco Repository:
- considering you are in a folder with some images inside: add a new button on the right side(under edit metadata)
- pushing the button will open a new view/window/popup in which you can see: the image itself, a combobox, a button
- the combobox values are retieved from a webservice using GET method
- the button will make a POST to the same webservice
Is it possible? Can you advice me some guidelines?!
i would make the following thing in the Alfresco Repository:
- considering you are in a folder with some images inside: add a new button on the right side(under edit metadata)
- pushing the button will open a new view/window/popup in which you can see: the image itself, a combobox, a button
- the combobox values are retieved from a webservice using GET method
- the button will make a POST to the same webservice
Is it possible? Can you advice me some guidelines?!
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2013 12:49 AM
Alfresco share use YUI components so you need to build your solution around that only.
for button you could use YAHOO.widget.Button()
For adding event I think
Alfresco.util.createYUIButton(p_scope, p_name, p_onclick, p_obj, p_oElement)
then associate event with that.
Which will call the webscript in turn for you onclick of button.
for button you could use YAHOO.widget.Button()
For adding event I think
Alfresco.util.createYUIButton(p_scope, p_name, p_onclick, p_obj, p_oElement)
then associate event with that.
Which will call the webscript in turn for you onclick of button.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2013 03:11 AM
thank you for your answer!what about the GET/POST call to the web service?
i've read also in this forum it's not simple…
i've read also in this forum it's not simple…
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2013 06:19 AM
you can do that easily
something like this
something like this
<script type="text/javascript"> function getjson(this,site){ var scriptURL = "/alfresco/service/extension/abc"; alert(scriptURL); YAHOO.util.Connect.asyncRequest("GET", scriptURL, { success: handleInfo, failure: handleErrorYahoo }, null); } function handleInfo(response) { alert(response.responseText); var x=response.responseText; location.href='data:application/download,'+ encodeURIComponent(x);}</script>