Solved

DB fields not getting populated in Shipment screen


Userlevel 2
Badge

I have added this tab in shipment screen and I am to able to get the values stored in DB. These are read-only fields.

public class SOShipmentExt : PXCacheExtension<PX.Objects.SO.SOShipment>
{
#region usrMyField
[PXDBString()]
[PXUIField(DisplayName = "My Field", Required = false, Enabled = false)]
public string UsrMyField { get; set; }
public abstract class usrMyField : PX.Data.BQL.BqlString.Field<usrMyField > { }
#endregion
}

 

icon

Best answer by param2022 22 June 2022, 14:15

View original

4 replies

Userlevel 7
Badge +17

@param2022 Great. Thanks for sharing the update. :)

Userlevel 2
Badge

@Naveen Boga 

Issue was with the data member for the form. 

Thanks for help 🙏

Userlevel 2
Badge

@Naveen Boga I got this code from the screen editor VIEW ASPX tab.

<px:PXTabItem Text="Picking">
<Template>
<px:PXLayoutRule runat="server" ID="CstPXLayoutRule1" StartColumn="True" />
<px:PXFormView runat="server" ID="formPicking" DataMember="Picking" Caption="Picking Details">
<Template>
<px:PXLayoutRule runat="server" ID="CstPXLayoutRule4" StartColumn="True" />
<px:PXTextEdit runat="server" ID="CstPXTextEdit17" DataField="UsrMyField" Enabled="False" />
</Template></px:PXFormView></Template></px:PXTabItem>

 

Userlevel 7
Badge +17

Hi Param,  I don’t see any issue in the above DAC field. Can you please check the .aspx/design page, whether PXTextEdit field added?

 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved