IBM Support

How to set a multi-line field default value to display a template (or a form) where the user needs to insert some data

Troubleshooting


Problem

This technote explains how to set a multi-line field default value in IBM® Rational® ClearQuest® to display a form, where a user needs to insert some data.

Resolving The Problem

For example, you wish display to the user a multi-line field, additional instructions, where the user needs to insert some data such as:

Line: (description of the user)
Department: (description of the users Department)

You can do that by making use of hook code for the Default Value for the multi-line field in the ClearQuest Designer.

Below is a Visual Basic script that can be used to set up default value for Description.


Sub description_DefaultValue(fieldname)
' fieldname As String
' record type name is Defect
' field name is Description
REM Set the initial value of the field here. Example:

Dim Dev_template
crLf = vbCrLf
Dev_template = "Line: " & crlf & "Department: "
SetFieldValue "Description", Dev_template
End Sub

Disclaimer

All source code and/or binaries attached to this document are referred to here as "the Program". IBM is not providing program services of any kind for the Program. IBM is providing the Program on an "AS IS" basis without warranty of any kind. IBM WILL NOT BE LIABLE FOR ANY ACTUAL, DIRECT, SPECIAL, INCIDENTAL, OR INDIRECT DAMAGES OR FOR ANY ECONOMIC CONSEQUENTIAL DAMAGES (INCLUDING LOST PROFITS OR SAVINGS), EVEN IF IBM, OR ITS RESELLER, HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

[{"Product":{"code":"SSSH5A","label":"Rational ClearQuest"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Designer - Fields and Lists","Platform":[{"code":"PF033","label":"Windows"}],"Version":"2002.05.00;2002.05.20;2003.06.00;2003.06.12;2003.06.13;2003.06.14;2003.06.15;2003.06.16;7.0;7.0.0.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Historical Number

182126732

Document Information

Modified date:
04 December 2018

UID

swg21146643