データ要求 (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.

Reasons

Enum ValueDescription
ServerErrorAn error occurred when executing the SrvRoutine. Check the joblog and x_err.log for further information
SessionInvalidThere is no valid session available on the server.
LicenseInvalidThe 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) より継承
ComponentTypeComponentType ではコンポーネントのタイプ情報にアクセスできます。 オブジェクト (PRIM_OBJT) より継承
ComponentTypeNameComponentTypeName 十分適格なコンポーネントのクラス名です。 オブジェクト (PRIM_OBJT) より継承
Nameコンポーネントの名前 オブジェクト (PRIM_OBJT) より継承
Ownerコンポーネントのオーナーです。 オブジェクト (PRIM_OBJT) より継承
Parentこのインスタンスが添付されているコンポーネント インスタンス。コントロールのビジュアル コンテナまたは子インスタンスのコレクション オブジェクト (PRIM_OBJT) より継承
Routine実行するルーチンの名前 サーバー要求 (PRIM_WEB.ServerRequest) より継承
ServerModuleサーバー モジュールの名前 サーバー要求 (PRIM_WEB.ServerRequest) より継承

イベント

名前記述
CompletedWebroutine 要求が正常に終了すると起動されます
CreateInstanceコンポーネントを作成する時に CreateInstance のイベントを実行します。 サーバー要求 (PRIM_WEB.ServerRequest) より継承
DestroyInstanceコンポーネントが解除される前に DestroyInstance のイベントを実行します。 サーバー要求 (PRIM_WEB.ServerRequest) より継承
Downloadingサーバーからのデータをダウンロード中に起動されます。
Loaded, Total, Progress
FailedWebroutine 要求がエ失敗すると起動されます
Reason, Handled
Uploadingサーバーにデータをアップロード中に起動されます。
Loaded, Total, Progress

参照

すべてのコンポーネント クラス

テクニカルリファレンス

EPC142030 February 2019