Skip to content

columns

Overview

Get and edit the settings of "Column" with "Server Script". You can set "Cell CSS" for the "Screen Index" and "Field CSS" and "Extended HTML" for the "Editor".

Properties

No Name Get Set Type Description
1 ExtendedCellCss Yes Yes string "Cell CSS"
2 ExtendedFieldCss Yes Yes string "Field CSS"
3 ExtendedControlCss Yes Yes string "Control CSS"
4 ExtendedHtmlBeforeField Yes Yes string Before the "Extended HTML" field
5 ExtendedHtmlBeforeLabel Yes Yes string Before the "Extended HTML" label
6 ExtendedHtmlBetweenLabelAndControl Yes Yes string Between the label and control of "Extended HTML"
7 ExtendedHtmlAfterControl Yes Yes string After the "Extended HTML" control
8 ExtendedHtmlAfterField Yes Yes string After the "Extended HTML" field
9 Hide Yes Yes bool "Hidden"
10 ValidateRequired Yes Yes bool "Input Required"
11 RawText Yes Yes string Replace the value of the column on the Screen Index
12 ReadOnly Yes Yes bool "Read Only"

Methods

No Name Description
1 AddChoiceHash Set the "Option List" of the "Column" dynamically.
2 ClearChoiceHash Clear the "Option List" of the "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". 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>';

Supported Versions

ValidateRequired

  1. Pleasanter 1.2.15.0 or later
  2. Pleasanter .NET Framework version 0.50.278 or later

ExtendedHtmlBeforeLabel / ExtendedHtmlBetweenLabelAndControl / ExtendedHtmlAfterField

  1. Pleasanter 1.1.38.0 or later
  2. Pleasanter .NET Framework version 0.50.262 or later