Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
Version: Windchill 11.2 Use Case: I would like to perform windchill query spec for the following statementSELECT NAME FROM SUBFOLDER WHERE ida3containerreference=80556; below is my code:public class qeurytest { public static void showFolder() throws WTException { QuerySpec qs=new QuerySpec(); qs.setAdvancedQueryEnabled(true); int foldertable=qs.appendClassList(wt.folder.SubFolder.class, false); ClassAttribute ca1 = newClassAttribute(SubFolder.class,SubFolder.NAME); qs.appendSelect(ca1, new int[] {foldertable}, true); SearchCondition sc= new SearchCondition(SubFolder.class,SubFolder.CONTAINER_ID,SearchCondition.EQUAL,"80556"); qs.appendWhere(sc,new int[] {foldertable}); System.out.println("Printing the queryspec of class --> " + qs); }Description: I am facing an error : Attribute "containerReference.key.id" of class "java.lang.Long" is not of type "java.lang.String"why is this error coming up and what would be the windchill que
Version: Windchill 12.1 Use Case: Created a custom user picker utility, and a global reusable attribute of String type. Then, created an IBA on Problem Report.Description: How can I get rid of the find icon next to textbox? In my usecase, the IBA should not be editable from this VIEW mode. It should be changed only in CREATE/EDIT mode.Can I get a link of the user? rather than just the full name. (exactly like created by/modified by attribute on most objects)
I implemented a custom user picker utility.When searched on full name and selecting the user from the result, it gives some kind of internal ID in the display instead of full nameIt gives the right result(last name, first name) when the username is used to search rather than full name.
I am currently working on a project that utilizes several Generic Web Service SOAP methods. I am interested in exploring whether these methods are also available in the Windchill out-of-the-box REST Web Service.Specifically, I would like to:Obtain detailed information about the available REST endpoints in Windchill REST Services.Check the Generic Web Service to see if the same methods used in my SOAP implementation are available in the REST service.I have already reviewed the article available at (https://www.ptc.com/en/support/article/CS254366) but found it difficult to understand. My primary concern is to determine the existence of certain generic methods in the REST service.Could you please provide guidance on how to access the Windchill REST Services catalog and any relevant documentation or resources? Additionally, if there are specific configuration steps required to enable or view these REST endpoints, I would appreciate detailed instructions.Thank you for your assistance.Best r
Version: Windchill 12.1 Hello,I am creating an object with a problem report subtype using an expression robot within a Windchill workflow. There are some cascading rules defined in the created problem report based on the Role value. For example, when the Role value is set to Software Quality Engineer, attributes X, Y, Z, A, and BC should be hidden. However, even though I set the Role value to Software Quality Engineer while creating the object, the cascading rules do not apply during the object creation, and all attributes are visible on the info page after the object is created. The cascading rules only work on the Edit page, but even if the object is edited in this way, the info page is not updated. How can I resolve this issue? I am eagerly awaiting your suggestions. @HelesicPetr Additionally, the default values for the attributes are not appearing in the object I created with the code below. The info page is completely empty, showing only the attribute names.&n
Version: Windchill 12.0 Use Case: In a workflow, for a notify by email task, there are two OOTB templates available: NotificationRobot and NotificationRobotPlain. How do I add another?Description: Is there a resource bundle in the codebase that generates this dropdown list? I found the html files to edit both of the templates in codebase/templates/workNotification. Should I be making a new file in this folder then somewhere else add a template name to the list and reference the new file?
Version: Windchill 12.0 Hello, In Windchill, I am creating an automatic promotion request at the end of the change review process with the following code. However, I have two questions that I couldn't resolve.Question: I have defined a boolean variable "Should automatic promotion request be initiated?" within the activity at the approval stage for the automatic promotion request code. I want the code below to execute if this variable is true; otherwise, it should not execute. How can I achieve this?Question: I want the person in the submitter role who initiated the change review process to be assigned as the "created by" for the promotion request. These questions might be simple, but I haven't been able to find a solution."Code to Automatically Create Promotion Requests for Documents in Change Review"wt.pom.Transaction trx = new wt.pom.Transaction();wt.change2.WTChangeReview changeReview = (wt.change2.WTChangeReview) primaryBusinessObject;// ChangeReview nesnesinden kapsayıcı
Version: Windchill 12.0 Use Case: i was using allversionsfrom(Versioned versioned) to fetch the all versions as to first record version. But for alphabetic version like AA AB im not getting the previous version, please assistDescription: i was using allversionsfrom(Versioned versioned) to fetch the all versions as to first record version. But for alphabetic version like AA AB im not getting the previous version, please assist
Version: Windchill 12.0 Use Case: My scheduled report executed and send the mail by data monitor, The mail subject and body have looks like not properly.Description: My scheduled report executed and send the mail by data monitor, The mail subject and body have looks like not properly. Can be able to change the subject and email body.
I am using Windchill PDMLink Release 11.1 and Datecode with CPS M010 Using the API of "SessionHelper.manager.setAdministrator", you can use "wt.vc.wip.WorkInProgressHelper.service.undoCheckout", "ChangeHelper2.service.unattachChangeable", " VersionControlHelper.service.deleteIterations" API is executed, \nI would like to get an error if I set the permission to "Deny" in policy management, but it does not result in an error. \nCan I change the policy management so that it fails? ------------------------------------------- Translated text from Japanese to English using PTC translate tool Body: SessionHelper.manager.setAdministrator」のAPIを使い管理者にて、「wt.vc.wip.WorkInProgressHelper.service.undoCheckout」「ChangeHelper2.service.unattachChangeable」、「VersionControlHelper.service.deleteIterations」のAPIを実行させた際に、 ポリシー管理で権限を「拒否」にすればエラーとなるようにしたいのですが、エラーになりません。 ポリシー管理を変更して、エラーにする方法をできますか? --By Community Moderation Team -------------------------------------------
I followed the instructions in the below-mentioned article but I'm unable to get work on this Article Number: CS144852Article - CS144852 - How to make one attribute have its values driven by another attribute on the object's Create Wizard in Windchill PDMLink (ptc.com) This requirement can be met via the cascading attribute, but we need this functionality through customization. I also refer one community post.Solved: Re: Adding javascript validation using DataUtiliti... - PTC Community The java script & data utility is not working. Kindly help us on this requirement for Windchill 12.0 & 12.1
We are upgrading from Windchill PDMLink 12.0.2.17 ro 13.0.2.0 and during the compilation of our Java customizations we get these errors:com.thoughtworks.xstream does not existXStream library dependencies removed in Windchill 12.1+See: https://www.ptc.com/en/support/article/CS386935 javax.ws.rs does not exist:Running: windchill wt.util.jmx.Which javax/ws/rs/coreWC12 - URL: jar:file:/has/fs01/opt/ptc/windchill/codebase/WEB-INF/lib/wc3rdpartylibs.jar!/javax/ws/rs/coreWC13 - Resource not foundjavax.servlet does not exist:Running: windchill wt.util.jmx.Which javax/servletWC12 - URL: jar:file:/has/fs01/opt/ptc/windchill/codebase/WEB-INF/lib/ie3rdpartylibs.jar!/javax/servlet/andURL: jar:file:/has/fs01/opt/ptc/windchill/lib/servlet.jar!/javax/servletWC13 - Resource not foundHas anyone else stumbled upon this and was able to fix it?
I wanted to add an validator for the resulting objects table, If release target is empty it should throw an warning to the user. For this scenario I tried extending AffectedAndResultingItemsFormDelegate and ChangeTaskResultingItemsFormDelegate and overriding it's methods to just print dummy statements, it doesn't work for both delegates. Thanks in advance
Is there any API to get Synchronized Version from Source and Image table of related objects tab
Hi , Thanks for the above posting, It works for me. But my requirement is to get the response payload as an collection Arary Can you please suggest the changes that i'll have to do to get an array response as given below Response Payload: -------------------------- "value":[ { "key1":"Test Part", "ChildObjects": [ { "key":"OR:wt.part.WTPart: 1234", "value":" TEST 1234-A " }, &
Hello Everyone,I am trying to extract the BOM of an assembly in windchill through REST APIs. However, since I am unfamiliar with what attributes to pass in the body of this post request, im running into error 400s.Here's what I have done so far:I have the following assembly item: { "CreatedOn": "2024-06-13T02:09:02+05:00", "ID": "OR:wt.part.WTPart:112282", "LastModified": "2024-06-13T02:09:02+05:00", "AlternateNumber": null, "AssemblyMode": { "Value": "separable", "Display": "Separable" }, "BOMType": null, "CabinetName": "Default", "ChangeStatus": null, "CheckOutStatus": "", "CheckoutState": "Checked in", "Comments": null, "ConfigurableModule": { "Value": "standard", "Display": "No" }, "CreatedBy": "ahsan", "DefaultTraceCode": { "Value": "0", "Display": "Untraced" }, "DefaultUnit": { "Value": "ea", "Display": "each" }, "EndItem": false, "FolderLocation": "/GOLF_CART/Design", "FolderName": "Design", "GatheringPart": false, "GeneralStatus": null, "Identity": "Part - GC00000
I created the attribute called customer name inside the WTDocument. the value of the attribute should be updated once the activity get completed. i wanted to add the dropdown list inside the workflow activity task page, It contains some customer names like A, B C, D based on the selection of the user from the dropdown list it should be persist into the customer name attribute.please help me to solve this. if some have any code snippet please share.
Version: Windchill 13.0 Use Case: I've created a first version of a project that uses the Windchill API to export a .pdf file from a .drw using this URI: /Windchill/servlet/odata/v3/CADDocumentMgmt/CADDocuments('OR:wt.epm.EPMDocument:201731655')/Representations EPMDocument:201731655 was known previously.Description: Is there a way to retrieve a list of all EPMDocument (only .drw ones) versus Drawing Numbers? I am asking it because I need to generate .pdfs from .dwgs in batches.
Version: Windchill Below 11.0 Use Case: Create Problem Report > Add affected objects(add more objects) > add comment to each affected object > Click on Finish to create the PR. Issue is not with 1 or 2 affected objects. When we have more number of object in affected object tab, then the issue reproduces with comment missing for few object in list.Description: Navigate to Product, select more objects(selected 35 objects), add comment for all and create Problem Report. Once the PR is created, go to related objects tab, and check the list. For some affected objects, the comment is missing in the table. Refer screenshot. Got the PTC article, https://www.ptc.com/en/support/article/CS346216 As mentioned in PTC article, checked the custom-action.xml file, for create PR action.<action name="create" uicomponent="CREATE_PROBLEMREPORT" ajax="page" afterJS="PTC.wizard.saveTableData.writeAllTableRows"><command class="ext.thales.palma.change.nc.forms.CreatePalma
Version: Windchill 12.1 Use Case: (1) Manually update option set-related information based on BOM information defined in other systems. However, this is not a realistic answer considering the frequency and accuracy of data updates. (2) Implement by customization by Info*Engine. However, it is necessary to use unsupported option set related classes. Since classes related to option sets are not supported, there is a possibility that the functionality will be removed when Windchill is updated. TMC(Toyota Morter Corp.) is in the process of implementing Windchill BOM (EBOM/MBOM/BOP) for production use in April 2025. Currently, TMC designers are using "TMC's own system" to perform tasks equivalent to "defining BOM information. The TMC designers are currently using "TMC's own system" to perform tasks equivalent to "defining BOM information. In the future, TMC plans to use Windchill to define BOM information. However, due to the business process changes involved, this is not expected to
Hi,The use case is customer wants to hide all the previous versions/revisions of WTPart for user allocated to a particular role. i.e. Just latest revision should be visible to user in specific role.Is there a way we can try to achieve this.Any reference would be appriciated. Regards,Durga.
Version: Windchill 12.1 Use Case: I want to created a custom JSP page for workflow task. please share any details how to achiveDescription: I want to created a custom JSP page for workflow task.please share any details how to achive
I am using Windchill PDMLink Release 10.1 and Datecode with CPS M010 Due to business needs, we customized a button to rename documents. In the code logic called by this button, we temporarily set the session user as an administrator through SessionHelper.manager.setAdministrator, and then execute the renaming API - WTDocumentHelper.service.changeWTDocumentMasterIdentity, but the code execution reports a permission error.According to our understanding, the administrator should have the authority to rename the document. So we are very confused, can you help us solve this problem? Thank youHere are the errors that I faced 2024-06-24 10:23:13,314 INFO [ajp-bio-8010-exec-1] wt.system.out user2 - CommonUtil.java.3163: 重命名失败!Message: Resource bundle/Message key = wt.vc.vcResource/55 2024-06-24 10:23:13,325 INFO [ajp-bio-8010-exec-1] wt.system.err user2 - (wt.vc.vcResource/55) wt.vc.VersionControlException: H-ZJ-188, JSZJ_00087886 可能不允许更改其标识。只有当此项未被检出并且您具有所有版本的 修改 权限时,才可以
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.