Search Results for 'script'
-
Search Results
-
Topic: Speed Tips?
Hi, the script below takes about 5 seconds to execute, which seems inordinately slow for something so simple.
Anyone notice any obvious bottlenecks?
Thanks!
function New_Script() {
var l1_id = ‘fld-1150255ff604464392abee526dd2592b’;
var l1b_id = ‘fld-5afc66a3718e4ac69e5121ae0182b483’;
var l2_id = ‘fld-b9080a9632014c118b8a4f1790d7363e’;
var l2b_id = ‘fld-144e23e549f4475b8d384de1b6b367e3’;record.setFieldValue(l1b_id, record.getFieldValue(l1_id));
record.setFieldValue(l2b_id, record.getFieldValue(l2_id));document.saveAllChanges();
}
New_Script();
Is there a way to prevent orphans from being created in a 1-M or M-M relationship in Tap Forms.
Here is the situation A company has Departments, Departments have employees, every employee must be in a department.
The Design !. Department Form, 2. Employee Form. The Department form has a ‘Line to Form’ pointing to Employee as 1 to Many, with show inverse relationship checked.
Work Flow that works: Open Department Form, Click + on Employee (link to form) and add an employee. This works fine.
Work flow as a problem: Operatore opens the Employee form list, Clicks + to add and a Employee form opens but NO department is assigned (obviously) and if the operator does not assign a department this will be an orphan employee (until some intervention is made to assign the Department)Is there a way to keep work flow 2 from happening. A way to force a department always be assigned to a new employee? I rather not do this after the fact, ie , with a script that checks for orphans etc.
Rather either prevent it or enforce it.
I rather not hide the employee form because it is useful to pull up the list of employees and go directly to that individual form.
Is it Possible?
ThanksHi Brendan,
Have been looking for a solution but don’t even know if its possible to add a script button to trigger an “Automator” workflow.
What I would like in my “Job Sheet” Form is to have a button to trigger an auto folder creation for the job number that was generated with a new Job Sheet.
Thanks!
derek