record.isEditing() improvement suggestions

Questions, tips and tricks and techniques for scripting in Servoy

record.isEditing() improvement suggestions

Postby nevenam » Fri Jun 13, 2014 3:36 pm

I came upon a behavior which at first seemed to me strange. Calling jsRecord.isEditing() returns true when jsRecord.hasChangedData() returns false and jsRecord.getChangedData() returns no data. It seems that the isEditing() method is bound to the UI form fields - if an editable field is focused, isEditing() returns true, even if there are no changes in the record. Can you at least describe that behavior in the jsdoc of the isEditing() method?
Nevena
nevenam
 
Posts: 13
Joined: Tue Oct 09, 2012 4:53 pm

Re: record.isEditing() improvement suggestions

Postby jcompagner » Mon Jul 14, 2014 10:13 am

i improved the doc a bit (saying that it doesn't have to have changes, but it is accepting changes)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Methods

Who is online

Users browsing this forum: No registered users and 11 guests