Subject: RE: ws.prompt problem
Code:
'-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
’ PROMPT USER TO SELECT A REJECT REASON
'--------------------------------------------------------------------------------------------------------------------------------------------------------------------
'Dim askme As Variant
'Dim requestdenied As String
'
'reason(0) = "Documentation Error(s)"
'reason(1) = "Not Needed"
'reason(2) = "Logic Error(s)"
'reason(3) = "Platform Related Issue"
'reason(4) = "Rescheduled"
'reason(5) = "Requirements Change"
'reason(6) = "Other - See Rejection Comments"
'askme = ws.Prompt(PROMPT_OKCANCELLISTMULT, _
'"Select A Reason", _
'"Select A Reason For Rejecting This Document", _
'reason(6), reason)
askme=ws.DialogBox("RejectionReason",True,True,False,False,False,"Rejection Comments")
'if askme contains "other...." then call up the RejectDialog box form to add additional information and append it to the additional information field
Forall m In askme
If m = ("Other - See Rejection Comments") Then
Msgbox"Please Enter your comments in the below field"
additionalinfo = ws.Dialogbox("RejectDialog",True,True,False,False,False,False,"Rejection Comments",)
End If
End Forall
If askme=False Then
Messagebox "Sorry, you must select a reason for rejecting this request", , "Reason Required"
Exit Sub
Else
Forall ask In askme
asklist = asklist & ask & Chr(10)
End Forall
End If
'put the reject reasons in the rejectreason field to be used in views
Set item = doc.GetFirstItem( "RejectReason" )
Call item.AppendToTextList(Cstr(asklist))
' add the reject reasons to the Approval History
Set item = doc.GetFirstItem( "ApprovalHistory" )
Call item.AppendToTextList( "Version " + Cstr(uidoc.FieldGetText("DispVersionNumberRework")) + " Reason(s) Rejected: " & Cstr(asklist))
'------------------------------------------------------------------------------------------------------------------------------------------------
’ PROMPT FOR ADDITIONAL INFORMATION
'------------------------------------------------------------------------------------------------------------------------------------------------
'Input box to get additional information
'additionalinfo = Inputbox$("Add any additional information here", "Additional Information")
'-------------------------------------------------------------------------------------------------------------------------------------------------------
’ CONFIRM REJECT
'-------------------------------------------------------------------------------------------------------------------------------------------------------
'confirmmsg% = Msgbox ("Test: last chance to cancel out of this - test Do you wish to continue?" , 4+ 32 + 0 + 0, " Transmission")
confirmmsg% = Msgbox ("This will reject this LCN and send a notice to all the participants. Do you wish to continue?" , 4+ 32 + 0 + 0, " Transmission")
If Not confirmmsg = 6 Then
Exit Sub
End If
This is the code…now this code has only 6 options which are const…i want those options to be editable…also user should be able to add new options…the 6 options one can see r Documentation Error(s),LCN Not Needed and so on…