How to back out of newRecord()

Hi Folks I figured this should be very easy but I’m struggling to ‘get it’.

I have a foundset where the user creates a new record. Previously I have saved the record and then let them start to enter data, so when they wanted to back-out they just needed to delete the record they were creating. However now we have the form set to autoSave(false) so the record is actually not created at that time.

If I delete this data entry using founedst delete(Record() I actually delete the last record touched - not the half completed data entry. If I do foundset.setSelectedIndex() I dont get any movement (I figured the record pointer may just step back to that index) so I’m a little lost for where to go with this unsaved data form.

Q. How do I ‘step back’ from the newRecord().

Appreciate Feedback.

Hi Kahuna, just try by using databaseManager.rollbackEditedRecords(record).

Make sure you pass the right record !!

Take note tht this is for version 6

Kahuna:
If I delete this data entry using founedst delete(Record() I actually delete the last record touched - not the half completed data entry.

That is weird. It should delete the non-saved record in that foundset. Are you sure you do it on the same foundset you created the record on ? And are you sure you also have the newly created record selected ?

ROCLASI:

Kahuna:
If I delete this data entry using founedst delete(Record() I actually delete the last record touched - not the half completed data entry.

That is weird. It should delete the non-saved record in that foundset. Are you sure you do it on the same foundset you created the record on ? And are you sure you also have the newly created record selected ?

Thanks for that feedback Robert - because of it I’m beginning to suspect its linked to my other challenge (empty globals)… Trying again…