Skip to main content
Answer

custom field not populating

  • June 22, 2022
  • 4 replies
  • 270 views

param2022
Jr Varsity II
Forum|alt.badge.img

I have added a custom field it is perfectly able to save the data in my table but when I open that record to edit field is always empty. What am I missing here ?

 

namespace PX.Objects.CR
{
public class CROpportunityExt : PXCacheExtension<PX.Objects.CR.CROpportunity>
{
#region UsrProbability
[PXDBInt]
[PXIntList(
new int[]
{10,20,30,40,50,60,70,80,90,100},
new string[]
{"10%","20%","30%","40%","50%","60%","70%","80%","90%", "100%"})]
[PXUIField(DisplayName = "Probability")]

public virtual int? UsrProbability { get; set; }
public abstract class usrProbability : PX.Data.BQL.BqlInt.Field<usrProbability> { }
#endregion
}
}

 

Best answer by Naveen Boga

Hi, @param2022  The above field should be added in the below Two DAC extensions. Then only it will work.

  1. PX.Objects.CR.CROpportunity
  2. PX.Objects.CR.Standalone.CROpportunity

Refer the below link and it will help you to solve your problem.

https://stackoverflow.com/questions/50880116/custom-field-on-cropportunity-doesnt-display-saved-value-since-upgrading-from-6 

4 replies

Forum|alt.badge.img+1

Hi @param2022

Could you please try to check the Trace Log like the below, It will provide some information.

 

 

Thanks,

Moulali Shaik.


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • Answer
  • June 22, 2022

Hi, @param2022  The above field should be added in the below Two DAC extensions. Then only it will work.

  1. PX.Objects.CR.CROpportunity
  2. PX.Objects.CR.Standalone.CROpportunity

Refer the below link and it will help you to solve your problem.

https://stackoverflow.com/questions/50880116/custom-field-on-cropportunity-doesnt-display-saved-value-since-upgrading-from-6 


param2022
Jr Varsity II
Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • June 22, 2022

@Naveen Boga  I will check it for opportunity.

But I am facing same issues in SOShipment DAC extension. I have added a new tab in Shipment screen.


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • June 22, 2022

Hi Param, The above post subject is related to the CROpportunity, let me know if you have any queries on this?

It would be good if you can create a different post for the Shipment DAC issue, so other people can also review and help you out.