IBM Support

RCP: How to set a text box as an editable field?

Question & Answer


Question

RCP: How to set a text box as an editable field?

Answer

To make a text box an editable field, set up the RCP extensibility tool. In the extension behavior of the screen which has the text box, implement the setControlEditable method of the YRCBaseBehavior class.

Sample code
----------------
public void setControlEditable (String controlName, boolean editable) {
// Set the control editable for required text box

         super.setControlEditable(controlName, editable);
}
 
For more details on the setControlEditable method, please refer to the JavaDocs for the YRCBaseBehavior class.
For setting up RCP extensibility, please refer to the Customization Guide.

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Extensions","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}},{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Adapters","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}},{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Mapping and Translation","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

HTG2819

Document Information

Modified date:
16 June 2018

UID

swg21562830