Problems with Triggers

I added a trigger to the CLAIMS file.  Here is the List-Trigger:

TYPE...... AMEND. TERM.. DEBUG. SUBROUTINE NAME..

postwrite  YES    NO     NO     MY.TRIGGER
postdelete YES    NO     NO     MY.TRIGGER

The subroutine MY.TRIGGER is very simple:

      SUBROUTINE 
MY.TRIGGER(FILENAME,EVENT,PRERC,FLAGS,NEW.RECORD.ID,NEW.RECORD,USERRC)
*
      INCLUDE JBC.h ;* JBASE ONLY
      
      BEGIN CASE
         CASE EVENT = TRIGGER_TYPE_POSTWRITE
         CASE EVENT = TRIGGER_TYPE_POSTDELETE
         CASE 1
            RETURN
      END CASE

The problem is that FILENAME is always "0".  Why?  This makes no sense.  In 
the 34 docs it states that:

*Filevar* 

The file variable associated with the update. For example, you can do:
WRITE var ON filevar,"newkey" 

But this is not the case.

HELP!

Thanks,

Rick

On Friday, April 14, 2017 at 11:18:27 AM UTC-4, [email protected] wrote:
>
> The introduction patch from 1999 provides a bit more.
>
>  
>
>
> http://www.jbase.com/r5/knowledgebase/ReleaseNotes/Public/Patches/PN3_30079.htm
>
>  
>
>  
>
>  
>
> *From:* [email protected] [mailto:[email protected]] *On Behalf 
> Of *Rick Weiser
> *Sent:* Friday, April 14, 2017 7:51 AM
> *To:* jBASE <[email protected]>
> *Subject:* Re: Back doing some jBASE work
>
>  
>
> Its JBASE_WARNLEVEL=6
>
>  
>
> Thanks,
>
>  
>
> Rick
>
> On Thursday, April 13, 2017 at 11:45:18 AM UTC-4, Rick Weiser wrote:
>
> Hi Guys,
>
>  
>
> So, I am back doing some jBase work after a long absence.  It's been at 
> least 15 years and I am a little rusty.  The client is working on v3.4 and 
> will at some point move to v5.
>
>  
>
> For the life of me I can't remember how to find if a file is in the 
> JEDIFILEPATH and what its path is.
>
>  
>
> I know it a silly question but I need to know that the file being used is 
> the correct file in the path.
>
>  
>
> Thanks,
>
>  
>
> Rick
>
> -- 
> -- 
> IMPORTANT: T24/Globus posts are no longer accepted on this forum.
>  
> To post, send email to [email protected]
> To unsubscribe, send email to [email protected]
> For more options, visit this group at 
> http://groups.google.com/group/jBASE?hl=en
>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "jBASE" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
IMPORTANT: T24/Globus posts are no longer accepted on this forum.

To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to