FOCUS has a couple of ways to create new records.
Let’s say you have a parent record that does not have any ancestor records – in this case, a project record. We use a generic record creation script when creating records that don’t have any ancestors. Call the script “b create record ( table )” and in this case, pass “PROJECT” as the parameter for the table name. We’ll need to modify the “b create record ( table )” script every so slightly to include “PROJECT” as one of the tables to watch out for. It’s that easy. Here is what the IF Statement might look like when you are done adding the exception for the PROJECT table.
$_table = "VIEW" or
$_table = "PLUGIN" or
$_table = "LOG_DEVELOPER" or
$_table = "PROJECT"The other method of creating new records would be to have the script verify that all systems are go to create a new project. So for example, let’s say we had a table for tasks pertaining to a project. When the user tries to create a new task, the system ensures (before we create a new task record), that a project record exists and is selected.
Comments