Developer Function: Server Script: columns
## Overview
Get and edit the settings of "[Column](/en/manual/table-management-column)" with "[Server Script](/en/manual/table-management-server-script)". You can set "「Cell CSS」" for the "[Screen Index](/en/manual/table-grid)" and "[Field CSS](/en/manual/table-management-extended-field-css)" and "[Extended HTML](/en/manual/table-management-extended-html)" for the "[Editor](/en/manual/table-management-editor)".
## Supported Versions
#### ValidateRequired
1. Pleasanter 1.2.15.0 or later
1. Pleasanter .NET Framework version 0.50.278 or later
#### ExtendedHtmlBeforeLabel / ExtendedHtmlBetweenLabelAndControl / ExtendedHtmlAfterField
1. Pleasanter 1.1.38.0 or later
1. Pleasanter .NET Framework version 0.50.262 or later
## Properties
|No|Name|Get|Set|Type|Description|
|:----|:----|:----|:----|:----|:----|
|1|ExtendedCellCss|Yes|Yes|string|"「Cell CSS」"|
|2|ExtendedFieldCss|Yes|Yes|string|"[Field CSS](/en/manual/table-management-extended-field-css)"|
|3|ExtendedControlCss|Yes|Yes|string|"[Control CSS](/en/manual/table-management-extended-control-css)"|
|4|ExtendedHtmlBeforeField|Yes|Yes|string|Before the "[Extended HTML](/en/manual/table-management-extended-html)" field|
|5|ExtendedHtmlBeforeLabel|Yes|Yes|string|Before the "[Extended HTML](/en/manual/table-management-extended-html)" label|
|6|ExtendedHtmlBetweenLabelAndControl|Yes|Yes|string|Between the label and control of "[Extended HTML](/en/manual/table-management-extended-html)"|
|7|ExtendedHtmlAfterControl|Yes|Yes|string|After the "[Extended HTML](/en/manual/table-management-extended-html)" control|
|8|ExtendedHtmlAfterField|Yes|Yes|string|After the "[Extended HTML](/en/manual/table-management-extended-html)" field|
|9|Hide|Yes|Yes|bool| "[Hidden](/en/manual/table-management-hide)"|
|10|ValidateRequired|Yes|Yes|bool|"[Input Required](/en/manual/table-management-required)"|
|11|RawText|Yes|Yes|string|Replace the value of the column on the Screen Index|
|12|ReadOnly|Yes|Yes|bool|"[Read Only](/en/manual/table-management-readonly)"|
## Method
|No|Name|Description|
|:----|:----|:----|
|1|[AddChoiceHash](/manual/server-script-columns-add-choice-hash)|Set the "[Option List](/en/manual/table-management-choices-text)" of the "[Column](/en/manual/table-management-column)" dynamically. |
|2|[ClearChoiceHash](/manual/server-script-columns-clear-choice-hash)|Clear the "[Option List](/en/manual/table-management-choices-text)" of the "[Column](/en/manual/table-management-column)". |
## Usage Example 1
In the following example, ClassA (Classification A) will be hidden.
##### JavaScript (server script)
```
columns.ClassA.Hide = true;
```
## Usage Example 2
In the following example, DescriptionA will be made read-only.
##### JavaScript (server script)
```
columns.DescriptionA.ReadOnly = true;
```
## Usage Example 3
The following example outputs ABC in red in the ClassA cell of the "[Screen Index](/en/manual/table-grid)". The condition must be specified before the row display. HTML tags can be inserted.
##### JavaScript (server script)
```
columns.ClassA.RawText = '<font color="red">ABC</font>';
```
## Related Information
<div id="ManualList"><ul><li><a href="/en/manual/table-grid">Table Function: Record Screen Index</a><span>10.02.2024 up</span></li></ul></article>
<ul><li><a href="/en/manual/table-management-column">Manage Table: Column</a><span>10.07.2024 up</span></li></ul></article>
<ul><li><a href="/en/manual/table-management-editor">Table Management: Editor</a><span>08.13.2024 up</span></li>
<li><a href="/en/manual/table-management-required">Table Management: Editor: Item Detail Settings: Input Required</a><span>08.13.2024 up</span></li>
<li><a href="/en/manual/table-management-readonly">Table Management: Editor: Item Detail Settings: Read-only</a><span>08.13.2024 up</span></li>
<li><a href="/en/manual/table-management-choices-text">Table Management: Editor: Item Detail Settings: Option List</a><span>08.13.2024 up</span></li>
<li><a href="/en/manual/table-management-hide">Table Management: Editor: Item Detail Settings: Hidden</a><span>08.13.2024 up</span></li>
<li><a href="/en/manual/table-management-extended-field-css">Table Management: Editor: Item Detail Settings: Field CSS</a><span>08.13.2024 up</span></li>
<li><a href="/en/manual/table-management-extended-control-css">Table Management: Editor: Item Detail Settings: Control CSS</a><span>08.13.2024 up</span></li>
<li><a href="/en/manual/table-management-extended-html">Manage Table: Editor: Column Advanced Settings: Extended HTML</a><span>10.02.2024 up</span></li></ul></article>
<ul><li><a href="/en/manual/table-management-server-script">Table Management: Server Script</a><span>08.13.2024 up</span></li></ul></article>
<ul><li><a href="/en/manual/server-script-columns-add-choice-hash">Developer Function: Server Script: columns.AddChoiceHash</a><span>10.04.2024 up</span></li>
<li><a href="/en/manual/server-script-columns-clear-choice-hash">Developer Function: Server Script: columns.ClearChoiceHash</a><span>10.04.2024 up</span></li></ul></article></div><input id="SearchTextHidden" type="hidden" value="" />