Jump to content

Help with script please


Recommended Posts

Hello hope all is keeping well?

Please I need help with this script what I have been trying to do for the last week is to put a saved PDF into a container field after its been created?

I have tried to insert into a container field with the field be interactive and not Interactive but with no joy.

The script attached is where I have been trying to place the script where the red line are?

So after its saved to the desktop import into a container field so we have a copy of the PDF

I hope someone would be so kind to help me

 

Thank You519870981_Screenshot2020-10-05at16_15_20.thumb.png.916d32e74f5b1fc86a6ed12358be13ea.png

Link to post
Share on other sites

Hello comment thank you for the link 

I have tried all the ways listed in the link and all I'm getting is the error 102 field is missing I have tried using another field but still getting the errors I looked up the error code and other recommendations is that pull it off the panel out of the live field but again still getting an error

 

Any Thoughts ????

Link to post
Share on other sites

Well, which field, in which table, are you trying to insert the PDF into? And is it on the current layout?

Your script shows you are in a layout of Job_Samples, showing only related records starting from some parent table. I would have thought that the container field would be defined in this parent table, and therefore accessible from the current context. But apparently you're doing something else.

 

Edited by comment
Link to post
Share on other sites

Ok here goes lol I will do my best to explain?

I am in layout: Job_Details with the Table: Job the Job_Samples is another Table called SAM_Samples which when I done the relationship I called it Job_Samples so you have connected Job_Details to Job_Samples

In the layout Job_Samples I have a container field called pdf and that's where the saved pdf should be Imported.

I have also put a container field in a layout called SAM_Samples and changed the script to input the saved pdf in that one but I'm still getting a error.

I hope this helps.

 

Link to post
Share on other sites

I am afraid I couldn't understand any of it.

I believe you are getting the error because the target field is not on the current layout - i.e. the layout you're on when you call the Insert File script step.

--
Note that there is  a way to insert a file into a container field even if the field is not on the current layout. But I think you should solve the current problem first.

 

Link to post
Share on other sites

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
  • Similar Content

    • By GarrettC
      Under Mojave, my version of Filemaker was funky but more or less functional. My recent upgrade to Catalina put a stake thru its heart.
      I came here after and hour of reading endless sales pitches on the website, 20 minutes waiting on the phone for sales and another 20 in the chat jail with CalrisBot, also awaiting someone with a heartbeat.
      I'm sold, I want the product but I'm getting a bad feeling.
      I was an advanced user in the past with Filemaker Pro 11 but my work took me away from database paying work and although my work is now more involved with research and activisim, I'd like to bring Filemaker back into my toolbox.
      Can you purchase FileMaker or is it only a subscription now?
      Sadly, if it is subcription only, I'm out. I'll need to find an alternative.
      Thanks for any guidance.
    • By jjjjp
      Is there a way to change my coding of scripts so that so-called scripting errors don't show up in server logs when a scheduled script is executed on FM Server? I get dozens of such errors for each daily execution, and Using a Set Error Capture [On] script step doesn't seem to make a difference as to whether the "errors" show up in the server log. The kinds of error codes that do show up (101, 401) don't seem to me to be be the result of scripting errors at all. Rather, they are part of ordinary operations (e.g., testing to see whether to stop looping by checking whether a record exists in a found set).
      I raised this question a couple of weeks ago in a much longer email providing a lot of the context that I thought the FM Forum community preferred. I didn't hear back and so have tried to reduce my question here to the bare bones.
    • By naio
      My script in a hosted file needs to export records as pdf into the user Downloads folder, needs to run under Mac and Windows, so I set the variable $path_filename to:
      Case (  Get ( SystemPlatform ) = 1; "filemac:"; Get ( SystemPlatform ) = -2; "filewin:"; "file:" ) & Substitute (Get (DocumentsPath); "Documents"; "Downloads" ) &  "file.pdf" And then:
      Save Records as PDF [With dialog: Off; $path_filename ; Records being browsed ; Create folders: Off] The script it works in Mac but not in Windows: I get an 800 Error and a message warning that it can't create the file.
      I don't get what's wrong with the windows version, any idea?
    • By jaboda
      As there isn't a thread about this I thought I'd post about this annoying bug as it affected me and I thought I had a corrupt db.
      The issue seems to be that when editing layouts with certain summary parts in FileMaker 19.1.2 it changes the way that the layout is configured, so that a DDR created in FileMaker 18+ (at least) crashes FileMaker Pro and fails to create the DDR.
      Some points from my testing:
      Creating a DDR without selecting 'Layouts' works fine. 'Save a Copy as XML' works fine. It seems that running Recovery or compact/repair in 19.1.2 also introduces the issue. I don't know if running this in 19.0.1 fixes the issue but worth trying. Claris are aware of the issue and have stated that "The FileMaker file is not corrupted in this case and you can continue to use the file without issues". The workaround is to rollback to 19.0.1 on any machine used for development and rebuild any layouts edited in 19.1.2 (deleting all objects and pasting from a backup worked for me). Also a recovery might work in 19.0.1.
    • By wdrspens
      I have a small Filemaker Member's database (less than 1,200) with some 650 existing members but I am not the Membership Secretary.  The Membership Secretary uses Excel to record who joins and resigns, and each time there is a change in membership (joining or leaving) the Excel file on Dropbox is updated and I am notified.  I therefore have to import that data into my Filemaker Members database each time there is a change to the members (new member, change in personal detail or resigned member). 
      However I am in control over the data of the existing members who also join our web membership (at present less than 100).  The web members have to be manually activated when they join the web membership and I have to check that each person is a member before I activate their web membership.  So far no problem.  I record in my Filemaker Members database the following data in respect of each member (in addition to their personal data) - the date to which they have renewed their membership, the date they resigned, the date they became a web member and whether their web membership has been activated or deactivated.
      It is important that their web membership is deactivated when they resign their membership, so they no longer have access to the members section on the web.
      I therefore want to set an alarm that alerts me each time I import from the excel file or when I open the Filemaker database, that if any member is now recorded as having left, and is also recorded as having an activated web membership, I must deactivate that member.  Thus, in respect of each member, if the field "Date Left" shows a date AND the field "Activated" is Yes, a warning is raised and that warning remains until the field "De-Activated" is also Yes.  I know I can achieve that by conditional formatting, but I can only get about 28 members per page, so will not be alerted unless I scroll through all members.  I therefore need to get a warning in the Header Space.  Can that be achieved?
×
×
  • Create New...

Important Information

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