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

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

Recommended Posts

Posted

A little stumped over this it seems pretty simple but not working. After I do a find to show in a list I wont to change the list title to "records found". After it finds and changes it seems as if its trying to find again with the value "records found". I am attaching a pic of my script steps any help would be great. Jay

script_step.jpg

Posted (edited)

Hi Jay,

You are already on Work Orders when you perform your find. You don't need a Go To Related[] ... all you need is layout switch.

On your Enter Find Mode[], are you hitting [Enter] twice? You can't GTRR while still in Find mode. You will receive error #3 - wrong mode for the script step. I don't believe you ever even leave Find mode. Is this your exact script? What is in the 'Restore' portion of your Enter Find Mode[]?

If you want to add to a User's find, make your adjustment in the Perform Find [Restore] portion. Also, is that Job List Title field a global? If you are wanting to set a title in the header, you need to use a global or layout-level variable and you should use Set Field[] or Set Variable[] and not Insert Text[]. Insert Text[] requires that the field be on the layout when you set the value and, since I believe your script fails, it remains on the original layout anyway.

What are you trying to accomplish and we can help you through it? :wink2:

Edited by Guest
Added sentence
Posted

Hi LaRetta, once again thanks for the quick reply. I changed the job_title_list field to Global and used the setfield and that did the trick.

Yes i do have to hit enter twice to find because when i go into the find mode I automatically have the field order_type set to "work order" and from their i manually type in my other search requirements. I guess their is no way getting around that.

Once again appreciate it very much. Jay.

Posted (edited)

Try this:

Delete the Restore from your Enter Find Mode[] and adjust your script as:

Enter Find Mode [ pause ]

Modify Last Find

Set Field [ WorkOrder ; "Work Order" ]

Perform Find [ ]

... and did you remove the Go To Related step? It isn't necessary here.

However, if your User has multiple find requests, neither your approach nor mine would work the way you want. You would need to use a Constrain AFTER your User finishes entering their (possibly) multiple find requests, such as:

Enter Find Mode [ pause ]

Perform Find [ ]

Constrain Found Set [ Restore ] ... "work order"

Edited by Guest
Added constrain
Posted

WOW! it worked. No more pushing the enter button twice. Thanks.

Idon't know if I need to stard another post but whats the best way of setting up to share database with another user who has his own copy of fmpro through a local network.

Thanks Jay.

Posted

Different topics should be in new threads in the appropriate forum, particularly a question so drastically different than scripting. Post your new question:

here

:wink2:

This topic is 5157 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.