Skip to main content
Answer

Prepare Payments screen customization issue

  • June 9, 2025
  • 6 replies
  • 69 views

HristinaP77
Freshman I
Forum|alt.badge.img

Hello,

I have some issues when customizing the Prepare Payments screen. I had to make the Pay Date Within checkbox unchecked by default.

 

So I opened the screen in Customization Mode and selected the Override on Screen Level option.

Then I removed the following code:

 [PXDefault(true)]

This is the final code of the customization:

 

When the screen is opened, the checkbox is unchecked, but the data that is loaded is incorrect. Some of the documents are missing.

I have to check and uncheck it in order to show all documents. 

Any help will be appreciated. :)

 

Best answer by Django

I would have been tempted to change:

[PXDefault(true)]

to 

[PXDefault(false)]

The underlying query isn’t geared for handling a null value in that field which is why you’re having to check it to set the value to True and then again to set it to False.

6 replies

Forum|alt.badge.img+2

Hi ​@HristinaP77 
Here you may need to add PXMergeAttribute to define merge method of attributes. There are three merge method as Append, Replace and Merge. 
 

        [PXMergeAttributes(Method = MergeMethod.Replace)]

        [PXDBBool()]
        // any other attribute
        protected virtual void PayBillsFilter_ShowPayInLessThan_CacheAttached(PXCache cache)
        {

        }


HristinaP77
Freshman I
Forum|alt.badge.img
  • Author
  • Freshman I
  • June 9, 2025

Hello PDharmasena10,

Thank you for your reply. I have already tried this, but it is not fixing my issue.


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

Hi ​@HristinaP77 

Have you tried setting up the workflow like the one below, with the default value set to false.

 

Hope this helps!

 


HristinaP77
Freshman I
Forum|alt.badge.img
  • Author
  • Freshman I
  • June 9, 2025

Hello Saikrishna V,

Thank you for your reply. I tried your suggestion, but I still have the same issue. I have to check and then uncheck the checkbox in order to load all documents in the grid.


Forum|alt.badge.img+7
  • Captain II
  • Answer
  • June 9, 2025

I would have been tempted to change:

[PXDefault(true)]

to 

[PXDefault(false)]

The underlying query isn’t geared for handling a null value in that field which is why you’re having to check it to set the value to True and then again to set it to False.


HristinaP77
Freshman I
Forum|alt.badge.img
  • Author
  • Freshman I
  • June 10, 2025

Hello ​@Django.

Your suggestion fixed my issue. Thank you for your help!🙂