October 10, 201015 yr 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
October 10, 201015 yr 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 October 10, 201015 yr by Guest Added sentence
October 11, 201015 yr Author 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.
October 11, 201015 yr 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 October 11, 201015 yr by Guest Added constrain
October 11, 201015 yr Author 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.
October 12, 201015 yr 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:
Create an account or sign in to comment