08-07-2016 10:17 AM
<config evaluator="string-compare" condition="DocLibActions">
<actions>
<action id="document-archive" type="javascript" label="Archive">
<param name="function">onActionChangeTypo</param>
<permissions>
<permission allow="true">Write</permission>
</permissions>
<param name="action">expire-artefact</param>
<param name="successMessage">Artefact successfully expired</param>
<param name="failureMessage">Failed to Expire artefact</param>
</action>
</actions>
….
</config>
<!– Document Library Custom Code config section –>
<config evaluator="string-compare" condition="DocLibCustom" replace="true">
<dependencies>
<!–css src="my-custom-action.css" /–>
<js src="components/documentlibrary/my-custom-action.js" />
</dependencies>
</config>
(function() {
YAHOO.Bubbling.fire("registerAction",
{
actionName: "onActionChangeTypo",
fn: function custom_onActionChangeTypo(file) {
var displayPromptText = this.msg("Do you want to expire this artefact?", file.displayName);
}
});
})();
08-08-2016 02:29 AM
YAHOO.Bubbling.fire("registerAction",{
actionName: "onActionChangeTypo",
fn: function custom_onActionChangeTypo(file)
{
var displayPromptText = this.msg("Do you want to expire this artefact?", file.displayName);
alert(displayPromptText);
}
});
08-08-2016 02:29 AM
YAHOO.Bubbling.fire("registerAction",{
actionName: "onActionChangeTypo",
fn: function custom_onActionChangeTypo(file)
{
var displayPromptText = this.msg("Do you want to expire this artefact?", file.displayName);
alert(displayPromptText);
}
});
08-08-2016 04:42 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.