J
Jose X Perez
Hi again,
I have a project server 2007 implemented in a company.
Now i need a to make some filters in my views so, in the ViewA i need to
show only master projects and in the ViewB i need to show only project that
are not master projects.
So i create a new custom field named isMasterProj, with teh value yes or not.
To make it easier for the users i create a macro for the event before save
Private Sub Project_BeforeSave(ByVal pj As Project)
If pj.Subprojects.Count = 0 Then
Call
pj.ProjectSummaryTask.SetField(FieldNameToFieldConstant("isMasterProj"), "No")
Else
Call
pj.ProjectSummaryTask.SetField(FieldNameToFieldConstant("isMasterProj"),
"Yes")
End If
End Sub
now i have a problem, when i close the project professional the pj variable
has no a valid value.
How can i validate the event for not a valid value?
I already try pj is not Null, pj <> Null, pj is not empty, pj <> empty
O maybe is a field that i do not find that to wath i want?
Thanks for your help
Jose X Perez
I have a project server 2007 implemented in a company.
Now i need a to make some filters in my views so, in the ViewA i need to
show only master projects and in the ViewB i need to show only project that
are not master projects.
So i create a new custom field named isMasterProj, with teh value yes or not.
To make it easier for the users i create a macro for the event before save
Private Sub Project_BeforeSave(ByVal pj As Project)
If pj.Subprojects.Count = 0 Then
Call
pj.ProjectSummaryTask.SetField(FieldNameToFieldConstant("isMasterProj"), "No")
Else
Call
pj.ProjectSummaryTask.SetField(FieldNameToFieldConstant("isMasterProj"),
"Yes")
End If
End Sub
now i have a problem, when i close the project professional the pj variable
has no a valid value.
How can i validate the event for not a valid value?
I already try pj is not Null, pj <> Null, pj is not empty, pj <> empty
O maybe is a field that i do not find that to wath i want?
Thanks for your help
Jose X Perez