Simplicty and flexibility!


RecordSaveNew and erase field value in OML with just one button


Started by Daniel Kron
Search
You will need to Sign In to be able to add or comment on the forum!

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 


Written by Daniel Kron 08/02/20 at 17:27:09

Re:RecordSaveNew and erase field value in OML with just one button

Download: Capture.PNG

Hi Daniel

You can do as follows:

Button - Exceute function/derivation

RecordSave() + SetValue() 

Refer to attached image.

Hope this helps

Regards

Josef


Written by Josef Vella 08/02/20 at 17:37:05

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


Written by Daniel Kron 09/02/20 at 10:41:15

Re:Re:Re:RecordSaveNew and erase field value in OML with just one button

Download: DE65DEMO.zip

Daniel

Sample attached.  Not very elegant but it works.

Take a look and let me know if this helps.

regards

Josef


Written by Josef Vella 09/02/20 at 19:55:00

Re:RecordSaveNew and erase field value in OML with just one button

Donwload Sample

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.


Written by DataEase 10/02/20 at 17:57:43 LegEasy 6 Windows
DG3_ForumList