2 Replies Latest reply on Jun 24, 2011 12:29 PM by Erik,

    Script for finding a record shows unwanted dialog if no record found

    Erik,

      Title

      Script for finding a record shows unwanted dialog if no record found

      Post

      Hi,

      I have a table 'Part', a related table 'AssemblyPart' and a table 'Assembly'. AssemblyPart::Count tells how many instances of a part are used in an assembly. I have a script to add a record Part to table AssemblyPart or increase AssemblyPart::Count. When there is already a record for this part in the assembly, AssemblyPart::Count is increased with one, otherwise a new record must be inserted. I use a Find script for this, but if no record is found it shows a dialog box to tell that no records are found, before going to the next script line to create the new record.

      How can I search for a record (by using a script) without getting a dialog if no record is found?

      Thanks, Erik