Hello everyone :) I have a data table which is editable. Near each record there are 2 buttons: edit and delete. I am using recordset in order to fill the table with some data, but the data i am taking it actually from a data base. My problem is for example: when I push the delete button, it deletes the entry from the database, but the user still can see it on the page, so i need to stop the process and start it again to have the updated values. How this issue can be fixed or any suggestion/approach would be fine :)

asked 14.12.2016 at 15:12

tano9321's gravatar image

tano9321
41101015
accept rate: 0%

edited 14.12.2016 at 17:20

Flavio%20Sadeghi's gravatar image

Flavio Sadeghi ♦♦
1.8k5723


There exists the example EditableTable in the project WorkflowDemos. It shows exactly your use case. In addition, your process has to delete the record in the Database too, not only in the Recordset. So the delete-button deletes the record in the recordset and in the database. Instead of deleting the record in the Recordset you could reload the data from the database to get the updated data.

Also ensure that the delete-button has set a correct update attribute. The defined id there references to the component which has to be updated after the action. Otherwise the UI gets not updated.

link

answered 14.12.2016 at 17:19

Flavio%20Sadeghi's gravatar image

Flavio Sadeghi ♦♦
1.8k5723
accept rate: 75%

it worked in this way, thank you so much :)

(15.12.2016 at 07:17) tano9321 tano9321's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×53
×13

Asked: 14.12.2016 at 15:12

Seen: 635 times

Last updated: 15.12.2016 at 07:17