    

 ## On this page

  

 

 # showFileSaveDialog

 Last update: 16.07.2025 

abstract fun [showFileSaveDialog](show-file-save-dialog.md)(title: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), selectedFilter: [ValueHolder](../../com.phoenix_int.ModelCenter.util/-value-holder/index.md)&lt;[Integer](https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html)&gt;, initialFileName: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), filters: [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)&lt;[String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)&gt;, initialUri: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), hwnd: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)

Displays file selection dialog for saving and returns URL of selected file.

#### Return

URL of selected file, or null if none selected

#### Parameters

titletitle of dialog windowfiltersarray of file type filters, may be nullinitialFileNamethe file name to populate the dialog with initiallyselectedFilterthe index of the filter selected by the dialog (inout)initialUriinitialUri to use in dialog, may be nullhwndthe window handle to which to parent the dialog#### Throws

[ModelCenterException](../-model-center-exception/index.md)