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

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

Recommended Posts

Posted

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

Posted

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.

Posted

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.

Posted

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

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