04-13-2017 06:29 AM
hi,
I have used the demo app that comes with ADF and have made the demo app talk my Alfresco Processes Services application.
I am able to start my application, but one of my task forms has a custom Stencil component which needs to be displayed.
I get the below error, where "multiple_departments" is the field name in my custom form,
Please provide you views and suggestions... Thank you...
Regards.
04-13-2017 09:29 AM
Hi @Paiyyavj13 _
did you get a look here?
alfresco-ng2-components/stencils.md at master · Alfresco/alfresco-ng2-components · GitHub
04-13-2017 09:35 AM
Thank you Eugenio... Looks like this should work... Let me try it out....
04-17-2017 05:53 PM
Hi Eugenio,
I tried the steps:
I added the below on my demo-app/index.html file:
<!-- Stencils integration --><script src="node_modules/ng2-activiti-form/stencils/runtime.ng1.js"></script> <script src="node_modules/ng2-activiti-form/stencils/runtime.adf.js"></script> <script src="http://localhost:8080/activiti-app/app/rest/script-files/controllers"></script>
I do not believe I need to restart my app- but just to be safe I restarted it, but this did not solve the issue. My custom Stencil is not visible yet, gives the same result as in the screenshot.
Do I need to write any TypeScript code? to make my custom js Controller work? If so, could you let me know where I should write this code? which file?
Please advise... Thank you...
Regards.
10-20-2017 07:20 AM
this one is replacing custom stencil template .But i want same stencil in UI
10-20-2017 07:30 AM
You don't need declaring those extra javascript files. It is not possible to render Angular 1 stencils with ADF, you will have to create Angular components and register them as in the following documentation: https://github.com/Alfresco/alfresco-ng2-components/blob/master/ng2-components/ng2-activiti-form/doc...
10-20-2017 07:45 AM
In this example its replacing stencil template with new template whatever i have defined in custom-editor.component.ts .But I don't want to replace template . what i have to do ?
10-20-2017 08:37 AM
The first article is not for using your old stencils with ADF, it's for writing the Angular 2+ templates there, and also storing transpiled Typescript code as part of the controllers and APS database. It is not going to work with anything you created for Angular 1. So I suggest digging the custom components written in Angular instead.
10-20-2017 09:31 AM
Can I use Imports in
@NgModule({ declarations: [ CustomStencil01 ], exports: [ CustomStencil01 ], entryComponents: [ CustomStencil01 ] })export class CustomEditorsModule {}
I want use alfresco-datatable component in template
10-20-2017 09:35 AM
You can use any HTML or Angular component as part of the stencil. In fact, ADF stencil IS an Angular component. You can see examples here: alfresco-ng2-components/custom-editor.component.ts at master · Alfresco/alfresco-ng2-components · Gi...
Explore our Alfresco products with the links below. Use labels to filter content by product module.