Read the documentation of the saveAs method.
I have - and it still do not have a solution for this to work. This obiously means that my understanding of what I´m doing isn´t as good as it need to be!
However - that is why I´m trying to seek some help here...
1) Is it possible to create a "button", and using Java-code, from the button, to initiate a saveAs command?
2) If it is - Do I have to do any set-up of the file or program/user to get this function to work? If so - how and where?
3) I´m going to use this form on both PC and tablet (Android), is it posible?
4) Where do I go wrong??!?
I´ve understod from another thread that I need to have a folder level script to automate he saveAs function. But why won´t i start at all? Is there an alternative? It do NOT need the save function to be forced without the users input. It would accually be prefered if the user is informed, and asked, if he accepts the saveas action, - but I need the filename to be suggested, so he/she only need to press yes/no or accept/cancel, or something...
As I´ve understood the problems lies in this: ...These methods can be executed only in a privileged context, which includes console, batch and application initialization events. All other events (for example, page open and mouse-up events) are considered non-privileged.
So - how do I run around/solve this problem?
- I need to have a Save/saveAs function
- I need it to be executed/initialized by a mouse-up event, the same event that will mail the document to a recipient.
- I need to be able to suggest the file-name
- I can´t place a folder level scripts on ALL the recipients computers/tablets
- I need it to work on PC and Android
- It should be executed just before I e-mail the document to a recipient, because I need to change the name of the document I e-mail, AND because I want to save a copy of the sent file in/on my computer/tablet.
Info: nothing will work in Android. Savingvisnt even a concept.