Skip to main content
Question

Serial Codes field not populating


Hi guys,

 

I am currently in the need of help to populate a custom field in the SOShipLine DAC that I have created. I want to populate this custom data field called UsrSerialCodes with the values of the Serial/Lot codes displayed per line number. Here is an example of a shipment with 3 entries with 3 different Line Nbrs: 

And here is the different serial nbrs for each line nbr when you go into Line Details

I have populated a list with these serial codes respective of the line nbrs and now I want to populate the data field (UsrSerialCodes) that I created respectively for each LineNbr in the SOShipLine DAC

 

It seems like when I trace log everything, it populates the data field, but doesn’t display the values of the serial codes. It still shows a blank. Here is the code that I am using in the SOShipmentEntry Graph Extension

The overall goal is to transfer the Serial Codes to the ARTran DAC in order to populate them per OrigLineNbr in the so643000 report. 

 

Any help on this matter would be really helpful. 

2 replies

Patrick Chen
Jr Varsity III
Forum|alt.badge.img+2
  • Jr Varsity III
  • 51 replies
  • March 14, 2024

You need to update the cache with the changed line object once you’ve updated the extension field.  Unfortunately, that is not allowed in a RowSelected() event.  I would suggest you take a look at overriding SetShipmentFieldsFromOrder which is called when the Shipment is created.


Patrick Chen wrote:

You need to update the cache with the changed line object once you’ve updated the extension field.  Unfortunately, that is not allowed in a RowSelected() event.  I would suggest you take a look at overriding SetShipmentFieldsFromOrder which is called when the Shipment is created.

I did try this just now and seems like the field is still not populating. Maybe I am missing something, but according to my code the following is done: The list is initialized, the list is populated and then the custom field is updated accordingly and respective to the LineNbr. Here is the code that I currently use: 

 

 


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