mindtpi99 Posted January 13, 2003 Posted January 13, 2003 Hi I'm trying to get scripts to go in my CWP solution. Basically, what I want to do is to allow a user to select a user from a client database and then allow them to create a new job in a jobs database by - selecting a script that; - copies the CustomerID from the client database - pastes it into the Jobs database and uses this as the relationship between the two databases So far I've tried a simple script that copies the CustomerID from the Clients database and pastes it back into another field in the same database. It works fine in Filemaker client but does nothing if done via the web. I'm running OS X on all systems and FileMaker Pro Unlimited is in the foreground on the server. Any suggestions gratefully accepted!!
Anatoli Posted January 13, 2003 Posted January 13, 2003 Why you are not doing that without scripts?:?? It is easy in CWP.
mindtpi99 Posted January 13, 2003 Author Posted January 13, 2003 I open to suggestions!! I had a think about it and thought I should be using tokens but I'm not too sure....
Garry Claridge Posted January 13, 2003 Posted January 13, 2003 In the Format file which lists your Clients database you could have something like this: [FMP-Record] Customer: [FMP-Field: cust_name] <a href="FMPro?-db=jobs.fp5&-layout=web&-format=jobs.html&cust_id=[FMP-Field:cust_id]&-new">Add Job</a><br> [/FMP-Record] Other methods exist. A little bit of Javascript can also be used to make it more compact by manipulating a Form. All the best. Garry
mindtpi99 Posted January 13, 2003 Author Posted January 13, 2003 that worked perfectly for my needs Garry!!! Thanks for you help!! regards Howard
Recommended Posts
This topic is 7977 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