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.

Automatically naming output file

Featured Replies

Hello

Is it possible to automatically name the output file based on the value of a field?

Let's say I have text field with value 4512 (which is a code) and I want to export a tab-sparated file

with name m124512, where m indicates the department, 12 indicates the year, and 4512 is the value of the field.

Thank you, Toni

You can create a variable with the path for the exported file, then use the variable in the export script step.

  • Author

Thanks for pointing that option. I haven't seen that.

It took a while to figure it out, but finally got it working. At first I thought that I should have specified the whole path and filename within the variable. But it wasn't working that way.

So I defined only filename on the variable, and the path in the export step of the script.

I thought that I should have specified the whole path and filename within the variable. But it wasn't working that way.

it should have.

  • Author

it should have.

Well it didn't, but now that I am thinking I didn't put "filewin:" in the variable calculation which probably caused the problem.

I will try once more tomorrow. Thank you again.

  • Author

Yes comment, you are right, it worked. I did forgot to put filewin: at the begging of the calculation. what I finally did was:


"filewin:/D:/Desktop/m"&Right (ComNuovo::Data Fattura;2)&ComNuovo::Fatt nr&"."&"txt"

ComNuovo is the database, Data Fattura and Fatt nr are the two fields of the database which I use to name the file.

Best regards, Toni

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.