in memory foundset hasRecordChanges

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

in memory foundset hasRecordChanges

Postby pitc » Sat May 15, 2021 4:55 pm

I have an in memory datasource and populate it in the onShow of a form. The form datasource is defined to be the in mem datasource. The form foundset is bound to an ng grid's 'myFoundset'.

I use databaseManager.hasRecordChanges(foundset) to check for edits before allowing the user to leave the form.(Autosave is false).
However this call never indicates any record changes over the foundset.
Is there some other method to check for unsaved edits if databaseManager.hasRecordChanges(foundset) is not applicable to an in mem datasource?

EDITED: The grid is in GroupBy mode - I think this is the cause of the behaviour. When not in GroupBy mode the hasRecordChanges works as expected.
I have not found a way to allow the user to edit in group by mode and have an idea if there are changes. I suspect that I might have to add an Edit form. In my case there is a single column - a checkbox to edit - seems a bit much to create an edit form form - the UX is poor.
Tom
prospect-saas.com
pitc
 
Posts: 115
Joined: Thu Nov 14, 2019 2:22 pm
Location: Ottawa, Ontario, Canada

Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 15 guests

cron