FMP learner Posted June 8, 2008 Share Posted June 8, 2008 I have a file that contain multiples tables. However, I need to run a script for all of these tables. I wrote the script and it wored on one table only. Any one knows what couldl be the reason and how can I make my script work on multible tables in the document? TIA Quote Link to comment Share on other sites More sharing options...
Maarten Witberg Posted June 8, 2008 Share Posted June 8, 2008 generally speaking, scripts perform in the context of the current table. So move from table to table ( go to layout [layout (table) ] ). But it's really hard to say without knowing the purpose of the script and the database structure... so please type your script here. Quote Link to comment Share on other sites More sharing options...
FMP learner Posted June 8, 2008 Author Share Posted June 8, 2008 generally speaking, scripts perform in the context of the current table. So move from table to table ( go to layout [layout (table) ] ). But it's really hard to say without knowing the purpose of the script and the database structure... so please type your script here. the script is asking certain buttons to increase the number in a certain field by 1 each time its hit And this is the script: If[Get (ScriptParameter) =Personal] Set Field [Group1::Personal; Group1::Personal +1] End If Commit Records/Requests [skip data entry validation; No dialog] Quote Link to comment Share on other sites More sharing options...
Maarten Witberg Posted June 8, 2008 Share Posted June 8, 2008 this script uses a set field pointing at a specific field and table. under what circumstances should it point at another field and table? (and why?) Quote Link to comment Share on other sites More sharing options...
FMP learner Posted June 8, 2008 Author Share Posted June 8, 2008 this script uses a set field pointing at a specific field and table. under what circumstances should it point at another field and table? (and why?) I just gave you an example of the script. Its so long. Each step of the script refers to a specific field. different fields in different tables. but it turns that the script works in one table but not the others Quote Link to comment Share on other sites More sharing options...
Maarten Witberg Posted June 9, 2008 Share Posted June 9, 2008 I'm sorry but I can't see what is wrong with the script unless I see more of it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.