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.
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
}
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.