Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

FDM Delete Service Insights

Avatar

Avatar
Springboard
Level 4
Ssb_94
Level 4

Likes

45 likes

Total Posts

118 posts

Correct Reply

3 solutions
Top badges earned
Springboard
Establish
Affirm 3
Contributor 2
Give Back 25
View profile

Avatar
Springboard
Level 4
Ssb_94
Level 4

Likes

45 likes

Total Posts

118 posts

Correct Reply

3 solutions
Top badges earned
Springboard
Establish
Affirm 3
Contributor 2
Give Back 25
View profile
Ssb_94
Level 4

15-02-2021

Folks, 

I see this question was already answered in this thread. But just need some more details on how simply this can be done.

I have a form with some fields and a button (which actually performs remove operation). So on click of this button, I want equivalent record to be deleted in the Database too.

I already written a servlet, which actually does delete operation for the input provided. But I don't know how to use this servlet in Form. I know how to retrieve data from DB, display as JSON in servlet and use that in the Form Fields, but the other way around is I am a bit not clear.

Please help with your inputs.

 

Regards,

Sri Bhargav

AEM Forms FormsService

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

316 likes

Total Posts

1,139 posts

Correct Reply

184 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

316 likes

Total Posts

1,139 posts

Correct Reply

184 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

18-02-2021

@Ssb_94 I don't think fdm does delete. You can write a restful service for delete and call that instead.

Answers (2)

Answers (2)

Avatar

Avatar
Springboard
Level 4
Ssb_94
Level 4

Likes

45 likes

Total Posts

118 posts

Correct Reply

3 solutions
Top badges earned
Springboard
Establish
Affirm 3
Contributor 2
Give Back 25
View profile

Avatar
Springboard
Level 4
Ssb_94
Level 4

Likes

45 likes

Total Posts

118 posts

Correct Reply

3 solutions
Top badges earned
Springboard
Establish
Affirm 3
Contributor 2
Give Back 25
View profile
Ssb_94
Level 4

18-02-2021

Thanks @Mayank_Gandhi,

Yeah we will proceed with writing a custom service and then invoke it probably from Rule Editor.

Avatar

Avatar
Springboard
Level 4
Ssb_94
Level 4

Likes

45 likes

Total Posts

118 posts

Correct Reply

3 solutions
Top badges earned
Springboard
Establish
Affirm 3
Contributor 2
Give Back 25
View profile

Avatar
Springboard
Level 4
Ssb_94
Level 4

Likes

45 likes

Total Posts

118 posts

Correct Reply

3 solutions
Top badges earned
Springboard
Establish
Affirm 3
Contributor 2
Give Back 25
View profile
Ssb_94
Level 4

16-02-2021

Folks,

So somehow we were able to write a RESTful service which actually performs task of deleting records from DB for the given inputs.

When I tested the operation (DELETE query), it was successful, but still I am able to see record in DB.

Any idea what might have went wrong? Or if any additional work needs to be done in order to implement it?

Regards,