OutSystems Forge 日本語データベース

How to Design Screens with Ajax

※Forge全件データの日本語検索サービスをご利用になりたい場合は、こちらまでお問合せください。

Forge英文サイト

2015-01-26 1.1.0 OutSystems TechComm 9.0.0.19 All All How-tos
画面でAjaxを使用する方法のサンプル: 1.リストを更新します。 2.リストに要素を追加する。 3.リスト内の要素を更新します。
Asynchronous JavaScript and XML(Ajax)は、非同期Webアプリケーションを作成するためにクライアント側で利用する手法です。 Ajaxを使用すると、ページの表示や動作を妨げずにサーバーとデータを交換できるため、エンドユーザーのエクスペリエンスが大幅に向上します。これは、ユーザーがWeb画面と対話している間に小さな非同期要求をサーバーに送信することで実現されます。これにより、エンドユーザはウェブ画面の一部を更新することができ、ページの状態を維持しながらレスポンスを待つ必要はありません。 このプロジェクトの各Web画面は、OutSystemsでAjaxを使用する方法の使用例を示しています。方法を確認してください: Ajaxでリストを更新する - 準備中のレコードを取得するためのクエリを含むリスト画面が必要です。 - メソッド 'Ajax Submit'を使って、画面上のボタンをスクリーンアクションにバインドさせる。 - 画面のアクションで、データの更新ツールを使用してクエリを更新します。 - Ajax Refreshを使用して、TableRecordsウィジェットのみをリフレッシュします。 Ajaxでリストをリフレッシュする方法の詳細を学んでください。 Ajaxを使用して要素をリストに追加する。 - 新しいレコードの値を設定する入力フォームと、レコードを追加するリスト画面が必要です。 - メソッド 'Ajax Submit'を使って、画面上のボタンをスクリーンアクションにバインドさせる。 - 画面アクションで、ListAppendアクションを使用してレコードをテーブルレコードウィジェットに追加します。 Ajaxを使用して要素をリストに追加する方法の詳細をご覧ください。 リスト内の要素をAjaxで更新する - テーブルレコードに入力フォームを追加してレコード値を更新する。 - リストのレコードの値を変更するイベントにバインドされた画面アクションを作成する。 - 画面のAjax Refreshアクションを追加して、リスト内のレコードを新しい値で更新します。 リスト内の要素をAjaxで更新する方法の詳細を学んでください。

[Overview]
Samples of how to use Ajax in screens: 1. Refresh a list; 2. Add an element to a list; 3. Update an element in a list.
[Detail]
Asynchronous JavaScript and XML (Ajax) is a technique used on the client-side to create asynchronous Web applications. With Ajax, the end-user experience is greatly improved because we are able to exchange data with the server without interfering with the display and behavior of the page. This is accomplished by sending small asynchronous requests to the server while the user interacts with the Web screen. This allows for the end-user to update parts of the Web screen and not to have to wait for the response, while keeping the state of the page. Each Web Screen of this project illustrates a use case of how you can use Ajax in the OutSystems Platform. Check how to: Refresh a list with Ajax - You need to have a list screen with a query to fetch the records in the preparation; - Have a button on the screen bound to a screen action with Method 'Ajax Submit'; - On the screen action refresh the query with the Refresh Data tool; - Use the Ajax Refresh to refresh only the TableRecords widget. Learn more about how to refresh a list with Ajax. Add an element to a list with Ajax - You need to have an input form to set the values of the new record and a list screen to add the records; - Have a button on the screen bound to a screen action with Method 'Ajax Submit'; - On the screen action append the record to the Table Records widget using the ListAppend action. Learn more about how to add an element to a list with Ajax. Update an element in a list with Ajax - Add an input form in the Table Records to update the record values; - Have a screen action bound to the event of changing the values of a list's record; - On the screen add an Ajax Refresh action to update the record in the list with the new values. Learn more about how to update an element in a list with Ajax.
戻る