ILEditor icon indicating copy to clipboard operation
ILEditor copied to clipboard

Before- and After-Hook

Open mhjbuit opened this issue 6 years ago • 4 comments

It would be a great enhancement if it's possible to hook up custom software (program call). For instance: Before Opening a member in ILEditor: Allocate member Close member in ILEditor: Deallocate member and if changed restore Sourcechange date based on CMPPFM.

mhjbuit avatar Feb 14 '19 09:02 mhjbuit

Sounds like a cool idea, but you will have to explain what the functionality would really do.

You just want to run commands on the Windows machine or the remote IBM i when something happens?

worksofliam avatar Feb 24 '19 20:02 worksofliam

Hi Liam,

On the IBMi. Plain program call with the same parameters provided in the Compile commands and a extra User-parameter.

Before: Opening source in ILEditor (Lock source if not in use in other change and save old source version)

After: Closing source in ILEditor (Restore Changedate in Source based on CMPPFM with source saved in Before Hook)

Providing a way to integrate ILEditor in home made versioning software the company i work for uses.

And it would be super nice if the opening could be aborted via a returncode.

Keep up the good work,

Martin

mhjbuit avatar Feb 25 '19 06:02 mhjbuit

As a note, the source member is locked when it is opened already (existing functionality).

worksofliam avatar Feb 25 '19 14:02 worksofliam

I know but that’s not good enough.

When a source is modified as part of a change it should remain locked untill the complete change is implemented or canceled.

Van: Liam Barry [mailto:[email protected]] Verzonden: maandag 25 februari 2019 15:03 Aan: worksofbarry/ILEditor CC: mhjbuit; Author Onderwerp: Re: [worksofbarry/ILEditor] Before- and After-Hook (#106)

As a note, the source member is locked when it is opened already (existing functionality).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/worksofbarry/ILEditor/issues/106#issuecomment-467022085 , or mute the thread https://github.com/notifications/unsubscribe-auth/AbzvoteZsANr1eM4nIV07tBuA91hKt5Cks5vQ-0RgaJpZM4a7KaO . https://github.com/notifications/beacon/Abzvop5hmXd6y-Dfhkwq7P2SMvpI0Oj4ks5vQ-0RgaJpZM4a7KaO.gif

mhjbuit avatar Feb 25 '19 17:02 mhjbuit