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

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


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

Recommended Posts

Posted

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

 

Posted

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? :-)

  • Like 1
Posted

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"

Posted

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

Posted

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

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