Uploaded image for project: 'Alfresco'
  1. Alfresco
  2. ALF-18681

FormService doesn't allow to specify child-association

    Details

    • Security Severity:
      None
    • Patch Attached:
      Yes

      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.

        Attachments

          Issue Links

            Activity

            Hide
            nmcerlean Neil McErlean [X] (Inactive) added a comment -

            Assigning to PM for consideration/prioritisation

            Show
            nmcerlean Neil McErlean [X] (Inactive) added a comment - Assigning to PM for consideration/prioritisation
            Hide
            nmcerlean Neil McErlean [X] (Inactive) added a comment -

            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!

            Show
            nmcerlean Neil McErlean [X] (Inactive) added a comment - 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!
            Hide
            laborima Matthieu Laborie added a comment -

            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

            Show
            laborima Matthieu Laborie added a comment - 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
            Hide
            resplin Richard Esplin added a comment -

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

            Show
            resplin Richard Esplin added a comment - Axel says that this is part of the enhancement he contributed in ALF-11982 .
            Hide
            resplin Richard Esplin added a comment -

            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.

            Show
            resplin Richard Esplin added a comment - 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.

              People

              • Assignee:
                closedissues Closed Issues
                Reporter:
                laborima Matthieu Laborie
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: