Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
5
Erster Beitrag:
vor 4 Monaten, 2 Wochen
Letzter Beitrag:
vor 4 Monaten, 2 Wochen
Beteiligte Autoren:
Noel Tanti, DarrenF, Fabrice Harari

history data

Startbeitrag von Noel Tanti am 06.06.2017 06:20

Hi all

We have a situation where the 'data history function' works perfect and one client whose history does not always work as it should.
So we decided to implement our own history files.

I am sure someone already did this.

Would whoever did this, please give us some hints as to were to hook our code so it has the least impact on the software and any other hints that you deem you can share.

Thank you very much
Noel

Antworten:

Hi Noel

if you are talking about hat I think, you have a full example of that in WXReplication:
- I have created global procedures hadd, hmodify, and hdelete overwriting the regula ones
- in them, I'm writing the data changes in my replication file (before transport) THEN doing the real hxxx function

Now, in Wreplication, this is not done in order to verify the history of the data changes, but to SEND the information to another computer. However, the system works fine this way and you could easily write a "history viewer" just reading the wxreplication file.

The best part, of course, is that is you remove all the stuff specific to the replication, you can implement that without any change in your code (if you are not doing update queries, that is).

Best regards

von Fabrice Harari - am 06.06.2017 11:25
Hi Noel,

From reading your requirement, you could also use Triggers to achieve this.

See:

https://help.windev.com/en-US/?3044272&name=Trigger_Overview

...and...

https://help.windev.com/en-US/?3044271

von DarrenF - am 06.06.2017 11:31
Hi Fabrice

Thanks
I will have a look at the WXReplication.


Regards
Noel

von Noel Tanti - am 06.06.2017 12:11
Hi Darren

I will look at wxreplication first as there seems to be a compete setup.
If it is too complicated for me :) then I will need a way to find which data has changed and setup the triggers.

Thanks for you help.
Regards
Noel

von Noel Tanti - am 07.06.2017 06:24
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.