Skip to main content
Solved

How can i use hidden DAC INReceiptStatus in Report designer

  • November 21, 2024
  • 9 replies
  • 83 views

Forum|alt.badge.img

I am trying to design a report using INReceiptStatus which is hidden and cannot be selected in report designer or Generic Enquiry. How can i make the DAC available for report designing 

Best answer by arthia98

Hi ​@fmrubi11 , INReceiptStatus  is PXHidden, we cannot get this DAC in Generic Inquiry or Reports. 

We can achieve this though PXProjection
Hope this will help you

 

View original
Did this topic help you find an answer to your question?

9 replies

Manikanta Dhulipudi
Captain II
Forum|alt.badge.img+13

Hi ​@fmrubi11 

What is the data field you are looking to bring into the report?


Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • 15 replies
  • November 21, 2024

I want all the fields but DAC is hidden and unavailable for selection in Report designer 


Manikanta Dhulipudi
Captain II
Forum|alt.badge.img+13

@fmrubi11 Which Filed you want to place? Can you share me a screenshot of which one is your looking ?


Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • 15 replies
  • November 21, 2024

i need all fields in INReceiptStatus below

 

 


Forum|alt.badge.img+1
  • Jr Varsity III
  • 75 replies
  • Answer
  • November 21, 2024

Hi ​@fmrubi11 , INReceiptStatus  is PXHidden, we cannot get this DAC in Generic Inquiry or Reports. 

We can achieve this though PXProjection
Hope this will help you

 


Forum|alt.badge.img+1
  • Jr Varsity I
  • 62 replies
  • November 21, 2024

To make the INReceiptStatus DAC available for reporting:

  1. Create a DAC extension as shown in the code :

    public class INReceiptStatusExt : PXCacheExtension<INReceiptStatus>
        {
            #region ReceiptNbr
            [PXDBString(15, IsKey = true, IsUnicode = true, InputMask = ">CCCCCCCCCCCCCCC")]
            [PXUIField(DisplayName = "Receipt Nbr.", Visibility = PXUIVisibility.Visible)]
            public string ReceiptNbr { get; set; }
            public abstract class receiptNbr : PX.Data.BQL.BqlString.Field<receiptNbr> { }
            #endregion

            #region Status
            [PXDBString(1, IsFixed = true)]
            [PXUIField(DisplayName = "Status", Visibility = PXUIVisibility.Visible)]
            [INReceiptStatus.ListAttribute()]
            public string Status { get; set; }
            public abstract class status : PX.Data.BQL.BqlString.Field<status> { }
            #endregion

            #region Hold
            [PXDBBool()]
            [PXUIField(DisplayName = "Hold", Visibility = PXUIVisibility.Visible)]
            public bool? Hold { get; set; }
            public abstract class hold : PX.Data.BQL.BqlBool.Field<hold> { }
            #endregion
        }
     

  2. Add it to your customization project
  3. Publish the customization project

After publishing, you should be able to:

  • Access INReceiptStatus fields in the Report Designer

Nilkanth Dipak
Semi-Pro I
Forum|alt.badge.img+10

Hi ​@fmrubi11,

Yes, the DAC is marked as Hidden, so it cannot be directly used in a Report or GI. Customization is required to include this data in a report.

  1. As ​@arthia98  suggests, you can achieve this by creating a PXProjection.

  2. @noorula77 suggests creating an extension of the INReceiptStatus DAC. You can add the required fields to this extension, allowing access to these fields since the extended DAC will not inherit the Hidden property.

  3. Alternatively, you can create a custom view to fetch data from the INReceiptStatus DAC. From this view, you can create new DAC fields as needed to display in the report. The newly created DAC can then be referenced in the report.

Hope, it helps!


Manikanta Dhulipudi
Captain II
Forum|alt.badge.img+13
fmrubi11 wrote:

i need all fields in INReceiptStatus below

 

 

Hidden DAC Cannot be available to make the reports or GI.


Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • 15 replies
  • November 21, 2024
noorula77 wrote:

To make the INReceiptStatus DAC available for reporting:

  1. Create a DAC extension as shown in the code :

    public class INReceiptStatusExt : PXCacheExtension<INReceiptStatus>
        {
            #region ReceiptNbr
            [PXDBString(15, IsKey = true, IsUnicode = true, InputMask = ">CCCCCCCCCCCCCCC")]
            [PXUIField(DisplayName = "Receipt Nbr.", Visibility = PXUIVisibility.Visible)]
            public string ReceiptNbr { get; set; }
            public abstract class receiptNbr : PX.Data.BQL.BqlString.Field<receiptNbr> { }
            #endregion

            #region Status
            [PXDBString(1, IsFixed = true)]
            [PXUIField(DisplayName = "Status", Visibility = PXUIVisibility.Visible)]
            [INReceiptStatus.ListAttribute()]
            public string Status { get; set; }
            public abstract class status : PX.Data.BQL.BqlString.Field<status> { }
            #endregion

            #region Hold
            [PXDBBool()]
            [PXUIField(DisplayName = "Hold", Visibility = PXUIVisibility.Visible)]
            public bool? Hold { get; set; }
            public abstract class hold : PX.Data.BQL.BqlBool.Field<hold> { }
            #endregion
        }
     

  2. Add it to your customization project
  3. Publish the customization project

After publishing, you should be able to:

  • Access INReceiptStatus fields in the Report Designer

Tried this method but still have no access to the DAC


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings