Prefix in name of entities
hi all,
is it possible to setup thingworx in that way that all entities created by user will have some prefix in name? I have in ming something similar to OIR in Windchill.
thx in advance
hi all,
is it possible to setup thingworx in that way that all entities created by user will have some prefix in name? I have in ming something similar to OIR in Windchill.
thx in advance
Oh, that feature. A bit of a warning - it's a hidden and unsupported feature that was added to the product specifically to address use cases unique to PTC's training environment. This is an environment where hundreds of student-developers follow an exercise, creating entities with the same name and features. The _username was added to avoid naming conflicts. We did not conceive of customers having a need for this.
That said, you can turn this feature on in [tomcat_root]/webapps/Thingworx/config/buildConfig.json.
Add the following to the json file:
"enableEntityUserNameSuffix":true
That will turn on the feature. However, be aware that this feature is quite limited - it only appends _username to entities created using ThingWorx Composer. If you create your entities programmatically using services or import them, the suffix will not be added.
It is also obnoxious when creating users. Most organizations like usernames to be email addresses, and the feature will append _username to the email address... president@whithouse.gov_president is not a good username.
-->Adam
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.