Jump to content

Naming Convention to Pasteboard


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

Recommended Posts

What is the best way to copy calculation result to pasteboard?

I have a report script that generates a quote. I want to copy a string info together from fields content, for example... "1457_ACME_ClientQuote" to the pasteboard. So when User Saves as PDF, all they have to do is paste "1457_ACME_ClientQuote" when naming the file.

I don't like the idea of controlling the User into having to choose before report script starts to email, print, or export. I just build report and leave user in a new window, in preview mode. I allow User to close window, or leave it in background, etc... My Users like this as well. Then User can use status area to flip pages, export, save as, print, etc...

But I want to help Users to be consistent in their naming Convention by being able to just paste when naming the file.

I have made this work, but I feel it is tacky.

My script goes simply like this:

- Set global_naming_field to [id&company&"Quote"]

- Copy global_naming_field

- Build report in new window, preview mode

- EndScript

To get this to work I did TWO things I think I should NOT have to do with seemingly simple task:

1) Had to make a new field just to temporally hold the naming convention

2) This field has to be on the layout in order to be copied from. Even if tho this field is hidden, I don't like it.

This is one of those simple and disturbing problems that I can not seem to get right.

Can anyone help me with this?

How can I make this easier then what is outline above?

Thank you so much for your help!

Link to comment
Share on other sites

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