データ要求 (PRIM_WEB.DataRequest)
実行する SRVROUTINE の定義
祖先 - サーバー要求 (PRIM_WEB.ServerRequest) オブジェクト (PRIM_OBJT)
A DataRequest defines an instance of a Server Module SrvRoutine so that it can be executed. As all communication with the server is via a webserver, most requests should be executed asyncronously using the ExecuteAysnc method. Once submitted, processing will continue. The Completed and Failed events are used to respond to the completion of the routine.
| Enum Value | Description |
|---|---|
| ServerError | An error occurred when executing the SrvRoutine. Check the joblog and x_err.log for further information |
| SessionInvalid | There is no valid session available on the server. |
| LicenseInvalid | The server license has expired |
In this example, a request is submitted asynchronously. When completed, the returned data is added to a list on the screen.
Mthroutine Name(GetData)
Define_Com Class(#MyServerModule.GetData) Name(#GetData)
#GetData.ExecuteAsync(#DataList)
Evtroutine Handling(#GetData.Completed)
SelectList Named(#Datalist)
Add_entry To_list(#UIList)
Endselect
Endroutine
Endroutine
| 名前 | 記述 |
|---|---|
| ComponentClassName | コンポーネントのクラス名です。 オブジェクト (PRIM_OBJT) より継承 |
| ComponentMembers | このコンポーネントの全てにアクセスできるようにします。 オブジェクト (PRIM_OBJT) より継承 |
| ComponentPatternName | コンポーネントのクラスを制限します。 オブジェクト (PRIM_OBJT) より継承 |
| ComponentTag | インスタンス用に値を格納できる汎用スペース オブジェクト (PRIM_OBJT) より継承 |
| ComponentType | ComponentType ではコンポーネントのタイプ情報にアクセスできます。 オブジェクト (PRIM_OBJT) より継承 |
| ComponentTypeName | ComponentTypeName 十分適格なコンポーネントのクラス名です。 オブジェクト (PRIM_OBJT) より継承 |
| Name | コンポーネントの名前 オブジェクト (PRIM_OBJT) より継承 |
| Owner | コンポーネントのオーナーです。 オブジェクト (PRIM_OBJT) より継承 |
| Parent | このインスタンスが添付されているコンポーネント インスタンス。コントロールのビジュアル コンテナまたは子インスタンスのコレクション オブジェクト (PRIM_OBJT) より継承 |
| Routine | 実行するルーチンの名前 サーバー要求 (PRIM_WEB.ServerRequest) より継承 |
| ServerModule | サーバー モジュールの名前 サーバー要求 (PRIM_WEB.ServerRequest) より継承 |
| 名前 | 記述 |
|---|---|
| Completed | Webroutine 要求が正常に終了すると起動されます |
| CreateInstance | コンポーネントを作成する時に CreateInstance のイベントを実行します。 サーバー要求 (PRIM_WEB.ServerRequest) より継承 |
| DestroyInstance | コンポーネントが解除される前に DestroyInstance のイベントを実行します。 サーバー要求 (PRIM_WEB.ServerRequest) より継承 |
| Downloading | サーバーからのデータをダウンロード中に起動されます。
Loaded, Total, Progress |
| Failed | Webroutine 要求がエ失敗すると起動されます
Reason, Handled |
| Uploading | サーバーにデータをアップロード中に起動されます。
Loaded, Total, Progress |
EPC142030 February 2019