Page History
...
列タイプが汎用的な他のコンポーネント LANSA リスト (ツリーやグリッドなど) とは異なり、Prim_List には文字列、数値、日時、画像、ボタン、チェック ボックス、再利用可能なパーツの特定の列タイプがあります。には文字列、数値、日時、画像、ボタン、チェック ボックス、再利用可能パーツの特定の列タイプがあります。
フィールドまたはコントロールがリストにドロップされると、適切なタイプの列が追加されます。フィールドの場合は、列のソース パラメータが他の LANSA リストの場合と同じように設定されます。
列は 2 つの方法で機能します。まず、エントリが追加されるときに、列の定義がプロトタイプとして使用されます。したがって、"Delete" というキャプションで定義されたボタン列には、各項目に "Delete" というキャプションのボタンが表示されます。次に、すべての列タイプには、個々のインスタンスへのアクセスを提供する CurrentItem プロパティがあります。Column is the base class for all column type in the List control.
Unlike other component LANSA lists e.g. Tree and Grid, where column types are generic, Prim_List has specific column types for string, number, date time, image, button, check box and reusable part.
When a field or control is dropped on the list, the appropriate type of column is added. If it was a field, the source parameter of the column will be set as it is for other LANSA lists.
Columns work in 2 ways. Firstly, the definition of the column is used as a prototype when an entry is added. So, a button column defined with a caption of "Delete" will show a button in each item with a caption of "Delete". Secondly, all column types have a CurrentItem property that provides access to the individual instance.
例
この例では、番号とボタンの列を含む単純なリストを示します。行が偶数の場合、ボタンは非表示になります。
...