Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

a way to copy a text file or clipboard to a field

Featured Replies

I have ongoing operator script of templates saved in folder file names, using a picklist to select

 

I suppose i can put in 20+ fields to show etc..

I want to show on single single field in one layout..

 

Wondering if i can pull in each individual text data to a field   all ascii text files or even a Clipboard

 

TIA Rod

 

Solved by brian rich

Go to solution

Hi Rod,

I am afraid I am unclear on your request. In fact, not a single sentence makes sense to me. Might you try rewording it for us? :-)

  • Author

Sorry// 

 

I have 10 text files store in a operator script Scriptfolder

I have a dropdown list in my app,  each line is edited to match each of 10 text files    

 

And I have a single layout with a single field "OperatorScript"   to show operator script

When I pick from list, i.e., say "The callback script",

this fires a FM script that gets the Callback.txt file data and fills the "OperatorScript"  field

 

worst case... alternative way to copy clipboard to my field..a single layout with a single field "OperatorScript"

I still don't get what you are trying to do.

  • Solution

If I understand you correctly, you want to load text stored in an external text file into the OperatorScript field in your database.  There are a number of different text files available and the operator chooses which one to load by selecting a value from the drop-down list.

 

If you want to load text from an external file, the simplest solution is to use a plug-in.  The free Base Elements plug-in has a function named BE_ReadTextFromFile ( {path} )  which can do this with a single Set Field statement e.g.

 

set field [Database::OperatorScript; BE_ReadTextFromFile ( $pathToTextFiles & "script3.txt" )]

 

would load the text from script3.txt into operatorScript

 

You can find the plug-in here:

 

http://www.goya.com.au/baseelements/plugin

 

To trigger the load, use the On modify trigger on the drop down field, have it call a script that works out the appropriate file name for the users choice and then calls a script step like the one above.

 

You will probably need to use the BE_SetTextEncoding( { encoding } ) function to make sure that the external text file is fully readable after loading into the operatorScript field.

 

HTH

 

Brian

  • Author

thank you Brian..  you understand me correct..    so there are other ways?  and simplest is this plugin..

I kind of refrain from PI due to a FM server doesn't like PI, only heard...
This particular option really is more Admin setup function for my app

 

 

BTW,

Is there a place to see all Plugins available?

All Upload code or snippets avail?  ro read, cruise seeing whats available

Other than, ole possibility of search search search.

 

I be interested in what other FM 'ers do?

with Filemake,  is it work,

or do they write code for others, or self..
What kind of app,

Are they ongoing..

Avail etc? 

 

Thanks

I ended up with creating 20 fields.. then to prestore 20 TextScripts ..for operator agents to read.. using a pulldown List of scripts for now, 

that fills in different scripts  Layout, a guide for operators to follow.... 


 next i will experiment w/ your  suggestion, so i don't have to open copy cut in paste but point and append.

 

Rod Eugene OR

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.