Solved

Multiple customizations adding the same filed

  • 19 June 2021
  • 2 replies
  • 18 views

I have a scenario where I have multiple customizations adding different custom fields. In any time unknown number or combination of customizations can be published. Issue is I need to add a common field to a screen that should be available regardless what customizations are published.

<AddItem>
<PXCheckBox TypeFullName="PX.Web.UI.PXCheckBox">
<Prop Key="Virtual:ApplyStylesheetSkin" />
<Prop Key="ID" Value="CstPXCheckBox1" />
<Prop Key="DataField" Value="Usrtest" />
<Prop Key="CommitChanges" Value="True" />
</PXCheckBox>
</AddItem>

<DAC type="PX.Objects.CR.BAccount">
<Field FieldName="Usrtest" TypeName="bool" MapDbTable="BAccount" TextAttributes="#CDATA"
StorageName="AddColumn">
<CDATA name="TextAttributes"><![CDATA[[PXDBBool]
[PXUIField(DisplayName="test")]
]]></CDATA>
</Field>
</DAC>

// and db record

I have set levels for each of my customizations, but when publishing it gives below error.

\App_RuntimeCode\PX_Objects_CR_BAccount_extensions.cs(29): error CS0579: Duplicate 'PXDBBool' attribute
\App_RuntimeCode\PX_Objects_CR_BAccount_extensions.cs(30): error CS0579: Duplicate 'PXUIField' attribute
\App_RuntimeCode\PX_Objects_CR_BAccount_extensions.cs(29): error CS0579: Duplicate 'PXDBBool' attribute

I am quite new to Acumatica, so any possibility I am missing something here, or is there a way we can merge these projects resulting the common field.

Thanks in Advance!!

icon

Best answer by Naveen B 19 June 2021, 18:44

We can not publish the exact duplicate code from multiple packages..

To avoid this issue you can create a separate package and add this common code to that separate package and publish it whatever the customizations you want to publish…

 

Hope this helps!!

View original

2 replies

Userlevel 6
Badge +8

We can not publish the exact duplicate code from multiple packages..

To avoid this issue you can create a separate package and add this common code to that separate package and publish it whatever the customizations you want to publish…

 

Hope this helps!!

Thank you Naveen B for the quick reply.  Will go ahead with a separate package.

 

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 — 2020  Acumatica, Inc. All rights reserved