Category "triggers"

PostgreSQL- Function to update 3 shared columns from table B on table A

The main goal is to create a function that updates 3 columns on another table (the update of the 2 columns from the first table trigger the update on the second

AfterDeleteEvent from AbstractMongoEventListener is not being triggered when entry is deleted from MongoDb

I have a class that extends AbstractMongoEventListener and overrides onAfterSave and onAfterDelete. The onAfterDelete does not trigger for some reason. The onAf

How to get the main ID of updated row and use it before DML in trigger

I'm blocked with the development of an Oracle trigger (11g). The goal of the trigger is to store some data in an audit trail table. One of the fields that is po

MongoDB Scheduled Trigger Save Error -- What to Return?

This problem is very annoying. So, I am making a scheduled trigger run every 24 hours. It simply gets items from one collection does some data processing then a

Userlogin time update

i have build a small website with a user login system. I want it so that when user logs in the 'UserThisLogin' value is being updated automatically but prior to

How to get all old values for a mulitple cell range with onEdit trigger

In google apps script, with onEdit trigger, how do I get the old values of all the cells if the edited range has multiple cells? In the Event object documentati

increment via trigger varchar value in the column

please help to solve one problem - I need to create after insert in table row with incremented value id number 1 inc1 2 inc2 I need to insert inc3 in number c

Angular 10 - Not to trigger (click) function on dragging

I have a div with an openlayers map like this: <div id="map" (click)="getInfo($event)" class="map"></div> I use dragging with my mouse to navigat

SQL Server trigger for verifying date column doesn't work

I have a table for scheduled surgeries and I am trying to write a trigger that will print a message in case the user inserts a past date in the date column (in

Create mysql trigger to update specific column after update row

I want to update the specific column in MySQL after any change occurred in a row. I use below query to create trigger but when to change record data, an error h

unity animation trigger inspection

When setting a trigger in unity animator, and the state machine is not in a state where it can invoke the trigger, the trigger is "charged" and will set off the

Google Apps Script trigger function runs twice

I have the following trigger setTrigger() set for when a Google Form is submitted. For testing purposes I created a simple function triggerFunction() that creat

Azure Data Factory - Use parameter for typeProperties in storage event trigger

I'm having issues using parameter within a storage event trigger for the typeProperty "blobPathBeginsWith". Per default when using a storage event trigger, the

Automatically Move Google Form Response by Ticking Check Box

I have 2 google Forms. User fills either of the google forms and it populates 2 "active" tabs within the same sheet to record user responses. I would like to us

I want to create a store procedure that will create DDL,DML trigger for a selected table as parameter

Like the below trigger but I need to add update insert and delete all three. for update trigger columns dynamically getting is not able to code CREATE TRIGGER d

trigger in PL/SQL

There are two tables given: 1) employee(eno,ename,basic,da,gross) da=basic*(5.0/100) gross = basic+da 2) sal_hist(eno, sys_dt, old_basic) How to write a

how to get ID of inserted record

I can't seem to figure out how I can get access to the Id of inserted record for Case. I am not sure what I am doing wrong. Any help will be appreciated. for(I

MySQL syntax Error on Create Trigger

Here is my trigger, I am getting the MySQL syntax error. I wanted to reduce the balance from sms_index table sms_count column value. CREATE TRIGGER sms_log_up

EVENTDATA() for DML Triggers?

I am looking to create an audit table for my database in Azure SQL Database. The best method I have across so far in order to do this is to use triggers. I have

How Do I set a Teamcity Trigger on a Particular Folder for Git VCS trigger

I would like Teamcity to Trigger a build when there is a gerrit change on a specific branch on a specific folder. I'm unable to achieve the same, any suggestion