Jump to content
Server Maintenance This Week. ×

Data source name capture


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

Recommended Posts

  • Newbies

I find it odd that FileMaker is so intuitive yet hides access to the file name of the data source during importing. It looks like the only way I have found based on posts on the forum is to import the Data Source file as a reference into a container field. That is an extra step that shouldn't have to be done since FileMaker sees the Source file name during multiple points in the import process. Here are three dialogs where it's seen during import. There has to be a way to use the input file name with some kind of Get Function.  Please help!

1400512063_ScreenShot2020-06-22at4_41_58PM.png.1bf597e44e299a61d764f78a3c825703.png739014604_ScreenShot2020-06-22at4_42_33PM.png.3dce9396148a336a5f14527332c48d67.png338106224_ScreenShot2020-06-22at4_43_15PM.png.66b5316f3f19ac6055fbe9f44ab1daeb.png

Link to comment
Share on other sites

17 hours ago, epatrick said:

There has to be a way to use the input file name with some kind of Get Function. 

I am afraid I am not familiar with such function. If your script selects the file (IOW, the file's name is known or can be calculated in advance) then of course you can place the file name in a variable and use it to populate a field as part of the import script. If the file is selected by user at runtime, then the only method I know of is to start by having the user insert the file into a container (this can be a variable, you don't need to use a field), then have the script import from the referenced file.

Alternatively you could use a plugin (or even AppleScript) to capture the user's selection - see, for example: 
https://baseelementsplugin.zendesk.com/hc/en-us/articles/207324927-BE-FileSelect
But this would be an OS path, not a Filemaker path.

 

Edited by comment
Link to comment
Share on other sites

This topic is 1403 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.