Description
Steps to Reproduce
-
Log in to the instance as admin.
-
Create a custom table named Test Table (u_test_table).
For more information, see the product documentation topic Create a table.
-
Configure the new table's list layout: add sys_domain column (type = Domain ID), a description (u_description) column (type=string, length 40).
-
Switch to the TOP/ACME domain.
-
Open u_test_table.do and create a new record with the Description "Test 1".
The domain will automatically be set to TOP/ACME.
-
Right-click in the form header and choose Configure > Business Rules.
-
Click New and create a business rule called Domain Record Delete Test.
-
Check the Advanced, Insert, Update, and Delete checkboxes.
-
Check the Advanced checkbox and add the following code to the Advanced tab's Script section:
gs.log("Operation = " + current.operation()); -
Click Submit.
-
From the list view, change the description of the only record in u_test_table to "Test 2".
An information message appears at the top of the page saying "Operation = update".
-
Delete the record from the list view.
A message should appear in the log that says "Operation = delete" but the business rule does not get triggered.
Workaround
Choose one of the following workarounds:
-
Create the business rule first in the global domain and then override it in the ACME domain as needed.
-
Create the business rule only in the global domain and have your domain-specific logic hard-coded within the script.
Related Problem: PRB1102464