This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Process for ShoppingCartOrder won't fire up on UPDATE event

We want to fire up process on UPDATE ShoppingCartOrder. By default, there are no events on this table so we add UPDATE object event.

Problem is that when UPDATE appears the process won't fire up. We are updating ShoppingCartOrder from another process with "SQLComponent - Execute SQL":

Dim f As ISqlFormatter = Connection.SqlFormatter
Value = "UPDATE ShoppingCartOrder SET Description = CONCAT(ISNULL(Description, ''), 'COS') WHERE Description IS NULL AND " & f.Comparison("UID_ShoppingCartOrder", $UID_ShoppingCartOrder$, ValType.String,VI.DB.CompareOperator.Equal ,VI.DB.FormatterOptions.None)

PS 1) when UPDATE is generated from Object Browser process is fired up

PS 2) With INSERT object event there is no problem.

Parents
  • Hi P.Noga,

    It's not enough just to add the event to the process. If the underlying table does not implement that trigger at the database level then of course it will never happen.

    If you really need this ..... you will have to create a database trigger for UPDATE.

    HTH, Barry.
Reply
  • Hi P.Noga,

    It's not enough just to add the event to the process. If the underlying table does not implement that trigger at the database level then of course it will never happen.

    If you really need this ..... you will have to create a database trigger for UPDATE.

    HTH, Barry.
Children
No Data