How to display custom Stencil forms in Process Tasks within ADF application?

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

Re: How to display custom Stencil forms in Process Tasks within ADF application?

eugenio romanoDenys Vuika‌ 

i am getting this error in adf - 2.0

ContainerWidgetComponent.html:17 ERROR ReferenceError: adf is not defined
at FormFieldComponent.hasController (adf-core.umd.js:17579)
at FormFieldComponent.ngOnInit (adf-core.umd.js:17529)
at checkAndUpdateDirectiveInline (core.js:12094)
at checkAndUpdateNodeInline (core.js:13597)
at checkAndUpdateNode (core.js:13540)
at debugCheckAndUpdateNode (core.js:14412)
at debugCheckDirectivesFn (core.js:14353)
at Object.eval [as updateDirectives] (ContainerWidgetComponent.html:17)
at Object.debugUpdateDirectives [as updateDirectives] (core.js:14338)
at checkAndUpdateView (core.js:13507)

 

i am confused now with these tutorials
https://github.com/Alfresco/alfresco-ng2-components/blob/master/docs/stencils.md
https://github.com/Alfresco/alfresco-ng2-components/blob/master/docs/extensibility.md
which documentation i have to follow?. please give me the correct documentation for this.

<script src="node_modules/ng2-activiti-form/stencils/runtime.ng1.js"></script> 
<script src="node_modules/ng2-activiti-form/stencils/runtime.adf.js"></script>

these lines are deprecated now but still it is there in documentation.

if (adf) {     adf.registerComponent('ng2_component_01', SampleClass1); }
where i have to add?
dvuika
Alfresco Employee

Re: How to display custom Stencil forms in Process Tasks within ADF application?

You need only alfresco-ng2-components/extensibility.md at master · Alfresco/alfresco-ng2-components · GitHub The stencil you are trying to map "must not" have any controllers attached (neither AngularJS nor Angular).

dhrn
Member II

Re: How to display custom Stencil forms in Process Tasks within ADF application?

thanks Denys Vuika i have removed angular 1 controller in APS, so it is working in ADF. But now In APS it is not working. suggest a solution for this problem.
version:
APS : 1.6.4

dvuika
Alfresco Employee

Re: How to display custom Stencil forms in Process Tasks within ADF application?

We will fix the issue with APS controllers, so that you can still use them in both UIs

santolovic
Active Member

Re: How to display custom Stencil forms in Process Tasks within ADF application?

please advise has this issue been solved and how?