Skip to main content

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"><!!CDATAA[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!!

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