web viewer frustrations
web viewer frustrations
(OP)
We recently purchased a copy of FMP 8.5, to take advantage of the wev view capabilities. I had no problem with setting up the database and web viewer, but the lack of a browser Back button is frustrating. If I click on a link on the web page for a database entry, it goes to the new page. But if there is no back link on the new page, I can't get back where I was. Switching to another entry and back doesn't reset it. Anyone know a way to get it to go back to the programmed URL once you go to another webpage?
RE: web viewer frustrations
Create a button and bind it to the SET WEB VIEWER script step (found under the Misc category)
Then enter the name of your web viewer object and choose the GO BACK option.
-Striker
RE: web viewer frustrations
That sounds pretty easy to do. I can't get to it till tomorrow, so I'll let you know then if I run into problems.
Jill
RE: web viewer frustrations
Set Web Viewer [Object Name: Databasename::Web_Address; Action: Reset]
Do I need something else?
RE: web viewer frustrations
1. You must name the web viewer object. The ability to name objects is pretty new for Filemaker so you may have never done this before. To name an object; while in the LAYOUT MODE pull down VIEW > OBJECT INFO (a small new dialog box should appear). Now select your web viewer object. Enter a name for the object, rember the name, and tab out of that dialog box.
2. Now open your script in the SET WEB VIEWER enter the name that you gave to the object in step 1. Then assign the ACTION to GO BACK.
3. Create a button and bind it to your script.
That should do it.
-Striker
RE: web viewer frustrations
RE: web viewer frustrations
Now I have a related question for a different database. I'm planning to add the webviewer to this other database, and initially have all records go to the same website.
1) is there an easy way to fill in the URL field to all 5000+ records at once?
2) That URL is actually a page on the website that will have a list of links. When I click on a link, I would like to change the URL in the record to this new URL. Is there a way to do that? Obviously, I can't copy and paste, since it doesn't tell me what the URL of the link is.
RE: web viewer frustrations
I think I understand what you want to do and I believe that it is possible.
The first thing you need to do is create your web viewer and assign it your static web address. In this example I will use 'http://www.filemaker.com/'. Doing this will mean no matter what record you're on it will come up on Filemaker's home page. You will want to ensure that the 'Allow interaction with Web Viewer content' box is checked.
Give the web viewer a name just like you did earlier. In my example I'll use 'FM_Viewer'. I assume that you have a field in your DB named something like 'URL' where you want to house the URL of pages that you visit.
Now create a script and in it place the 'Set Field' command with a syntax something like this:
Set Field [TableName::URL; GetLayoutObjectAttribute ("FM_Viewer"; "Source")]
What this does is set the field called 'URL' in the table called 'TableName' to the URL currently displayed in the object called 'FM_Viewer'.
When you run the script it should get the URL from the current page and place it into the URL field on the current record.
-Striker
RE: web viewer frustrations
That sounds easy enough. I'm really glad I can do that. Then I'll only have to search through the whole list once for each record.It will be sooo much more convenient.
Jill
RE: web viewer frustrations
But so far, nothing happens when I run the Set Field script. Could there be more to it? Does it need the "" ? I'll try again tonight and play around with it. If I can't figure it out, I'll write the exact script in here, and maybe you can debug it for me.Thanks,
Jill
RE: web viewer frustrations
Set Field [Rose List::URL[GetLayoutObjectAttribute ("HMF"; "Source")]]
Rose List is the database. URL is the field I want the new web page to be listed in. HMF is the object name of the web viewer.
Nothing happens when I try to use it.
Jill
RE: web viewer frustrations
I had to re-read this thread to try to figure out exactly what you are trying to do. When I read it for the second time the last bit of help that I offered doesn't seem to make sense to me anymore. Could you restate exactly what you are trying to do once again so I can get me head around it?
Thanks!
-Striker
RE: web viewer frustrations
(The original search page will also have 5000+ entries in an alphabetical list, and I don't want to have to scroll through it every time I look at a record.)
Is that clearer?
RE: web viewer frustrations
Jill
RE: web viewer frustrations
PS. I'm never offended by others jumping in.
-Striker