Hi Greg,
        thank for your prompt response! I'll upgrade to 1.5.
Regards,
        duccio

-------- Original Message --------
Subject: Re: How to pre-set saveAs TextInput in FileBrowserSheet
From: Greg Brown <[email protected]>
To: [email protected]
Date: 22/06/2010 21:48

Correct - this feature was added for Pivot 1.5. Any reason you can't upgrade to 
1.5? There were some API changes but they were mostly minor, so moving to Pivot 
1.5 shouldn't be a huge challenge.


On Jun 22, 2010, at 1:41 PM, [email protected] wrote:

John,
        thank for your response: unfortunately I'm using Pivot 1.4 and I can 
confirm that the suggested code does not work...

duccio

-------- Original Message --------
Subject: Re: How to pre-set saveAs TextInput in FileBrowserSheet
From: JohnRodey<[email protected]>
To: [email protected]
Date: 22/06/2010 18:26


I asked a similar question and was shown that it can be done like such:

if (fileBrowserSheetMode == FileBrowserSheet.Mode.SAVE_AS) {
     fileBrowserSheet.setSelectedFile(new
File(fileBrowserSheet.getRootDirectory(), "NewFile.txt"));
}

This shouldn't save the file until the users selects to save it.

Note, I believe this can't be done prior to 1.5




--
Duccio Vigolo
Software Engineer

Tagetik Software
Via Farnesi, 141
55100 Lucca - Italy
Tel. (+39) 0583-96811
Fax (+39) 0583-91199
[email protected]
www.tagetik.com

Reply via email to