実行する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.
Reasons
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 |
Example
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
プロパティ
名前 |
記述 |
コンポーネントのクラス名です。 オブジェクト (PRIM_OBJT) より継承 |
|
このコンポーネントの全てにアクセスできるようにします。 オブジェクト (PRIM_OBJT) より継承 |
|
コンポーネントのクラスを制限します。 オブジェクト (PRIM_OBJT) より継承 |
|
インスタンス用に値を格納できる汎用スペース オブジェクト (PRIM_OBJT) より継承 |
|
ComponentTypeではコンポーネントのタイプ情報にアクセスできます。 オブジェクト (PRIM_OBJT) より継承 |
|
ComponentTypeName十分適格なコンポーネントのクラス名です。 オブジェクト (PRIM_OBJT) より継承 |
|
コンポーネントの名前 オブジェクト (PRIM_OBJT) より継承 |
|
コンポーネントのオーナーです。 オブジェクト (PRIM_OBJT) より継承 |
|
このインスタンスが添付されているコンポーネントインスタンス。コントロールのビジュアルコンテナまたは子インスタンスのコレクション オブジェクト (PRIM_OBJT) より継承 |
|
実行するルーチンの名前 サーバー要求 (PRIM_WEB.ServerRequest) より継承 |
|
サーバーモジュールの名前 サーバー要求 (PRIM_WEB.ServerRequest) より継承 |
イベント
名前 |
記述 |
Webroutine要求が正常に終了すると起動されます |
|
コンポーネントを作成する時にCreateInstanceのイベントを実行します。 サーバー要求 (PRIM_WEB.ServerRequest) より継承 |
|
コンポーネントが解除される前にDestroyInstanceのイベントを実行します。 サーバー要求 (PRIM_WEB.ServerRequest) より継承 |
|
サーバーからのデータをダウンロード中に起動されます。 Loaded, Total, Progress |
|
Webroutine要求が失敗すると起動されます Reason, Handled |
|
Webroutine要求が実行され、ブラウザがオフラインだった場合に起動されます Action, Reason |
|
サーバーにデータをアップロード中に起動されます。 Loaded, Total, Progress |