Hijack Posted May 19, 2010 Posted May 19, 2010 Am I missing an obvious script process to navigate to a field based on name or can it not be done? I'd like to be able to go to a field based on the field name passed via script parameter. The Go To Field script step only lets you hard specify the field to jump to. I need it to be a little more fluid than that. Any idears? Thanks
lawaid Posted May 19, 2010 Posted May 19, 2010 The "Set Field by Name" script step first appeared in Version 10 ... FMI Version History Chart (up to v10)
Hijack Posted May 19, 2010 Author Posted May 19, 2010 (edited) Yeah, I've been using that but I'd like to be able to nav to a container field and do an Export Field Contents dynamically. The specify field option on the Export Field Contents step is likewise a hard specify only option. I can do a Set Field on a global container and pull over the content of another container dynamically with the GetField function and then export the contents of the global container to disk but that moves the data twice and if the data is large and/or the solution is hosted on a server with a slow connection that can make the process pretty ponderous. I'm hoping I can work it so that I just export the source field one time and be done with it rather than having to move things to a global that I can rely on in subsequent script steps. Edited May 19, 2010 by Guest
Raybaudi Posted May 19, 2010 Posted May 19, 2010 I'd like to be able to go to a field based on the field name passed via script parameter. Pass the Object name via script parameter and then: Go to Object [ Get ( ScriptParameter ) ] Export Field Contents [ <--no field here--> ; $path ]
Hijack Posted May 20, 2010 Author Posted May 20, 2010 I really don't want to have to give an object name to all the container fields I'd like to potentially export data from with one master script. Yeah, it can be done that way but that's a lot of leg work just to compensate for FM's inability to nav to a field by name like it can an object.
comment Posted May 20, 2010 Posted May 20, 2010 I believe the only other way is to loop through the fields on the layout until the active field's name is the one you want (provided, of course, that the field is included in the tab order).
Hijack Posted May 20, 2010 Author Posted May 20, 2010 Thanks all for the info. Looks like I'm going to be assigning object names to all my containers. Bummer.
Recommended Posts
This topic is 5302 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