08-05-2019 12:40 AM
i want to learn how to put dynamic dashlet in alfresco share so for that if any one have good stuff or link then please share here.i want to put dashlet on button click .
Thank you.
08-05-2019 09:58 AM
You can define form inside share-config-custom.xml file.For opening that form on click of link or button use below java script code.You need to change certain parameters in same.
Alfresco.util.Ajax.request({ url: Alfresco.constants.URL_SERVICECONTEXT + "components/form", dataObj: { htmlid: this.id + "-startWorkflowForm-" + Alfresco.util.generateDomId(), itemKind: "workflow", itemId: workflowDefinition.name, mode: "create", submitType: "json", showCaption: true, formUI: true, showCancelButton: true, destination: this.options.destination }, successCallback: { fn: this.onWorkflowFormLoaded, scope: this }, failureMessage: this.msg("message.failure"), scope: this, execScripts: true });
08-05-2019 05:52 AM
You can not add dynamic dashlet, but if you can explain your requirement , than I will be able to suggest proper way to implement it.
08-05-2019 09:32 AM
when i click button then one form will be open with the fields in which i fill data and then submit it. so how can i do that .
thank you
08-05-2019 09:58 AM
You can define form inside share-config-custom.xml file.For opening that form on click of link or button use below java script code.You need to change certain parameters in same.
Alfresco.util.Ajax.request({ url: Alfresco.constants.URL_SERVICECONTEXT + "components/form", dataObj: { htmlid: this.id + "-startWorkflowForm-" + Alfresco.util.generateDomId(), itemKind: "workflow", itemId: workflowDefinition.name, mode: "create", submitType: "json", showCaption: true, formUI: true, showCancelButton: true, destination: this.options.destination }, successCallback: { fn: this.onWorkflowFormLoaded, scope: this }, failureMessage: this.msg("message.failure"), scope: this, execScripts: true });
09-04-2019 02:48 AM
Thank you .
Explore our Alfresco products with the links below. Use labels to filter content by product module.