Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
Hello Everyone, I'm working with Windchill 13.0 and need to add a simple action button to the Windchill interface that can call my custom API functions. Here’s what I want to achieve:1) Add a button to the Windchill UI.2) When the button is clicked, it should trigger a JavaScript function that calls a Windchill OData API.Here’s an example of the API function I want to call(will be using a java version of this function): async function getParts() {const apiUrl = "http://windchill.gosaas.io:80/Windchill/servlet/odata/v6/ProdMgmt/Parts?$count=false";const username = "ahsan";const password = "Tartan123";const basicAuth = 'Basic ' + btoa(username + ':' + password);try {const response = await fetch(apiUrl, {method: 'GET',headers: {'Authorization': basicAuth,'Content-Type': 'application/json','Accept': 'application/json'}});if (!response.ok) {throw new Error(`HTTP error! status: ${response.status}`);}const data = await response.json();return data;} catch (error) {console.error(
Version: Windchill 13.0 Use Case: A checked-in CAD document in Windchill not retrieved using the ODATA REST API.Description: Hi,I'm new to the REST API and I'm trying to get a checked-in CAD file using the ODATA REST API.I'm using the swagger interface: The Get Documents method in the CAD Documents section, but all I get in the JSON response are the template files and not the file that I checked in.Why can this happen and how can I fix it?Thanks!
Hi, to execute jasper report from input jsp page I am using the following API- ReportHelper.manager.getThirdPartyReportExecuteUrl(reportRef,parameters); Here, the reportRef should be of type ObjectReference and should refer to a Windchill report object. However the object that I get from the jsp page using the request.getParameter("oid") is of type WTDocument. Now, when I try to send this object in the above API , it gives the error-java.lang.ClassCastException: class wt.doc.WTDocument cannot be cast to class com.ptc.windchill.enterprise.report.Report (wt.doc.WTDocument and com.ptc.windchill.enterprise.report.Report are in unnamed module of loader 'app') Kindly suggest on how to resolve this.Thanks,Ramsha
Hello, for one of my customers I've created a wizard step with some change validation info.the data is arranged in a flat tree structure which is displayed in the treetable component.See attached example screenshot.One requirement is that non "green" checks are auto expanded for the user. I tried to implement it as described in the customizers guide, but so far no luck. The TreeTable component uses a custom AbstractConfigurableTableBuilder with an custom ExpansionStateManagerthe table config looks like this JcaTreeConfig treeCfg = (JcaTreeConfig) factory.newTreeConfig(); treeCfg.setDataSourceMode(DataSourceMode.DISABLED); treeCfg.setType(Object.class.getName()); treeCfg.setTargetObject("origObject"); treeCfg.setComponentMode(ComponentMode.VIEW); treeCfg.setActionModel("tcw tcwValidation table"); //treeCfg.setMenubarName("tcw tcwValidation table"); treeCfg.setId(TCW_TCWVALIDATION_TABLE_ID); treeCfg.setLabel(WTMessage.getLocalizedMessage(TCW_RESO
My requirement is to search the user from Workflow Task > Resource pool .ResourcePool for a specific Task has the role and Groups Mapped . I need to Search the user by UserName in groups only that are allocated to the Resource Pool for that Workflow Task .I could find the Users and return the List of Users from The Context team and specific Role . However , Challenge comes , when user had to search for a User which is not a member of Group .Is there any API , I can Use to find the users that are member of Groups added to Resource pool? My action call is from ThingWorx and I need to create an WebService , which returns the user only if Present in Resource pool
Has anyone (with limited or no customization), came up with a way to limit the type of a process object to select based on the base object type? The use case I am investigating is this: Subtype of Change Review (called Milestone Review). I want users to create Problem Reports against the review to document issues found while completing the review using a subtype of a PR (Review Finding). Ideally, even from the Action menu I would like the selection to be "New Review Finding" instead of "New Problem Report" when being created against the "Milestone Review" subtype. Alternatively, when "New Problem Report" is selected, I would like it to default to "Review Finding" as the subtype in the New PR wizard
Currently, I've setup a basic document approval workflow in Windchill where the first task is to submit the document for approval and 'set up participants' of who to approve. Is there a way require that users actually 'set up participants' into the various roles? The set up participants is on a separate tab and it's easy for users to click submit without assigning anyone to the roles. Using Windchill 11.0 M030.
Version: Windchill 12.0 Use Case: fetching wrs data from navigate Description: In Master BOM in windchill, Customer have added new type of parts and its engineering sequence in new column. Iam getting those new parts in getPartStructure API. But i want the new column 'engineering sequence' data for new parts. How to fetch it using WRS API.
Version: Windchill 12.1 Use Case: I have created Family instances in solid works and I associated those instance to WTparts. I am able retrieve all the parts, associated cad Documents and instances. I have added all the objects to workspace. Now I wanted to add the generic part of those instances to workspace . Can you help to add the generic part of those instances to workspace.Description: This is the code i am using to retrieve all the parts, associate cad documents and ins tances. Now i wanted to retrieve the generic parts and add it to workspace private void updateChildParts(WTPart parentPart) throws WTException, WTPropertyVetoException {System.out.println("Updating child parts for:Raghu " + parentPart.getNumber());QueryResult partUsageLinks = WTPartHelper.service.getUsesWTPartMasters(parentPart);while (partUsageLinks.hasMoreElements()) {WTPartUsageLink usageLink = (WTPartUsageLink) partUsageLinks.nextElement();WTPartMaster partMaster = (WTPartMaster) usageLink.ge
I need a variable to be evaluated inside Assigned Activity node (JSP didn't work either), so I can send information through the mail bot. Workflow Template: Variables: Workflow Expression node: Workflow Assigned Activity node: BackgroundMethodServer logs: 2024-06-21 09:11:07,313 INFO [WfUserWorkQueue.PoolQueueThread-9] wt.system.out wcadmin - *************Found 2 objects in this promotion************* Objects undergoing promotion are <table><thead><tr style="background-color:yellow; font-weight:bold;"><td style="padding:5px; border:.5px solid black;">Promoted Items</td><td style="padding:5px; border:1px solid black; text-align:center;">Version</td></tr></thead><tbody><tr><td style="padding:5px; border:1px solid black;">10100184.prt</td><td style="padding:5px; border:1px solid black; text-align:center;">A00</td></tr><tbody><tr><td style
Hello,Is it possible to increase string length of global attributes to 5000 characters. windchill provides 2000 max character limit as OOTB.client want to increase that string length to max 5000 characters. is it possible?Is it possible by little configuration or need more customization? if need what type of configuration, please provide?
By default at time of import the product template through UI it will call ImportContainerTemplateFormProcessor.java. So i am trying load the template through automatically, i wrote a code it will fetch the .zip after that it has to call ImportContainerTemplateFormProcessor.java with the .zip file paramater. this is the code.note : i am unable to pass the .zip file import com.ptc.core.components.beans.ObjectBean;import com.ptc.core.components.forms.FormProcessingStatus;import com.ptc.core.components.forms.FormResult;import com.ptc.netmarkets.util.beans.NmCommandBean;import com.ptc.windchill.principal.template.processor.ImportContainerTemplateFormProcessor;import wt.log4j.LogR;import wt.util.WTException;import org.apache.logging.log4j.Logger; import java.io.File;import java.util.HashMap;import java.util.List;import java.util.ArrayList;public class CustomTemplateImporter {private static final Logger log = LogR.getLogger(CustomTemplateImporter.class.ge
As per the original post. Hi @Manoj_Dokku4 , @HelesicPetr how can we get Affected End Item of Affected Objects??
Version: Windchill 12.1 Use Case: Requirement 1) Want to fetch change summary details like On Order, Work-in-Process, Finished, etc. Requirement 2) How to get Release Target or Change Transition details for ObjectsDescription: I don't know actually how to use :1) wt.change2.ChangeRecord2 record = (wt.change2.ChangeRecord2)2) wt.lifecycle.Transition
is there any Api to create Change task template throw code in change notice.
Hi @BjoernRueegg In reference of a discussion in old topic How can we get affected end item of affected objects through API
Hi,I have soft attributes defined on the WTPart and I would like to retrieve their values. But going through REST Guides and browsing and searching through PTC support site I did not fine single example how to accomplish that. Am I missing something or REST query cannot be used to retrieve soft type attributes? Does any body have any suggestion?
is there any api to create deliverable by code in a plan for an Activity.
Version: Windchill 11.1 Use Case: I would like to reorder the Target Promotion state in the drop down list being shown for a New Promotion Request to match the order in the Life Cycle Template.Description: I have added custom states to our windchill install.This is the order of the states in the life cycle templateThis is the order they are showing up in the New Promotion Request drop down listHow do you change the order in the drop down list to match the Life Cycle Template?I would like the drop down list to read as the following: In DevelopmentProvenReleasedObsolete Thanks for any help you may provide,Don A
Hello together,I struggle with the following topic: I created the child change request Standard Change Request (SCR) out of the parent Change Request (CR).Now I want to have an individual order of the sections on the Details tab like Affected Objects, Attachments, Associated Process Objects, etc for the SCR. And no I don't mean the attributes layout.I already found the current action model, which is used for all the change request types: changeRequestInfoPageTabSetAnd also the section in the ChangeManagement-actionModels.xmlBut when I make changes here, it will be changed for the parent Change Request and also all child objects. I would suggest the next steps for the SCR are to create1. a action model name="standardChangeRequestDetailsTab" for the order of the single elements2. a action model name="standardChangeRequestInfoPageTabSet" for the different tabs But how do I link now the new created standardChangeRequestInfoPageTabSet with the actual
Reference topic Is it possible to exceed limit from UI ?
I have created the variable and check box is appearing as expected in the task page. there is this requirement wherethere are 2 routing options, out of which for "Completed" routing option once selected it should not complete the task after clicking "Complete task" button until and unless the check box is selected. but where as the "Return_to_project_owner" routing option once selected even if the check box is not selected it should be allowed to complete the task. till now I have this code in handy , which will not allow until the check box is selected but i wanted with routing option conditionpublic static Object[] criticalitytraceabilitycheck(Object result, boolean Criticalitycheck) throws Exception {System.out.println("Enter WFT_PolEntChangeActivity.criticalitycheck --> ");if (Criticalitycheck == false){result = false;String msg = "To complete the task, Please select check box";java.lang.Exception exp = new java.lang.Exception(msg);throw exp;}else {result
I have a list of WT-parts which were already classified with a node. If I want to change the node with a loader spreadsheet file, it is easy as we can simply change the classification name. But if I want to remove the classification of those WT-Parts using Loader spreadsheet file, how can I do it. Keeping classification column as empty is not working. We can do it one by one manually as checking out, modify and checking in. But I have a lot of parts like that, I want to do it by Import from spreadsheet method.
: How can we get Affected End Items of Affected Objects of Service Change request and add in Affected End Items table of SCR through API
Version: Windchill 12.0 Use Case: Hello, I am trying to open the overview of the Product Management Domain in the Windchill Rest Service Section for version 3, 4 and 5. Description: In this section it shows API versions 1 to 5, but only V1 and V2 work and display information when clicking those. When selecting API version V3, V4 or V5 in the Product management domain in the WRS I get an error (NullPointerException). However, all other versions of all other domains work without any issues. Does anyone know what the problem could be? Thanks and best regards
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.