Page History
Because the datetimepicker weblet is the default visualization for fields of type datetime, you usually do not need to manually add it to your web page. Simply include your date fields in your web_map or in a list that is present in your web_map and they will be visualized using the datetimepicker weblet. Similarly fields of type time and of type date will be visualized using the timepicker (std_timepicker) and datepicker 日時ピッカー・ウェブレットはdatetimeタイプのフィールドのデフォルト値のビジュアライゼーションなので、通常は手動でこれをWebページに追加する必要はありません。日時フィールドをWEB_MAP、またはWEB_MAPに存在するリストに含むだけで、日時ピッカー・ウェブレットを使用してビジュアライズされます。同様に、時間タイプ(time)のフィールドや日付タイプ(date)のフィールドも時間(std_time)ウェブレットや日付(std_datepicker) weblets.ウェブレットを使用してビジュアライズされます。
| Info |
|---|
Datetime fields created before version 12 SP1 use the std_datetime weblet by default. To use std_datetimepicker, change the weblet visualization in the field definition. The Datetimepicker weblet uses the ISO language code to localize some properties (e.g. date format, first day of the week) and calendar and time slider captions. |
If you do need to add the datetimepicker weblet to your page manually, simply drag the datetime field from the Fields tab onto your page. Alternatively, open the XSL for your webroutine in the LANSA Editor and follow these steps:
1. Click on the Weblets tab, select Standard Field Visualization from the drop-down list near the top and locate the jQuery UI Datetimepicker weblet.
2. Drag the weblet onto your page in the Design view. Click on the weblet and then click on the Details tab.
...
バージョン12 SP1以前に作成された日時フィールドは、デフォルト値でstd_datetimeウェブレットが使用されます。std_datetimepickerを使用するには、フィールド定義でウェブレットのビジュアライゼーションを変更します。 日時ピッカー・ウェブレットは、ISO言語コードを使用してプロパティの一部(日付の形式、週の最初の曜日など)やカレンダー・タイム・スライダーのキャプションをローカライズします。 |
ページに日時ピッカー・ウェブレットを手動で追加する必要がある場合は、datetimeフィールドをページのFieldsタブからドラッグします。もしくは、LANSAエディターでWebroutineのXSLを開き、以下の手順に従います。
- [ウェブレット テンプレート]タブをクリックし、上にあるドロップダウン・リストから[標準フィールドビジュアライゼーション]を選択、[jQuery UI 日時ピッカー]ウェブレットを見つけてください。
- [デザイン]ビューでウェブレットをページにドラッグしてください。ウェブレットをクリックして、[詳細]タブをクリックします。
- nameプロパティ及びvalueプロパティを必要に応じて設定し、WebroutineのWEB_MAPに必要なフィールドとウェブレットを関連付けます。