Workflow Script for Milestone user fields
Question ID: 108740
0
0

This is an informational post, not an actual question.

If you’re working with user fields for a Milestone, the object is not in the Script Editor’s autocomplete, but is valid if you code it by hand.

Example:

Sub Milestone_New
‘*** This will happen when you create a new item of this type
‘ Note: Milestone_Fields is not in the Script Editor’s autocomplete, but is valid.
On Error Resume Next
‘*** Make the controls readonly
Milestone_Fields.Field("MS_USER_01").IsReadOnly = True
Milestone_Fields.Field("MS_USER_02").IsReadOnly = True

‘*** Set the values to the controls
Milestone_Fields.Field("MS_USER_01").Value = TDConnection.ServerTime ‘date and time 11/1/2018 11:13:55 AM
Milestone_Fields.Field("MS_USER_02").Value = User.UserName ‘current user

On Error GoTo 0
End Sub

For reference: ALM 12.55. But we all know it’s probably like this on 10 and 11 at least.

Marked as spam
Posted by (Questions: 1, Answers: 1)
Asked on November 2, 2018 4:48 pm
22 views
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top