Database Reference
In-Depth Information
deleting records; navigating among existing records; and even managing the process of open-
ing and editing a record, and saving (committing) or reverting the changes. You can also
work directly with portal rows on the current layout—and the records they represent.
Creating, Duplicating, and Deleting Records
New Record/Request and Duplicate Record/Request have no options and do exactly
what you'd expect. The first script step creates a new record, just like the Records→New Re-
cord menu command. The second duplicates the current record. In either case, the new record
becomes the current record, just like when you do it manually. You use these steps most of-
ten on buttons, when you're taking away menu commands from people and providing them
with buttons that appear only on the layouts where you want people to be able to create re-
cords.
NOTE
Duplicating a record from a script step works just like doing it manually—that is, the script duplic-
ates the static (non-calculated) values in the record, too. If calculations depend on those static val-
ues, they also get duplicated, but they change if you edit the non-calculated values later. Serial num-
bers are not duplicated, but are recalculated at the time the duplicate record is created.
The Delete Record/Request script step deletes the current record. If you turn on its “Perform
without dialog” option, then the delete happens with no warning. When this option is turned
off, the manager sees the same “Are you sure?” message box he'd see when deleting a record
manually.
NOTE
Each of these three script steps also works for find requests when a script runs in Find mode.
Navigating Through Records
Two script steps let you switch to a different record. The Go to Record/Request step works
a lot like the Status toolbar's topic icon by taking you to the specific record you specify. Or
you can switch to a related record, or a set of related records, using the Go to Related Re-
cord script step.
Search WWH ::




Custom Search