Skip to main content

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. :)

 

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)]

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

        }


Hello PDharmasena10,

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


Hi ​@HristinaP77 

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

 

Hope this helps!

 


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.


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.


Hello ​@Django.

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


Reply