Skip to main content
Solved

Displaying inactive Projects

  • June 26, 2025
  • 3 replies
  • 71 views

Forum|alt.badge.img

Hello all,

Is it possible to display all the projects irrespective of the statuses in the payments and applications form?

Best answer by Josiah Lisle

@Harry 

Yes, it is possible. You can create a custom attribute to display all Projects based on your specific condition, or override the field using the CacheAttached method. In the override, you can remove the base attribute and add the [Project] attribute to include all projects.

you can try something like below code

[PXMergeAttributes(Method = MergeMethod.Merge)]

[PXRemoveBaseAttribute(typeof(ARActiveProject))]
[Project]
protected virtual void DAC_ProjectID_CacheAttached(PXCache sender)
{
}

Hope this helps!

Hey ​@Saikrishna V , thanks a lot for your guidance. So how can I apply this code in Payments & Applications screen → project ID selector field. Can you please guide me thru it? Would be grateful.

Thanks.

The code provided would appear in a graph extension for the screen you are trying to modify. You would need to verify the full attribute name that you are trying to move (it may not be exactly ‘ARActiveProject’), and change ‘DAC’ to be whatever the DAC you are trying to modify is.

Alternatively, you could consider updating the DAC directly on the Data Access tab of customization project. You would need to specify your DAC, specify the field, and then override base attributes on that field, replacing the original project attribute with the attribute that was mentioned: [Project]. However, this would affect everywhere this DAC is used, so keep this in mind if it is a DAC like ARTran which might be used on more than one screen (like ARTran)

3 replies

Forum|alt.badge.img+1
  • Semi-Pro III
  • June 26, 2025

@Harry 

Yes, it is possible. You can create a custom attribute to display all Projects based on your specific condition, or override the field using the CacheAttached method. In the override, you can remove the base attribute and add the [Project] attribute to include all projects.

you can try something like below code

[PXMergeAttributes(Method = MergeMethod.Merge)]

[PXRemoveBaseAttribute(typeof(ARActiveProject))]
[Project]
protected virtual void DAC_ProjectID_CacheAttached(PXCache sender)
{
}

Hope this helps!


Forum|alt.badge.img
  • Author
  • Semi-Pro II
  • June 26, 2025

@Harry 

Yes, it is possible. You can create a custom attribute to display all Projects based on your specific condition, or override the field using the CacheAttached method. In the override, you can remove the base attribute and add the [Project] attribute to include all projects.

you can try something like below code

[PXMergeAttributes(Method = MergeMethod.Merge)]

[PXRemoveBaseAttribute(typeof(ARActiveProject))]
[Project]
protected virtual void DAC_ProjectID_CacheAttached(PXCache sender)
{
}

Hope this helps!

Hey ​@Saikrishna V , thanks a lot for your guidance. So how can I apply this code in Payments & Applications screen → project ID selector field. Can you please guide me thru it? Would be grateful.

Thanks.


Forum|alt.badge.img+1
  • Jr Varsity I
  • Answer
  • July 2, 2025

@Harry 

Yes, it is possible. You can create a custom attribute to display all Projects based on your specific condition, or override the field using the CacheAttached method. In the override, you can remove the base attribute and add the [Project] attribute to include all projects.

you can try something like below code

[PXMergeAttributes(Method = MergeMethod.Merge)]

[PXRemoveBaseAttribute(typeof(ARActiveProject))]
[Project]
protected virtual void DAC_ProjectID_CacheAttached(PXCache sender)
{
}

Hope this helps!

Hey ​@Saikrishna V , thanks a lot for your guidance. So how can I apply this code in Payments & Applications screen → project ID selector field. Can you please guide me thru it? Would be grateful.

Thanks.

The code provided would appear in a graph extension for the screen you are trying to modify. You would need to verify the full attribute name that you are trying to move (it may not be exactly ‘ARActiveProject’), and change ‘DAC’ to be whatever the DAC you are trying to modify is.

Alternatively, you could consider updating the DAC directly on the Data Access tab of customization project. You would need to specify your DAC, specify the field, and then override base attributes on that field, replacing the original project attribute with the attribute that was mentioned: [Project]. However, this would affect everywhere this DAC is used, so keep this in mind if it is a DAC like ARTran which might be used on more than one screen (like ARTran)