RecordSaveNew and erase field value in OML with just one button
RecordSaveNew and erase field value in OML with just one button
Hi.
Does anyone know how I can use just one button to execute two procedures as follows? When pressing the button, following events should occur:
1. The Current record should be saved (save new record)
2. Values in specified fields should be erased after the record has been saved (This because I want to be able to fill in more info in these fields but I want some other field values to remain)
Thanks in advance
//Daniel
Re:RecordSaveNew and erase field value in OML with just one button
Hi Daniel
You can do as follows:
Button - Exceute function/derivation
RecordSave() + SetValue()
Refer to attached image.
Hope this helps
Regards
Josef
Re:Re:RecordSaveNew and erase field value in OML with just one button
Thank you Josef. It seem that this does not work in my version (DE6.52). My bad I didn“t write what version I am using. Sorry. Thank you anyway. Maybe you know how to do it in 6.52 (6.53)?
Have a good day
Sincerely,
//Daniel
Re:Re:Re:RecordSaveNew and erase field value in OML with just one button
Daniel
Sample attached. Not very elegant but it works.
Take a look and let me know if this helps.
regards
Josef
Re:RecordSaveNew and erase field value in OML with just one button
We have updated Josefs sample a little to show you how you can do this in OML.
But for the love of GOD! This is absolute crap. If one are to work with Dataease one deserve better than this.
It is a constant feeling that you are pushing a big rock up a hill. No wonder people were frustrated with Dataease.
Not to blow our own trumpet but DE85 is a completely different experience to work with and DE9 even though it is only 33% can do everything that DE6.5 can do many, many, many times better.
Just to be able to use RecordSave() in OML I had to Swtich on system forms, find DFW Acts, import DFW Acts and remember to import in the right table (I didn't) and then you have to copy the DLL to DataEase catalog (or application catalog).
Then you can start using it.
We might not be all there in DE9 but this is as far away from use friendly as one can get.
So if you are evaluating if you are to use Dataease or not, definitely don't do it in 6.5 as the answer should then definitely be NOT.