データ要求 - Downloading イベント
サーバーからのデータをダウンロード中に起動されます。
データ要求 (PRIM_WEB.DataRequest) のメンバ
| 名前 | タイプ | データ タイプ | 記述 |
|---|---|---|---|
| Loaded | *Input | 整数 | ダウンロードされたデータ量 (バイト) |
| Total | *Input | 整数 | ダウンロードするデータのトータル量 (バイト) |
| Progress | *Input | 整数 | ダウンロード完成率 (パーセント) |
Downloading イベントは、データ転送中に繰り返し起動し、ダウンロードの進捗の詳細を提供します。
次の例では、ダウンロードのルーチンが呼び出されています。このイベントが起動されるたびに、プログレス バーが更新されています。
Mthroutine Name(Upload)
Define_Map For(*Input) Class(#Prim_web.File) Name(#File) Pass(*By_Reference)
Define_Com Class(#Xxxxx.Yyyyyy) Name(#FileDownload)
#FileDownload.ExecuteAsync( #File.Blob #File.Name )
#ProgressBar.Percentage := 0
Evtroutine Handling(#FileDownload.Downloading) Progress(#Progress)
#ProgressBar.Percentage := #Progress
Endroutine
Evtroutine Handling(#FileDownload.Completed)
* User Processing
Endroutine
Endroutine
EPC142030 February 2019