wedgeman Posted March 27, 2006 Share Posted March 27, 2006 I've got a series of field names (example is TimeCards template from FM)--->day 1, day 2, day 3....). I want to access the appropriate field based upon script parameters passed in from a button (ie., parameter "1", go to field name Day 1). How do I do this? I've tried using Concatenate to put it together with Get(ScriptParameter), which succesfully results in the text string equaling the correct field name; however, it's not being recognized as a field name. Example.. If I output the result of the calculation into a dialog, I see the correct field name displayed; however if I attempt to do a calculation based on this calculated field name, it doesn't work. Link to comment Share on other sites More sharing options...
Ender Posted March 27, 2006 Share Posted March 27, 2006 Use either the getfield() or the evaluate() function to access a field by its calculated name, like: getfield ( "Day " & get(scriptparameter) ) Link to comment Share on other sites More sharing options...
wedgeman Posted March 27, 2006 Author Share Posted March 27, 2006 thx! sweeeeeet! amazing how well it works when you're actually using the right functions.... Link to comment Share on other sites More sharing options...
Genx Posted March 27, 2006 Share Posted March 27, 2006 Hmmm, well isnt that useful, i didnt know we could call a field through a calculation. As always, cheers for making me pick something new up ~Genx Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6744 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