If I put a code into the datachanged method of a fielf, every time I change record, the code are executed...
It is a bug?
If I put a code into the datachanged method of a fielf, every time I change record, the code are executed...
It is a bug?
"every time i change a record"? do you mean every time you navigate between records? If thats what you mean, yes, thats what it is supposed to do.
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
Yes, sorry for my bad english... when I navigate between records..
but in earlier versions of Lianja was not so ..
I thought the "DataChanged" was performed if brought changes to the field ..
The datachanged delegate is called whenever the data has (or may have) changed. Navigating between records causes this to be called.
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
So now how do I insert the code to run every time I edit a field really?
in my case, I want to open a selection window if the code entered in a field is not correct ..
In previous releases the "Date changed" method was not called when navigating through the records ..
The dataChanged delegate is called whenever you finish editing a field or navigate between records.
The change delegate is called as you interactively edit fields.
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
I'm sorry, but I do not make much sense .. if a field in the data changed, I do a test that takes a long time, for each record I have to wait?
if DataChanged field "price" I run the calculation of the field "amount" (price * quantity), but then I edit by hand the amount? if I navigate between records, the amount is recalculated ..
for me, the date changed should not be called during navigation ..
change the method, it is too interactive .. is called for every character, not in the validation of the field (lyke "valid" in VFP).
the "validation" method in Lianja is not the same as VFP, is invoked when I "click" the "save changes" button in the toolbar, if I change the value of the field and I press "tab" is not invoked.
How can I do?
thanks
The "Data Changed" delegate is called whenever you navigate between records.
The "Changed" delegate is called when you interactively edit data in a field on a form. if what you want is to verify that data entered and possibly popup a list of choices then that would better be placed as the validation in conjunction with auto suggestions.
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
Bookmarks