walekarsa - Thursday, November 19, 2009 9:08 AM:
Hi Forum Members,
I want to update the project activity status"percent_complete" to 100 based on the status of the deliverable. If the deliverable is "released" the activity status should automatically change to 100.
Following is the code that I have written.
I have added this into the server events of Activity2 Assignment.
Dim qry As Aras.IOM.Item
qry = Me.newItem("Activity2 Deliverable","get")
Dim x1 As String = qry.getProperty("current_state")
If (x1 = "Released")Then
'Dim qry1 As Aras.IOM.Item
Dim qry2 As Aras.IOM.Item
Dim RelName As Aras.IOM.Item
'Dim RelPr As String
qry2 = qry.getParentItem()
RelName = qry2.fetchRelationships("Activity2 Assignment")
RelName.setProperty("percent_compl","100")
End If
Kindly help me in debugging the code. I am not able to get the required result.
Thanks in Advance