Skip to main content
Answer

Unable to set the current screen Field value to another table field

  • July 6, 2022
  • 2 replies
  • 162 views

Forum|alt.badge.img

Hi All ,

 I’m unable to insert the ScheduleID in Child table Column ,because it is integer type storing the integer Default  value(-2147483647).Not storing actual value. How to insert FSContractSchedule.scheduleID

field into Child table (SSPFSScheduleInsp.scheduleID).

can you plz help me in this..!

this is my DAC

#region ScheduleID         [PXDBInt(IsKey = true, MinValue = 1, MaxValue = 999999)]         [PXUIField(DisplayName = "Schedule ID")]         [PXDefault(typeof(FSContractSchedule.scheduleID.FromCurrent))]         public virtual int? ScheduleID { get; set; }         public abstract class scheduleID : PX.Data.BQL.BqlInt.Field<scheduleID> { }         #endregion.

but it is storing like this in my table

 

 

Thanks…!

 

Best answer by Naveen Boga

Hi @NageswaraRaoAddanki60  You should use the PXDBDefault() attribute along with PXParent in such cases.

Please find the example at below link with Parent and Child DACs

https://stackoverflow.com/questions/44880330/save-parent-child

2 replies

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

Hi @NageswaraRaoAddanki60  You should use the PXDBDefault() attribute along with PXParent in such cases.

Please find the example at below link with Parent and Child DACs

https://stackoverflow.com/questions/44880330/save-parent-child


Forum|alt.badge.img

Thanks @Naveen Boga I achieved.

you are awesome man 😊.