Triggers after Replacements

SyntaxEditor for Windows Forms Forum

Posted 16 years ago by Ashton - Developer, Schema Solutions LLC
I have a trigger defined to go off after the keyword "join"

I also have an autoreplacement of "!ij" that maps to "inner join"

When I do the !ij to get "inner join" the trigger for " " after "join" doesn't fire.

I tried going into the After AutoReplace performed and manually calling the trigger method using:

this.QueryEditor_Trigger(this, this.Document.Language.Triggers["JoinTrigger"]);

In an attempt to manually fire the trigger if the replacement ended in "join" but the list seems to display briefly with no items displayed (even though I did add items) and then disappear.

is there any way to do what I am trying by manually/auto fire a trigger after a replacement is performed?



Comments (1)

Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Ashton,

I'll write this down to check into. I'm thinking that something dealing with the keypress that fires the auto-replace trigger is also hiding the member list after you show it.

When we execute a key-press trigger, we essentially call the SemanticParser's TriggerActivated method and then the SyntaxEditor.Trigger event.

Actipro Software Support

The latest build of this product (v21.1.0) was released 11 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.