Skip to main content
1-Visitor
Sep 24, 2014 7:01 PM UTC
Question

Increase custom attribute string length

Is it possible to increase the string length of custom attributes? I am using a custom attribute to list all of the item numbers associated with that particular document to make it searchable. The max string length is 500 which is too short for some of the documents we have. Is it possible to increase this to 2000 - 2500?

6 replies

MarcoTosin
21-Topaz II
Sep 25, 2014 8:00 AM UTC

Chris,

increasing the string lenght is possible, but with two limits.

Both are depending on the limit of Oracle table.

I don't remember tha maximum lenght we set (our consultant in fact), but I think is 2000, and if this value is the maximum you can set.

This limit is still theoretical, beacause of the Unicode mode.

Real limit for the user is about 1500 instead of 2000 we set in Oracle.

Marco

Translate
Marco
15-Moonstone
Sep 25, 2014 4:42 PM UTC

We evaluated increasing character limits for Global Attributes couple of weeks ago. The tech support and PTC R&D mentioned that we have to have InfoModeler Module installed for this function to work.

In reality it is not true, we do not own a license for Infomodeler and we could increase Global attributes length on one of the test server. PTC Tech support also confirmed that InfoModeler is not needed, but reaffirmed that PTC R&D thinks that it is a required module to increase the char limit.

So I am not sure why we require Infomodeler when we could execute without Infomodeler. It does not make sense to me.

Marco : Did you implement this with InfoModeler in place?

thanks,

Preeti

Translate
1-Visitor
Oct 18, 2019 10:22 PM UTC

You don't need Information Modeler for increasing global attribute length. This will increase length of the variable on all the global attributes.

 

If you have a custom attribute, then you need an information modeler.  ( I think) 

Translate
12-Amethyst
Sep 25, 2014 9:43 AM UTC

Hi Chris,

Below is the article about how to increase.

https://support.ptc.com/appserver/cs/view/solution.jsp?source=subscription&n=CS94753

Regards,

Kaushik

Translate
MSC121-VisitorAuthor
1-Visitor
Sep 25, 2014 12:52 PM UTC

Thanks for the reply from both of you. I saw that article before but it says that it only applies to PDMLink and FlexPLM. Unfortunately our company has Essentials so I don't think that article will work.

Translate
17-Peridot
Oct 21, 2019 8:12 AM UTC

Hi

What do you mean with custom-attributes? You mean the standard local attributes which are added with the addcolumns utility?

If so, you need to define a xconf property e.g. and add the size to each modelled class.

 

<Property name="com.ptc.core.lwc.string.ColumnSizes" overridable="true" targetFile="codebase/wt.properties" value="wt.part.WTPart=3000:wt.doc.WTDocument=2000"/>

 

 

And than you need to rerun the addcolumns utility:

 

AddColumns wt.part.WTPart -stringSize

 

 

Translate