+ Start a Discussion

when is the record inserted into table ?


I have a button which creates  a record . I also want to delete the created record by testing some condition before refreshing page.
But when I click the button, it checks the condition and deletes the previous records accordingly but not the latest record .

The record shows the creation time properly but I dont know why it does not remove the record. Is it because my function executes on  oncomplete  event ?

Any ideas ?



Are you using apex for this??
  It would be helpful if you can post the code snippet u r using for clarity of understanding what is happening at the backend.