MattPage Posted May 6, 2004 Posted May 6, 2004 Hi all, I have a simple company database and want a button which when clicked will search in Google for the company name. I guess the URL will be http://www.google.com/search?&q=company name , but I can not work out how to join the field name onto the end of the URL using OpenURL in the scriptmaker. I don't want to create another field to do this, surely it is simple to do ? Any help is much appreciated. Matt
MattPage Posted May 6, 2004 Author Posted May 6, 2004 I also want a button to search the postcode on StreetMap.co.uk
Lee Smith Posted May 6, 2004 Posted May 6, 2004 Hi Matt, If I'm understanding you correctly, then you will need to create a field unless you want the same search each time. Which I doubt. What I would do is to make a field that calculates out the desired URL path. Two Fields 1). Use an existing field such as Company Name, or create a global field where the company name is entered prior to activating the script. 2). I'd call it something like c_URL_Google c_URL_Google (calculation, Text Result) = "http://www.google.com/search?&q="& Company Name The script would or could be just one step. Open URL [Field:
MattPage Posted May 7, 2004 Author Posted May 7, 2004 Thanks Lee, thats what I thought I would have to do. Shame it can't be done without adding fields to the DB.
Ender Posted May 7, 2004 Posted May 7, 2004 If you are worried about overhead, you could use a global text field instead and use a script to set the contents of the global everytime someone hits the button.
Recommended Posts
This topic is 7508 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