![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I can't find this anywhere in the docs so .. Let's say you want to put a trigger on a file to make sure that only certain users can write to (delete read certain values etc). the trigger finds that non-authorized user tries to write to the file. How do you cancel the write process? I imagine a good ABORT would do it but that would cause other problems. If this is in the doc then please point me in the right direction Thanks DTsig |
#3
| |||
| |||
|
|
The "magic" is "INPUTERR" (pretty obvious - NOT!!) On of the( very few) things that D3/NT DOES do well is to provide more hooks for triggers (eg: CALLR - read time, CALLO - file open etc) .... been waiting for these to appear on the *nix platform for ages (IIRCF UV at least has this better "granularity") dtsig wrote: I can't find this anywhere in the docs so .. Let's say you want to put a trigger on a file to make sure that only certain users can write to (delete read certain values etc). the trigger finds that non-authorized user tries to write to the file. How do you cancel the write process? I imagine a good ABORT would do it but that would cause other problems. If this is in the doc then please point me in the right direction Thanks DTsig |
#4
| |||
| |||
|
|
The "magic" is "INPUTERR" (pretty obvious - NOT!!) On of the( very few) things that D3/NT DOES do well is to provide more hooks for triggers (eg: CALLR - read time, CALLO - file open etc) .... been waiting for these to appear on the *nix platform for ages (IIRCF UV at least has this better "granularity") dtsig wrote: I can't find this anywhere in the docs so .. Let's say you want to put a trigger on a file to make sure that only certain users can write to (delete read certain values etc). the trigger finds that non-authorized user tries to write to the file. How do you cancel the write process? I imagine a good ABORT would do it but that would cause other problems. If this is in the doc then please point me in the right direction Thanks DTsig |
#5
| |||
| |||
|
|
oh my <sigh> .. i just tried it and it works After re-reading the *documentation* it see where it says that it stops the process .. why .. WHY would someone do that? oh well .. that's PICK thanks man .. dtsig Ross Ferris wrote: The "magic" is "INPUTERR" (pretty obvious - NOT!!) On of the( very few) things that D3/NT DOES do well is to provide more hooks for triggers (eg: CALLR - read time, CALLO - file open etc) .... been waiting for these to appear on the *nix platform for ages (IIRCF UV at least has this better "granularity") dtsig wrote: I can't find this anywhere in the docs so .. Let's say you want to put a trigger on a file to make sure that only certain users can write to (delete read certain values etc). the trigger finds that non-authorized user tries to write to the file. How do you cancel the write process? I imagine a good ABORT would do it but that would cause other problems. If this is in the doc then please point me in the right direction Thanks DTsig |
#6
| |||
| |||
|
|
I put a trigger on a file to simply watch changes. I used inputerr to capture rows that id on't want changed. For the write it works correctly .. the odd thing is that if i delete the record (no delete trigger) it fires and works like an update and so it doesn't change (delete) BUT it also puts out a message [261] One or more updates failed. i'll try to find a method to capture this before the user sees it but if you have any info please pass on. thanks Ross Ferris wrote: The "magic" is "INPUTERR" (pretty obvious - NOT!!) On of the( very few) things that D3/NT DOES do well is to provide more hooks for triggers (eg: CALLR - read time, CALLO - file open etc) .... been waiting for these to appear on the *nix platform for ages (IIRCF UV at least has this better "granularity") dtsig wrote: I can't find this anywhere in the docs so .. Let's say you want to put a trigger on a file to make sure that only certain users can write to (delete read certain values etc). the trigger finds that non-authorized user tries to write to the file. How do you cancel the write process? I imagine a good ABORT would do it but that would cause other problems. If this is in the doc then please point me in the right direction Thanks DTsig |
#7
| |||
| |||
|
|
Dave: There's a delete bit set that ACCESS() can query. Bill "dtsig" <dtsig (AT) hotmail (DOT) com> wrote in message news:1168530174.351250.203210 (AT) 77g2000hsv (DOT) googlegroups.com... I put a trigger on a file to simply watch changes. I used inputerr to capture rows that id on't want changed. For the write it works correctly .. the odd thing is that if i delete the record (no delete trigger) it fires and works like an update and so it doesn't change (delete) BUT it also puts out a message [261] One or more updates failed. i'll try to find a method to capture this before the user sees it but if you have any info please pass on. thanks Ross Ferris wrote: The "magic" is "INPUTERR" (pretty obvious - NOT!!) On of the( very few) things that D3/NT DOES do well is to provide more hooks for triggers (eg: CALLR - read time, CALLO - file open etc) .... been waiting for these to appear on the *nix platform for ages (IIRCF UV at least has this better "granularity") dtsig wrote: I can't find this anywhere in the docs so .. Let's say you want to put a trigger on a file to make sure that only certain users can write to (delete read certain values etc). the trigger finds that non-authorized user tries to write to the file. How do you cancel the write process? I imagine a good ABORT would do it but that would cause other problems. If this is in the doc then please point me in the right direction Thanks DTsig |
#8
| |||
| |||
|
|
I saw that but i dont see how i can keep the 'delete' message from happening. dtsig Bill H wrote: Dave: There's a delete bit set that ACCESS() can query. Bill "dtsig" <dtsig (AT) hotmail (DOT) com> wrote in message news:1168530174.351250.203210 (AT) 77g2000hsv (DOT) googlegroups.com... I put a trigger on a file to simply watch changes. I used inputerr to capture rows that id on't want changed. For the write it works correctly .. the odd thing is that if i delete the record (no delete trigger) it fires and works like an update and so it doesn't change (delete) BUT it also puts out a message [261] One or more updates failed. i'll try to find a method to capture this before the user sees it but if you have any info please pass on. thanks Ross Ferris wrote: The "magic" is "INPUTERR" (pretty obvious - NOT!!) On of the( very few) things that D3/NT DOES do well is to provide more hooks for triggers (eg: CALLR - read time, CALLO - file open etc) .... been waiting for these to appear on the *nix platform for ages (IIRCF UV at least has this better "granularity") dtsig wrote: I can't find this anywhere in the docs so .. Let's say you want to put a trigger on a file to make sure that only certain users can write to (delete read certain values etc). the trigger finds that non-authorized user tries to write to the file. How do you cancel the write process? I imagine a good ABORT would do it but that would cause other problems. If this is in the doc then please point me in the right direction Thanks DTsig |
![]() |
| Thread Tools | |
| Display Modes | |
| |