Hello all,
Is it possible to display all the projects irrespective of the statuses in the payments and applications form?
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
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
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)
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.