Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5742 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

Hello,

I just signed in to FM Forums, congratulations in advanced for this excelent research tool for fm developers, designers and users.

In FM 9 Advanced, when I try to open a container field using a script (Go to Field [select/perform;container_field]), it give me memory error, but when i double click the field, it open just fine.

The container is repetitive (5 records) so before the Go to Field[] script step, I select the record Go to Record[] script step.

Another thing is that when I add the Flush Cashe to Disk script step, after opening the file, it works fine. This is not an option because its very very very slow : ! What I don't understand is why the script give me memory error, but when I double click it works just fine?

Many thanks in advance!

LuisK.

Posted

Welcome Luisk.

I have some questions:

1. Is the file stored in the container or just a reference to it?

2. When you say, "The container is repetitive (5 records)" you don't mean that you are using a field set with more than one repetition, right?

3. What's in the container? What kind of doc?

Since it seems to open when you double click, I'm assuming that you are storing a reference. Otherwise, you need to Export Field Contents. So, where is the source file? Why are you using a script if you can just dclick to open?

  • Newbies
Posted

Hello bcooney,

Thanks for the fast response.

1. The file is embed in the container, for security reasons.

2. I'm sorry, I meant that the field is in a table with 5 records.

3. Embed in the container is a dnl file(desktopauthor - ebooks)

I'm using a script because I don't want the user to be able to copy/paste the dnl file in the desktop or any folder and use it outside filemaker; beside, it's easier for users, this is a program for teachers in several schools and they usually don't do double clicks right :B .

I tried using the accouts & privileges to deny the "edit permision" on that record (the container), but then I can't double click for it to open. The only solution I found was to put the available menu to "minimum", the only problem is that I need the user to be able to copy and paste text. I don't want the user to be able to copy and paste the DNL embed in the container.

Thanks in advance.

I'm sorry for the bad english, or if the explanation was messy :

Luisk

Posted (edited)

1. If the file is stored in the fm file, and not referenced, then you must use Export Field Contents to open it and view it. However, you'll need a destination. I often use Get (TemporaryPath) for this. However, once a file is opened, you're in another application. Couldn't they Save As?

Here's a demo.

btw, just set the field behavior to not allow Browse Mode.

ImageTest.fp7.zip

Edited by Guest
  • Newbies
Posted

Wow Thank you very much for the fast answer again! :B

Nope, they can't save the file, it's disabled in the dnl file.

Let me try with this, another question, and I think I know the answer but is there any way I can delete the files stored in Temp after using them?

Thanks in advanced!

Luisk

Posted

The operating system deletes the file in Temp. I don't know the schedule. I can see how this could be a security risk.

However, you can export a file without specifying a source field. This deletes a file with the same export_path, and replaces it with nothing.

This topic is 5742 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.