Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
Usecase: I have an MVC Table like following: Is there a way to implement a Javascript function that calls an Action on doubleclicking a row in the first column. It should call the same Action like the following one: Thanks Alex
Hello everyone! I try to execute a post request, but get this error: {"error": {"code": "INVALID_NONCE","message":"A potential security problem was detected. Refresh the page and try again. If the problem persists, contact your administrator." } } I found this article: https://www.ptc.com/en/support/article/CS312447 It says that a token is needed, but I already added it and still does not work. Here is the request that I execute to get the token: http://server/Windchill/servlet/odata/PTC/GetCSRFToken() Here is my code for the post request: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.Reader; import java.io.UnsupportedEncodingException; import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import org.apache.http.HttpEntity; import org.apache.http.auth.AuthenticationException; import org.apache.http.auth.UsernamePasswordCredentials; import org.apache.http.client.ClientPro
Hello everyone! I get information from the server using the OData REST API.I have a global attribute, which is a collection: I want the server to return only one value from the collection when requested. In the request, I want to specify a value that will determine the desired collection value. I understand that such logic can not be written in the request. Therefore, I tried to implement this in the JavaScript domain file. I thought that it should be a function that first receives the values of the collection attributes from Windchill, matches them, and then uses the value passed to the function as a key and returns the desired value. I saw that in JavaScript you can use classes from Java: var EntityAttribute = Java.type('com.ptc.odata.core.entity.property.EntityAttribute'); But I do not know how to use the code to get the values of global attributes. I did not find documentation for odataWeb.jar (com.ptc.odata...) library.Tell me, please, how can I do this?Thank yo
Hello everyone! I tried to get the values of global attributes through RMI, I could not do it.Tell me, please, how can I do it?Are there other ways in java to do it?For example, through the odataWeb.jar library classes?Thanks in advance! Respectfully!
We have family tables stored in a read-only product. When the family tables are updated, they're moved from the read-only product to one with write access. The family tables can then be checked out, updated, checked back in, and moved back to the read-only product. Moving the family table along with its instances facilitates the publishing of every version of every instance. This creates thousands of unnecessary items being sent to the publisher. How do I configure the publishing rules in the Worker Agent to prohibit this behavior?
Hello everyone! Please tell me the differences between Info * Engine and OData REST API.Which technology should be chosen and which one has great prospects? Thanks in advance! Best Regards!
Could anyone post a walkthrough on how to set up VS Code for Windchill customization/tailoring?
Hello everyone! Please tell me how can I get the values of global attributes in a WTDocument using OData? Version of Windchill REST Services - 1.4. Now I can only get attributes such as number and name. Thanks in advance. Regards!
Hello folks, I'm trying to get the AfterLoader set up... when following the instructions for running the following javac -classpath %CLASSPATH%;%WT_HOME%\srclib\tool\Annotations.jar -d %wt_home%\codebase AfterEDRloader.java i get a invalid flag error... I'm a touch new... I don't think there are environment variables set on my install. What would my %CLASSPATH% be set to? Thanks for any help.
I am working with Windchill 10.2 currently and the question has come up about folder permissions. What we would like to do is create a top level product container and create folders for various groups within that container. These groups are to be kept separate from each other, meaning each group will have access to their own folder but not have access to the other folders in the container. With that being said, can we control the permissions at the folder level or will we need to create a separate container for each group? Thank you in advance for your time and have a good one.
Hello, I am building a utility which will give me the list of child part numbers as an output for a given part number and I want to expose this utility using Rest API so that the users can execute this utility themselves. I have followed the below steps to get the utility in Swagger UI but I am not able to see the added entry. i) Added the below entry in rest.properties.xconf <Property name="ext.webservices.rest.test.resources" multivalued="," default="ext.webservices.rest.test.TestUtility"/> ii) Written a java file. PFA. Please let me know if there is any other step I need to follow to achieve the expected result. Thanks in advance. Regards, Hari R
Hello, I want to know how we can implement listeners in Windchill. I have never worked on listeners, so please guide me to a proper article to implement it from the scratch. Thanks in advance. Regards, Hari R
I am looking to add some additional actions to a Configurable Links table, specifically I would like to add the submodel for export to give the user the ability to export the table to an excel spreadsheet. I've added the export submodel to the table in custom actionmodel and this does not work. I opened up a support ticket for this issue and the answered that I received is listed below. Has anybody been able to find a way around this limitation? I have set up server and install Configurable Links. I have tried to adding export actions (export to excel ,export to File etc) however it does not work. Also, tried with adding submodel but still that fails as configurable Table toolbar action is controlled by “ConfigurableLinkTableToolbarActionCommandDelegate”. Article : CS237601 for reference. This seems to limitation of this delegate class which will not allow submodel or actions governed by submodel; however it may work for few other ootb or custom action
Hello,Can anyone help on how to add the default project attribute "Number" in the Title of the Project that by default shows only the Object type and the Name?See the picture below:Thank you in advance.RegardsJohn
Hello, I have created a new custom table in SQL server to which I should populate certain data through code. I have written the sql query in code for that, I need to know how I can execute the query so that I can see the entry getting reflected in the database. Please let me know how I should proceed. Thanks and Regards, Hari R
For a few workflows I've created methods to set an object's attribute (one for String, one for TimeStamps) which have worked great over the past few years. I have a new requirement to set an int's value. I created a new method and changed the input attribute to accept an int. When I call the method, i get an odd error telling me I've violated the limit constraint. The value I'm sending is 2 which should not cause any issues. wt.system.err Administrator - com.ptc.core.meta.container.common.ConstraintException: The value for Number Of Cavities must be between -9,223,372,036,854,775,808 and 9,223,372,036,854,775,807, inclusive. The method i have is the following public static void setAttributeValue(WTObject pbo, String IBAName,int IBAValue) { PersistableAdapter obj; try { obj = new PersistableAdapter(pbo, null,Locale.US, new UpdateOperationIdentifier()); obj.load(IBAName); System.out.println("Attribute " + IBAName + " value is " + IBAValue); obj.set(IBAName,
Hi, I have a list of parts and I want to get WhereUsed objects of them. As the data is very big , its taking too long time. so I want to implement multi threading . This is my code : for(WTPart part:setofparts) { /*ArrayList<Object> objectsList=new ArrayList<>(); objectsList.add(new HashSet<String>()); objectsList.add(new HashSet<String>()); objectsList.add(new ArrayList<String>()); getPartStructure(part, objectsList); dataMap.put(part, objectsList);*/ } private static ArrayList<Object> getPartStructure(WTPart part,ArrayList<Object> objectList ) { try { ArrayList<String> set=new ArrayList<&
Hello, Just wanted to know if PTC Integrity client a different product from Windchill RV&S or is it the part of it? Can I get some information this topic please. Thanks in advance.
Hello, please tell me how to use Info*Engine to output (get) all the "Describes Parts" that are located on the "Related objects" tab of the document (WTDocument) ?
Is there a way to disable the authentication for a single endpoint (custom JSP).
Hello everyone, please tell me how to upload a file to WTDocument using Info*Engine?Or how to use java to create a document and upload a file to it?
Hello All, We have one functionality "Part Number Generator" in Customization tab which helps the users to have a certain set of part numbers in store for them if they want to create new WTParts. Now I want to restrict certain users from using this functionality, either hide the functionality or disable the option. Please instruct me on how to proceed. P.S: I have done customization in Java code but not so much with the jsp and js and all. Thanks and Regards, Hari R
Hello, I want to know the feasibility of doing export/import classification through code. Please let me know if it is possible to do the same, if so please direct me to a related article. Thanks in advance. Regards, Hari R
Hi, I have created a file /opt/ptc/Windchill_11.0/Windchill/tasks/ext/re/report/SB_Report/SB_SubjectReport.xmlthe created Delegate*Name :SB_SBNumber *Repository Type :com.ptc.windchill Type Identifier : com.ptc.windchill.enterprise.report.ReportTask *Source URL :/ext/re/report/SB_Report/SB_SubjectReport.xml Description :Report Task Example to show number of document. executed commands from windchill shell,java com.ptc.windchill.enterprise.report.ReportHelper updatemodel andwindchill com.ptc.windchill.enterprise.report.ReportHelper modelupdate Restarted Cognos.Still can't find Data Source in cognos under "com.ptc.windchill.enterprise.report.ReportTask"What is missing ? Initially I just want to pass a hardcored value. XML Data <%@page language="java" session="false" access="http|soap"%><%@taglib uri="http://www.ptc.com/infoengine/taglib/core" prefix="ie"%>
Hello all. I hope all of you are great Anyone of you know how to select the workflow for the Change Notice depending on the file type. For example I want to use a custom Change notice workflow for the CAD files and also that the change notice workflow for a document file (like a MS Word) use another workflow when the user hit the Create new Change notice option.” In summary: Different workflows for different files types when a Change Notice is created. Thanks in advance.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.