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.

ScriptMaster Server Side Script to export container field

Featured Replies

  • Newbies

Hi,

I saw a response to the question about how to export field contents server side and Jonathan Perel, said he had developed a script and provided a link to it in FMForums.

Unfortunately the link is no longer there. Jonathan, or anyone else who may have it, can you repost it here, or provide an updated link?

Thanks,

Evan

Had to check the archives...

 

Write Container to File ( filePath ; containerField )

import org.apache.commons.io.*;

InputStream input;
FileOutputStream out;

try{
	input = fmpro.getContainerStream(containerField);
}
catch(e){
 return false;
}

if ( input == null ) {
 return false;
}

try{
	output= new FileOutputStream( filePath );
}
catch(e){
 return false;
}

IOUtils.copy (input, output );

//int read = 0;
//byte[] bytes = new byte[1024];
//while ((read = input.read(bytes)) != -1) {
// output.write(bytes, 0, read);
//}

return true;

 

  • Author
  • Newbies

Thanks!!

 

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.