FMPRO-L Archives

June 2011, Week 4

FMPRO-L@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Craig Gaevert <[log in to unmask]>
Reply To:
FileMaker Pro Discussions <[log in to unmask]>
Date:
Wed, 22 Jun 2011 15:50:06 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (35 lines)
error code is 401.

In some scripts that I use, which probably don't match your conditions, 

Set Error Capture [on]
Constrain Found Set (restore)
If (Get (lastError) = 401)
show custom dialog that resolves the issue
Go to layout original
Exit Script
Exit if

I use this for searching for unresolved items in an RFI database related to specific projects. It may give you an idea to resolve your issue.

Craig

On Jun 22, 2011, at 03:26 , Peter Buchanan wrote:

> When using the Go to Related Record script step, is there a specific error
> code to look for with Get Last Error, for example if there are no related
> records? I am trying to figure out what happens if there are no related
> records :
> 
> I am using GTRR, and then importing the related records into another table.
> How do I ensure only the related records (matching the current record) are
> imported? Will GTRR still go to the layout (in related table) specified in
> this command, even if no related records? Will the found set in related
> table be nil records if no related records, or will it comprise all records?
> 
> Much appreciate any advice on checks to use with this script step.
> 
> Regards
> Peter
> 

ATOM RSS1 RSS2