Skip to main content
Solved

Adding field to project quotes

  • November 20, 2023
  • 6 replies
  • 242 views

Hello quite new to acumatica, currently I am trying to add a field onto the Project Quotes screen however the field will not hold any data entered if I save and then leave the page and return to it. Anyone able to help?

Best answer by dcomerford

The PMQuote is a projection of the CRQuote table

You may have noticed when you add the field it added CRQuote and the CR.Standalone.Quote entries under the Data Access Class.

So you will need to change the attributes of your field on the PMQuote to something like (the BqlField is telling it basically where to store the data) 

[PXDBInt(BqlField=typeof(CR.CRQuoteExt.usrXXXX))]

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

6 replies

dcomerford
Captain II
Forum|alt.badge.img+15
  • Captain II
  • 633 replies
  • Answer
  • November 20, 2023

The PMQuote is a projection of the CRQuote table

You may have noticed when you add the field it added CRQuote and the CR.Standalone.Quote entries under the Data Access Class.

So you will need to change the attributes of your field on the PMQuote to something like (the BqlField is telling it basically where to store the data) 

[PXDBInt(BqlField=typeof(CR.CRQuoteExt.usrXXXX))]


  • Freshman II
  • 10 replies
  • March 20, 2025

I had a working set of strings in version 23r2, we upgraded to 24r2 and it no longer saves the data at all.

 

This looks like a similar issue but I have NO idea where to edit these attributes that you speak of.
Any chance to show a screenshot?

I tried doing this after reading the solution but no luck:
 

 


dcomerford
Captain II
Forum|alt.badge.img+15
  • Captain II
  • 633 replies
  • March 20, 2025

@Cecil Change it to usrScope (no capital on the U)


  • Freshman II
  • 10 replies
  • March 20, 2025
dcomerford wrote:

@Cecil Change it to usrScope (no capital on the U)

First thanks for replying to this ancient post! 

I tried with a lowercase u with the same issue. This is a fresh blank install of acumatica in a VM.

The DB shows:

I put the text in there with sql to see if it would load any data into acumatica but it did not.

Still getting the error that the field does not exist in the type CRQuote.
I also tried CR.Standalone.CRQuote with the same result.

Pulling my hair out after this last upgrade, to add insult to injury the same custom fields works perfectly fine in the project after converting from quote. I can add/modify text and its saved with no issue.


dcomerford
Captain II
Forum|alt.badge.img+15
  • Captain II
  • 633 replies
  • March 20, 2025

@Cecil I meant in the attribute just edit it in the screenshot 

[PXDBString(BqlField=typeof(CR.CRQuoteExt.usrScope))], it should then publish


  • Freshman II
  • 10 replies
  • March 20, 2025
dcomerford wrote:

@Cecil I meant in the attribute just edit it in the screenshot 

[PXDBString(BqlField=typeof(CR.CRQuoteExt.usrScope))], it should then publish

Ok I think I got it now.. This saved the data in the database:

 

I had to use PXDBField, instead of PXDBString and It would not work with CR.CRQuoteExt.usrScope

once I remove the CR. at the beginning it was happy.

 

Of course now that it worked once my entire test environment is broken and i cant open the quote screen at all now with: Index was out of range. I hope it's not related but progress nonetheless! 

 


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