You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

実行する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

プロパティ

名前

記述

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

Offline

Webroutine要求が実行され、ブラウザがオフラインだった場合に起動されます Action, Reason

Uploading

サーバーにデータをアップロード中に起動されます。 Loaded, Total, Progress

参照

すべてのコンポーネント クラス
テクニカルリファレンス

  • No labels