Skip to main content
Solved

How to increase the length of Description field for Cross-Reference in StockItem ( Inventory Item Xref)

  • July 8, 2025
  • 4 replies
  • 72 views

FinnSystemAG
Freshman II
Forum|alt.badge.img

Hello Guys,

 

can you help me with increasing the length of Description field for Cross-Reference in StockItem ?

 

I tried to increase the length via Database Scripts (Customization), but it do not work.

 

Hope u can help me. 

Best answer by darylbowman

...but it do not work.

I’m guessing the script DID actually succeed, and this is a necessary part of the change. However, the DAC field will also have a size specified (TranDescLength = 256):

 

You’ll need to create a DAC extension of INItemXRef and override the length, something like this:

public class INItemXRefExt : PXCacheExtension<INItemXRef>
{
#region Descr
[PXRemoveBaseAttribute(typeof(PXDBStringAttribute))]
[PXDBString(1000, IsUnicode = true)]
public virtual string Descr { get; set; }
#endregion
}

 

4 replies

darylbowman
Captain II
Forum|alt.badge.img+15
  • Answer
  • July 8, 2025

...but it do not work.

I’m guessing the script DID actually succeed, and this is a necessary part of the change. However, the DAC field will also have a size specified (TranDescLength = 256):

 

You’ll need to create a DAC extension of INItemXRef and override the length, something like this:

public class INItemXRefExt : PXCacheExtension<INItemXRef>
{
#region Descr
[PXRemoveBaseAttribute(typeof(PXDBStringAttribute))]
[PXDBString(1000, IsUnicode = true)]
public virtual string Descr { get; set; }
#endregion
}

 


Forum|alt.badge.img+2

@FinnSystemAG Hello, May be this post helps you!
 

 


darylbowman
Captain II
Forum|alt.badge.img+15

May be this post helps you!

@Abhishek Niikam - You do realize this is a post from the OP, right?


FinnSystemAG
Freshman II
Forum|alt.badge.img
  • Author
  • Freshman II
  • July 9, 2025

...but it do not work.

I’m guessing the script DID actually succeed, and this is a necessary part of the change. However, the DAC field will also have a size specified (TranDescLength = 256):

 

You’ll need to create a DAC extension of INItemXRef and override the length, something like this:

public class INItemXRefExt : PXCacheExtension<INItemXRef>
{
#region Descr
[PXRemoveBaseAttribute(typeof(PXDBStringAttribute))]
[PXDBString(1000, IsUnicode = true)]
public virtual string Descr { get; set; }
#endregion
}

 

Thank u alot