AnsweredAssumed Answered

Custom Action - type javascript

Question asked by jordiv on Mar 6, 2012
Latest reply on Feb 3, 2014 by gits009
Hi,

I'm creating a custom action that executes a javascript function, but I don't know where I should place it.
So far I have in my share-config-custom.xml file:


<alfresco-config>
    …
    <config evaluator="string-compare" condition="DocLibActions">
        <actions>
            <action id="set-bill-type" type="javascript" label="label.action_setBillType">
                <param name="function">onActionSetBillType</param>
                <evaluator>evaluator.doclib.action.isContentType</evaluator>
            </action>
        </actions>
        <actionGroups>
            <actionGroup id="document-browse">
                <action index="500" id="set-bill-type" />
            </actionGroup>
        </actionGroups>
    </config>
    …


Where I should define the onActionSetBillType javascript function? As a script in Repository > Data Dictionary > Scripts ?

Thanks,
Jordi.

Outcomes