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
  • OK ... yes apologies ..... I was wrong about the need for a custom trigger .... ok you have your UPDATE event defined against the table ..... this works through OB because OB works at the ObjectLayer.

    You just need to change your "SQLComponent - Execute SQL" to "HandleObjectComponent - Update" ..... set the appropriate WhereClause and then change the val_Property<n> parameters to val_<The attribute you want to update> and set the value = appropriately.

    HTH, Barry.
Reply
  • OK ... yes apologies ..... I was wrong about the need for a custom trigger .... ok you have your UPDATE event defined against the table ..... this works through OB because OB works at the ObjectLayer.

    You just need to change your "SQLComponent - Execute SQL" to "HandleObjectComponent - Update" ..... set the appropriate WhereClause and then change the val_Property<n> parameters to val_<The attribute you want to update> and set the value = appropriately.

    HTH, Barry.
Children
No Data