Thread Rating:
  • 478 Vote(s) - 2.96 Average
  • 1
  • 2
  • 3
  • 4
  • 5
choose-file で初期提案ファイル名を指定したい
09-24-2013, 10:14 AM, (This post was last modified: 09-24-2013, 10:24 AM by umemura.)
#5
RE: choose-file で初期提案ファイル名を指定したい
私は、このサンプルで、「hoge」というディレクトリがなくても、ファイルダイアログに「test.txt」というファイル名を表示したいです。
しかし、特権モードで動かしてもそのようには振舞いません。
(私はこのサンプルを、ローカルで動かしています。)

I would like to display on file dialog as "test.txt" , even if dosen't exist "hoge" directroy.
But this sample dosen't work , even running on a privileged.

Code:
{CommandButton
    {on Action do
        def du = {url "file:///c:/hoge/test.txt"}
        {if-non-null u = {choose-file
                             style = FileDialogStyle.save-as,
                             default-location = du
                         } then
            {popup-message u}
        }
    }
}

I use curl version is 8.0.2.

次にchoose-file プロシージャを読んだときに利用されるディレクトリのURLを取得できるのでしょうか。
そして、そのディレクトリに、自分の希望するファイル名をつなげてdefaurl-location として指定すれば、
私の希望する振舞いにすることができるのでしょうか。

You mean you can get directory url which curl's file dialog will use or generate when showing itself by called choose-file prosedure.
So, I can concat a file name to the directory url, and pass to chose-file prosedure as default-directory?

Do I misunderstand something?







Messages In This Thread
RE: choose-file で初期提案ファイル名を指定したい - by umemura - 09-24-2013, 10:14 AM

Possibly Related Threads...
Thread Author Replies Views Last Post
  choose-file の default-location が効かない umemura 2 3,391 04-08-2014, 07:48 PM
Last Post: umemura
Forum Jump:


Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('967')