Questions tagged [event-triggers]

Unlike a normal database trigger that fires before or after DML statements, an event trigger will fire at other database events, like the execution of DDL statements or when a database session is established.

Unlike a normal that fires before or after statements, an event trigger will fire at other , like the execution of statements or when a database session is established.

Use this tag for questions concerning the creation or use of such triggers.

70 questions
59
votes
2 answers

WPF Trigger for IsSelected in a DataTemplate for ListBox items

I have a listbox, and I have the following ItemTemplate for it:
TimothyP
  • 21,178
  • 26
  • 94
  • 142
7
votes
2 answers

The Transaction Ended In The Trigger The Batch Has Been Aborted

I am using Sql Server 2008. I have a Trigger which updates my two other tables. I have read the Stack over flow this link enter link description here, but it does not full fill my needs. Below is my Trigger ALTER TRIGGER…
Shahid Iqbal
  • 2,095
  • 8
  • 31
  • 51
5
votes
1 answer

Get created table name

I'm trying to create a event trigger, executed whenever a table is created. When this happens I would like to insert into a table ( which has 2 columns id and tablename ) the name of the table created. Reading the docs I'm not able to find how can i…
Jose Hermosilla Rodrigo
  • 3,513
  • 6
  • 22
  • 38
5
votes
1 answer

WPF Event Trigger Change Other UI element

I defined ListBox in my XAML which uses ItemTemplate. Inside the ItemTemplate I placed Image.
Jacob
  • 3,598
  • 4
  • 35
  • 56
4
votes
1 answer

In WPF, is it possible to specify multiple routed events for a single event trigger?

I have an event trigger that I want to be fired in response to two different routed events. I don't want to repeat the event response code (in XAML) twice. Can I specify multiple routed events for a single event trigger declaration? Example of a…
Jordan Parmer
  • 36,042
  • 30
  • 97
  • 119
4
votes
2 answers

how to create event trigger for create table or select into

i want create event trigger for create table or select into, eg: when create table xxxx must table name bigen with 'temp' my code CREATE OR REPLACE FUNCTION create_table_func() RETURNS event_trigger AS $$ DECLARE …
菜合馍馍
  • 121
  • 1
  • 7
4
votes
2 answers

How to get updates from Asana via API

Right now I'm polling Asana every minute for updates to Tasks via Asana API. Hopefully there's something like Event Triggers we can set to call some URL in our application. I'd love to cut down the load we put on Asana servers and avoid timeouts…
4
votes
3 answers

jQuery - window focus, blur events not triggering - works in Firefox and Chrome

In a nutshell; I wrote a simplistic chat application for a buddy and me to use. When the window running the application does not have the focus (minimized or behind other windows) and a message comes in, I want to change the windows title bar to…
brian newman
  • 3,964
  • 5
  • 25
  • 24
3
votes
2 answers

beforeUpdate afterUpdate

do we have beforeUpdateOf* (where * is some field?) and another question : def beforeUpdate= { log.info("in beforeUpdate " +this.status) } def afterUpdate = { log.info("in afterUpdate " +this.status) } This both gives same status. Although…
nandini
  • 428
  • 2
  • 9
  • 20
3
votes
1 answer

WPF: Trigger animations on elements by name from EventTrigger on a dynamically created control

I have a Grid inside of an ItemsControl's DataTemplate, so there will be many copies of this grid. I want a mouse click on the grid to trigger the storyboard of an element outside of the DataTemplate. For example, I would like to animate Transform…
Rich
  • 36,270
  • 31
  • 115
  • 154
3
votes
1 answer

Why is a (Excel VBA) combobox change event triggering every time one of its properties is referenced?

I'm a first time user on this forum. Here's my scenario: On a userform, I have a combobox, two textboxes and an 'OK' button. When the user makes a makes a selection from the combobox's dropdown list, the combobox's change event is triggered and…
BillD
  • 147
  • 4
  • 4
  • 11
3
votes
1 answer

Control Template Storyboard, set value in other control within same template

I've been asked to sort of create a hack around the already existing DateTimePicker control. Normally, the date/time picker has that wonderful image of a calendar, then the textbox next to it for showing an actual date. The user can click on the…
DRapp
  • 47,638
  • 12
  • 72
  • 142
3
votes
2 answers

event that fires when handsontable loads

I'm trying to do some DOM manipulations after handsontable finishes loading/initializing. Does handsontable have some event that is triggered after it finishes building itself?
RayLoveless
  • 19,880
  • 21
  • 76
  • 94
2
votes
2 answers

Need help handling events of a DataTemplate in the Application.xaml file

I have in my application a data template that has a few buttons. I want those buttons' even handler to be fired in the current page (I am using this template in many pages) rather than in the Application.xaml.vb/cs file, since I want different…
Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632
2
votes
0 answers

Access table name in Postgres ddl_command_start event trigger

I'd like to write a Postgres event trigger to capture the name and schema of a table before it is created, using ddl_command_start. However, it seems like this is only available from pg_event_trigger_ddl_commands(), which can only be called at…
dbaston
  • 903
  • 1
  • 10
  • 20
1
2 3 4 5