Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7975 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I'm using FileMaker 5.5 .

I have a report layout and a find layout.

I have a script that takes the user to the find layout and shows the result on the report layout.

On the report layout I have a global field so that the user enters data on that global field to prevent the user from changing data by mistake. The problem is that it isn't possible to enter data in a global field during find ? In case it's not possible what should I do to prevent user from entering data by mistake, instead of using the report field on the find layout ?

Luiza

Posted

Well actually the sequence should be:

  • Set Error Capture on
  • Go to find layout
  • Set globals
  • Enter Find Mode
  • Set fields from globals
  • Perform Find
  • Check if found anything
  • If yes do appropriate action, like go to reprot layout
  • otherwise tell the user he/she didn't fine anything

Dj smirk.gif

Posted

The sequence I've done is similar to the one you described.

I've also tried using set field and also tried using copy paste, but both ways don't paste the data on the field.

It goes like this :

Go to layout Find

Copy select _gName

Go to Layout Report

Enter Find Mode

Paste select Name

Perform Find

Set field _gName = ""

If I do it manually it works, but when I use the script it doesn't work.

I've inserted pause/Resume Script to see where the problem is and I found that it's after enter Find Mode because it doesn't paste.

Do you have any clue ?

Luiza

Posted

Not sure what the problem is, but lose the copy and paste. It's bad practice anyway. Use a SetField to move the value from the global to the find field. Also make sure the that the global field REALLY is a global field.

-bd

This topic is 7975 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.