DanMarks Posted December 16, 2010 Posted December 16, 2010 Hi Guys, Please see the script attached, it seems to ignore the inset file part of the script, leaving the field blank (which is a container field). Any help with this one will be greatly received. Cheers, Dan
DanMarks Posted December 17, 2010 Author Posted December 17, 2010 Aren't you in Preview mode at that point? Indeed I am, thanks for pointing out a really stupid mistake lol! But funny thing is it would still update the cost field, just not insert a file. Cheers, Dan
comment Posted December 17, 2010 Posted December 17, 2010 it would still update the cost field Set Field[] works directly at data level. Insert... works on layout level - for example, it will fail if the field is not on the layout.
bcooney Posted December 17, 2010 Posted December 17, 2010 Other pointers: 1. You do not need the New Request step after you enter find mode. This is used only if you need to do an "OR" search. 2. I don't see the need to enter Preview mode, except the first time when you are apparently capturing the first sections page count. 3. Are your Print Setups different? If not, then you only need one. Because, as comment points out, Insert File fails if the field is not on the layout, consider creating a "utility/dev" layout for each table. This layout is used in scripts. Any fields that must be on the layout, I typically fill with red.
Recommended Posts
This topic is 5090 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 accountSign in
Already have an account? Sign in here.
Sign In Now