AEM form CRUD Operations

Avatar

Avatar
Validate 1
Level 2
hitesh_m
Level 2

Likes

3 likes

Total Posts

40 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile

Avatar
Validate 1
Level 2
hitesh_m
Level 2

Likes

3 likes

Total Posts

40 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
hitesh_m
Level 2

09-03-2016

Hi Experts,

I am using AEM forms for storing some content in CRX (through Submit and Store Action). 

Now , I have to do certain operations like Edit or Delete the records within the form. I know AEM suggests to use bulk editor for same but requirement is to perform operations from AEM forms itself. 

 

Any idea ?

Accepted Solutions (0)

Answers (3)

Answers (3)

Avatar

Avatar
Boost 5
Employee
deepak_k_
Employee

Likes

5 likes

Total Posts

84 posts

Correct reply

32 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile

Avatar
Boost 5
Employee
deepak_k_
Employee

Likes

5 likes

Total Posts

84 posts

Correct reply

32 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile
deepak_k_
Employee

19-03-2016

Also, in general, you should probably avoid Store Content action for production use because of the PII & Scalability concerns. Please use Form Portal Submit.

We have added few APIs to list the Portal Drafts & Submissions. I do not remember those has delete/edit API though. If not, you may have to use JCR or REST APIs for that.

Avatar

Avatar
Give Back
Employee
mayankg
Employee

Likes

3 likes

Total Posts

10 posts

Correct reply

3 solutions
Top badges earned
Give Back
Boost 3
Boost 1
Affirm 3
Affirm 1
View profile

Avatar
Give Back
Employee
mayankg
Employee

Likes

3 likes

Total Posts

10 posts

Correct reply

3 solutions
Top badges earned
Give Back
Boost 3
Boost 1
Affirm 3
Affirm 1
View profile
mayankg
Employee

18-03-2016

I agree, using Save and Submit Forms portal functionality should suffice your requirement

Avatar

Avatar
Give Back 25
Level 5
TundraSteve
Level 5

Likes

51 likes

Total Posts

442 posts

Correct reply

57 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Give Back 25
Level 5
TundraSteve
Level 5

Likes

51 likes

Total Posts

442 posts

Correct reply

57 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
TundraSteve
Level 5

18-03-2016

I'd need more detail before I can provide a definitive response.  To edit the content it would be fairly easy to re-render the record into the form and allow the user to make changes.  It would be much like the draft capability in the portal.  For deletion a "listing" UI would have to be created allowing for the selection of the records to be removed.