# Why does Button\[\] not work with SystemDialogInput\["FileSave"\]?

**URL:** <https://community.wolfram.com/t/why-does-button-not-work-with-systemdialoginput-filesave/5411>\
**Category:** Questions\
**Tags:** mathematica\
**Created:** [April 13, 2015, 5:14am UTC](https://community.wolfram.com/t/why-does-button-not-work-with-systemdialoginput-filesave/5411 "2015-04-13T05:14:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yingjianma1955](https://avatars.discourse-cdn.com/v4/letter/y/ecc23a/32.png) [@yingjianma1955](https://community.wolfram.com/u/yingjianma1955)\
**Post date:** [April 13, 2015, 5:14am UTC](https://community.wolfram.com/t/why-does-button-not-work-with-systemdialoginput-filesave/5411/1 "2015-04-13T05:14:26Z")

</div>

datalist = {{1, 2}, {2, 4}, {3, 8}, {4, 16}};

Button[“Save”,  
Export[SystemDialogInput[“FileSave”], datalist, “Table”]]

After I run it, I can see the filename but cannot find it as a file. Thanks.

---

<div class="post-metadata">

**Author:** ![kubapod](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/kubapod/32/18662_2.png) [@kubapod](https://community.wolfram.com/u/kubapod)\
**Post date:** [April 13, 2015, 7:14am UTC](https://community.wolfram.com/t/why-does-button-not-work-with-systemdialoginput-filesave/5411/2 "2015-04-13T07:14:36Z")

</div>

It seems that without `Method->"Queued"` `Export` will not wait for your choice. Use it then:

```
Button["Save", 
 Export[SystemDialogInput["FileSave"], datalist, "Table"], 
 Method -> "Queued"]

```

---

<div class="post-metadata">

**Author:** ![yingjianma1955](https://avatars.discourse-cdn.com/v4/letter/y/ecc23a/32.png) [@yingjianma1955](https://community.wolfram.com/u/yingjianma1955)\
**Post date:** [April 13, 2015, 12:48pm UTC](https://community.wolfram.com/t/why-does-button-not-work-with-systemdialoginput-filesave/5411/3 "2015-04-13T12:48:22Z")

</div>

It works. Thank you.
