[ALF-18681] FormService doesn't allow to specify child-association Created: 15-Apr-13  Updated: 15-Mar-17  Resolved: 20-Feb-17

Status: Closed
Project: Alfresco
Component/s: JavaScript API
Affects Version/s: 4.2.c Community
Fix Version/s: None
Security Level: external (External user)

Type: Improvement Priority: Minor
Reporter: Matthieu Laborie Assignee: Closed Issues
Resolution: Duplicate Votes: 0
Labels: CommunityPainPoints, PatchAttached
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File formService.patch    
Issue Links:
Duplicate
duplicates ALF-11982 Enable category manager to handle cus... Closed
Shadow
shadowed by REPO-1361 Accept patch for allowing child-assoc... Closed
Patch Attached:
Yes
Date of First Response:
Resolution Time Custom Field: 200 weeks, 6 days, 23 hours, 11 minutes, 23 seconds

 Description   

It's not possible to create a node under another child association than cm:contains from form service.

Attached is a sample implementation for the feature.



 Comments   
Comment by Neil McErlean [X] (Inactive) [ 15-Apr-13 ]

Assigning to PM for consideration/prioritisation

Comment by Neil McErlean [X] (Inactive) [ 06-Aug-13 ]

Thanks for the idea.
Could you elaborate a bit and give us some information on how you would use such a feature?
Thanks a lot!

Comment by Matthieu Laborie [ 19-Aug-13 ]

Hi,

We have this kind of models in our apps :

 
<aspect name="test:entityVariantAspect">
	<associations>
	  <child-association name="test:variants">
		<source>
		   <mandatory>false</mandatory>
		   <many>true</many>
		</source>
	<target>
		<class>test:variant</class>
		<mandatory>false</mandatory>
		<many>true</many>
		</target>
		</child-association>
	</associations>
</aspect>

We have a js action that display a popup with a form that allow to create a test:variant node as child-association of the current node (with the patch applied).

Regards

Comment by Richard Esplin [X] (Inactive) [ 02-Jul-15 ]

Axel says that this is part of the enhancement he contributed in ALF-11982.

Comment by Richard Esplin [X] (Inactive) [ 15-Mar-17 ]

This code was submitted against an old version of Alfresco, and we don't believe we can take it into the current product without significant work.

Similarly to ALF-11982, we won't be addressing the underlying problem in the current implementation of the FormService, but we will consider it as a request for a future FormService that leverages the new REST API framework.

Generated at Mon Feb 18 06:49:40 GMT 2019 using JIRA 7.6.3#76005-sha1:8a4e38d34af948780dbf52044e7aafb13a7cae58.