0
Locking Records in multiple tables from one
I have this script to lock records in a table. How would I modify it to lock records in child tables related to this Projects table? In other words lock Inventory and Locations
do as server
for i in (select PROJECTS)[LOCKED = true] do
i.(LOCKED := false)
end
end;
alert("All records unlocked")
4 replies
-
It looks like the script UNLOCKS, but maybe you have it the other way around.
Using your provided code, you can try something like:
for i in (select PROJECTS)[LOCKED = true] do i.(LOCKED := false; Inventory.LOCKED := false; Locations.LOCKED := false) end
So all related records in Inventory and Locations will also be set to "false". The power of related records.
-
You can create a formula in each child table to reflect the state of PROJECT.LOKED.
Content aside
- 1 yr agoLast active
- 4Replies
- 57Views
-
3
Following