Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 16 of 16 total
Thread Trigger
Tue, Mar 6 2007 1:03 PMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim


I'm just using the grid in EDBMan. I'm going to delete the trigger (again) and try Ole's code

Roy Lambert
Tue, Mar 6 2007 1:23 PMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim


Tried it with Ole's trigger, dropped the sql into EDBMan and created the trigger that way and it worked.

Than gives me a mechanism to use until you come up with a decent situation. It means two triggers for each table (insert and update) and making sure I keep the field list up to date.

Two questions

1. I doubt it will affect me but is there a sequence in which triggers fire?

2. Is there a way within the trigger to loop round, get all the fields, check their type and trim if VARCHAR? I'm guessing that it should be possible but with my current success rate of writing a trigger I'd like to know first. A supplementary question is what is that likely to do to performance?

Roy Lambert

ps Whereabouts on your priority list is allowing us to edit triggers etc?
Wed, Mar 7 2007 11:12 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< I'm just using the grid in EDBMan. >>

Do you mean the right-hand list view ?   There isn't really a "grid" for
triggers.

--
Tim Young
Elevate Software
www.elevatesoft.com

Wed, Mar 7 2007 11:15 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< 1. I doubt it will affect me but is there a sequence in which triggers
fire? >>

The fire in their defined order.

<< 2. Is there a way within the trigger to loop round, get all the fields,
check their type and trim if VARCHAR? I'm guessing that it should be
possible but with my current success rate of writing a trigger I'd like to
know first. A supplementary question is what is that likely to do to
performance? >>

There isn't currently a way in any EDB routine to dynamically reference a
column in terms of a SET statement.  It is something that I've had on the
list for a while now, so I'll see what I can do.

<< ps Whereabouts on your priority list is allowing us to edit triggers etc?
>>

It's the same as with views, procedures, and functions so it will probably
make it into a 1.02 or 1.03 release.

--
Tim Young
Elevate Software
www.elevatesoft.com

Wed, Mar 7 2007 11:44 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim


OK, in the grid that is displayed when you open a table.


Roy Lambert
Thu, Mar 8 2007 3:44 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< OK, in the grid that is displayed when you open a table. >>

Never mind my question.  When I went back and looked, I realized that I was
asking a question for your other trigger thread, not this one. Smiley

--
Tim Young
Elevate Software
www.elevatesoft.com

« Previous PagePage 2 of 2
Jump to Page:  1 2
Image