Skip to main content
Answer

How to increase the length of Stock Item Description

  • June 12, 2025
  • 4 replies
  • 114 views

FinnSystemAG
Freshman II
Forum|alt.badge.img

Hi guys,

A customer wants to create variants, but their item names are very long because they use the Description Segment Setting and include many attributes, which should also appear in the item names.

Currently, the allowed length for the item description is too short and needs to be extended.

Hope you can help me with this

 

Best answer by Abhishek Niikam

@FinnSystemAG Hello, You can try this it works for me

Add this lines in Change Attribute Section like mentioned in image.

[PXMergeAttributes(Method = MergeMethod.Replace)]
[PXDBString(512, IsUnicode = true)] // Increased from default length
[PXUIField(DisplayName = "Description", Visibility = PXUIVisibility.SelectorVisible)]
[PX.Data.EP.PXFieldDescription]


And Please note that increasing the field length at the DAC level does not automatically alter the SQL table column. You must also update the database column manually.

I hope it helps!
 

4 replies

Manikanta Dhulipudi
Captain II
Forum|alt.badge.img+15

FinnSystemAG
Freshman II
Forum|alt.badge.img
  • Author
  • Freshman II
  • June 12, 2025

In the guide, this is done with a custom field, but in my case, it’s a standard field.

 



 

I published this, but its still not increasing the lenght

 


Forum|alt.badge.img+2

@FinnSystemAG Hello, You can try this it works for me

Add this lines in Change Attribute Section like mentioned in image.

[PXMergeAttributes(Method = MergeMethod.Replace)]
[PXDBString(512, IsUnicode = true)] // Increased from default length
[PXUIField(DisplayName = "Description", Visibility = PXUIVisibility.SelectorVisible)]
[PX.Data.EP.PXFieldDescription]


And Please note that increasing the field length at the DAC level does not automatically alter the SQL table column. You must also update the database column manually.

I hope it helps!
 


FinnSystemAG
Freshman II
Forum|alt.badge.img
  • Author
  • Freshman II
  • June 17, 2025

Thank you guys