May 25, 201312 yr 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
May 27, 201312 yr 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? :-)
May 28, 201312 yr 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"
May 28, 201312 yr 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
May 29, 201312 yr 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