Selected items + form

cancel
Showing results for 
Search instead for 
Did you mean: 
kamilaw_
Member II

Selected items + form

I have 

<multi-select>
   <action type="action-link" id="onEdit" permission="Write" label="multi-edit-document.edit" />
</multi-select>

Than I have js maps to this action. It works fine. 

I need to create my own form. How to do this?

 I try create in share-config-custom own form with id onEdit. 

<config evaluator="string-compare" condition="onEdit">
   <forms>
   //something
   </forms>
</config>

And in the js:

var templateUrl = YAHOO.lang.substitute(Alfresco.constants.URL_SERVICECONTEXT + "components/form?itemKind={itemKind}&itemId={itemId}&destination={destination}&mode={mode}&submitType={submitType}&showCancelButton=true", {
itemKind: "action",
itemId: "onEdit",
mode: "edit",
submitType: "json",
destination: nodeRef }); 

But it is still writing: A form could not be found for item: [action]onEdit.

What is wrong? Thanks.

3 Replies
Highlighted
kamilaw_
Member II

Re: Selected items + form

It is the right way to do this? (Or do I have to create a webscript and create my own form in .ftl?)

kalpesh_c2
Senior Member

Re: Selected items + form

Hi, Kamila

To create a custom form on custom action of document please refer the example from this doc will help you.

Adding new actions to the Document Library | Alfresco Documentation 

Thanks,

Kalpesh

kamilaw_
Member II

Re: Selected items + form

Thank you for your quick answer.

I read this articles about million times, but no answer.

Problem is, that there is no action, there is only multi-selected item