Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
I am using Windchill PDMLink Release 12.1 and Datecode with CPS 12.1.2.14 When we create the Implementation Plan for our Change Notices, our Change Admins manually prepend the number of the CN to the Change Task Name field for the convenience of our users (when looking at their My Tasks tables). We would like to automate this process since it is time consuming for the admins. I have attempted to write code to do this automatically, but it seems that the API does not allow this after the object is persisted. I would like to understand why this is possible manually but does not appear to work programmatically. I see the Name field in the CA Master table but don't see an alternate "name" in the CA iteration table. Perhaps I am just approaching it wrong in my code.Code:wt.change2.WTChangeActivity2 ca = (wt.change2.WTChangeActivity2) primaryBusinessObject;// Get parent Change Noticewt.change2.WTChangeOrder2 cn = (wt.change2.WTChangeOrder2) wt.change2.ChangeHelper2.service.getChangeOrder(ca)
Hi All, some time ago I made a customization which automatically writes the values we want to the OOTB line number attribute in wtparts at check-in, using a listener.But as it turns out, reality is always more complex than the plan you have and your users say they want...As of now, I found no way to ‘unset’ (aka delete) an existing line number. That sounds strange, but maybe I am just not proficient enough to read and interpret the javadoc ...🙈The use case could be coined like this: ‘set the line number attribute of part usage id-xy (which, by the way, now has the value ‘123’) to an ‘empty’ value.‘So, right now the tool is writing the line number like this to the attribute:long NewlineNumber = 123;LineNumber TheNewlineNumber = new LineNumber();TheNewlineNumber.setValue(NewlineNumber);usagelink.setLineNumber(TheNewlineNumber);PersistenceServerHelper.update(usagelink);We have left the attribute with the OOTB constraints, so it should be possible to have an empty value:This works via the
Version: Windchill 13.0 Use Case: I am trying to bulk load part instance and part configuration objects into Windchill and to establish the links between them and the parts they are related to.Description: I was hoping to be able to do this with the REST API but it doesn't look like there are end points available to allow this to be done. Can anybody recommend an alternative approach to achieving the same goal?
测试
We have a phantom item at the first level of the BOM that we do not want to publish as-is.The structure is:Parent → Phantom → Child partsIn Oracle, the expectation is:Parent → Child parts (phantom should be flattened)We are enabling one-level publishing only. Is it possible to generate the XML in such a way that the phantom is replaced with its child BOM (i.e., flatten the phantom during publishing)?I’m considering two approaches:Manually manipulating the XML, though this may be complex and error-prone due to multiple scenarios. Sending the BOM for phantom instead of phantom before generating the XML.Is there a better or recommended approach to achieve this?
I’m trying to create a custom REST domain with custom functions. I copied an example to get going and it seems to initially work. However, when I then go to change the import.js, the updates never seem to take. I can actually delete the import.js and the custom function still work implying that the js is cached.Do I need to restart the server or clear some cache?
We develop custom Visualization App for our Shopfloor and MES UsersWe want to use the Shaded with Edges render mode but unfortunatly this is not supported for now b the WEBGL Toolkit APIsCf bellow Articles and Community topicsArticle - CS338147 - Is it possible to set render mode using Creo View WebGL Toolkit?Is it possible to set Shaded with Edges render mode using Creo View WebGL Toolkit? | Community Can you support the same render modes as is CreoView heavy client ?Thanks
Version: Windchill 13.0 Use Case: I am trying to display attribute values over multiple lines in the 'More Attributes Info Page Layout' for a part object. Please see the attachment for a representation of what I am trying to achieve.Description: It seems this is not possible using the GUI. Can someone confirm if they have managed to achieve this or if it can be done?
Version: Windchill 13.1 Use Case: for a new version of a tool we provide, we want to create a custom page with multiple tabs. currently we used classic simple html / javascript - but we want to upgrade to mvc components to maintain more the "windchill ui look"Description: at first I thought about using a custom wizard.a wizard has in general multiple tabs - but the concept isn't really matching as the tool should have tabs for different manage actions / checks. wizards reflect more a step by step process.I'm looking for a way to build a page like the windchill object detail pages.For tool I'm planning about 5 fixed tabs. each tab would have multiple tables, radios, checkboxes and input fields.Any suggestion how to achieve this?thanks in advance!
Version: Windchill 12.1 Use Case: Open a Windchill folder and click 【Export List to CSV】.The exportTable.jsp wizard opens with a wizardStep Add a custom validator before the standard export processing:return UIValidationResult.newInstance(var1, UIValidationStatus.DENIED, UIValidationFeedbackMsg.newInstance( "Error message", FeedbackType.ERROR)); The validation message displays correctly in the wizardStep popup.Click OK on the message dialog.Expected Result: After acknowledging the validation message, the wizardStep popup should close safely without JavaScript errors.Description: When adding a custom validator to Windchill’s standard “Export List to CSV” action,the validation message displays correctly in the wizardStep popup.However, after clicking OK in the message dialog,the wizard does not close properly. The browser console logs the following JavaScript errorwindchill-all.js:1556 Uncaught TypeError: top.finishServerSideExport is not a function at PTC.exportTable.exportTa
Version: Windchill 12.1 Use Case: Custom action on the right click menu of Part Structure Page.Description: Created a custom action on right-click menu of PSB, after selecting multiple parts available under PSB and clicking the action I want VR oid of all the parts selected but getting OR oid in the form processor.
Version: Windchill 13.1 Use Case: I want Suggestion box under create layout of subtype of part Description: Actually while i am going to create subtype of Part Suggestion box is not coming simple Textbox is coming Suggestable class is not triggering .
I am using Windchill PDMLink Release 13.0 and Datecode with CPS 13.0.2.0Unable to create As Stored BOM in Windchill (Using EPM MemberLink Relaiton - InfoEngine API)Here are the errors that I facedLatest Revision of the child EPM Document shows up even when the specific revision is passed at the child level in the BOM.
Version: Windchill 13.0 Use Case: Using the + sign on multi-valued attributes with enumeration or pick list is an awful UX design. Has anyone built a data utility or interface JSP to populate using drop down checklist or a multi-select check list (like the type manager has). Description: when selecting multiple values for an attribute, there is a + (plus) sign to add another row to pick more values. All other interfaces in the world (including type selection in the search ) us pull-down checkboxes, or pick list has anyone already built the customization to do this that can be easily plugged in. (Hopefully would be universal to handle any attribute)
Version: Windchill 13.0 Use Case: We are trying to use this Default Trace code in Edit Layout instead of Edit Common Attribute layout to make some Automation. and we are using listern to catch the value which check in, as this is not possible to Edit common attrbute alyout as object will not get checkout and chekcin. so i want to remove that Attribute from Edit Common attribute layout. any one know how to remove from Edit Common attribute Layout ?Description: We are trying to use this Default Trace code in Edit Layout instead of Edit Common Attribute layout to make some Automation. and we are using listern to catch the value which check in, as this is not possible to Edit common attrbute alyout as object will not get checkout and chekcin.so i want to remove that Attribute from Edit Common attribute layout. any one know how to remove from Edit Common attribute Layout ?
I have created a data utility on an attribute which opens a jsp when clicked. Now in this jsp i've created a wizard and added a wizard step. In the wizard step I have 2 table builders, so when i click on the Ok button i want to get the selected objects. But I'm unable to call a form processor on this wizard.
Version: Windchill 11.2 Use Case: I want to remove the content link association between a WTPart and EPMDocument via API , basically my requirement is to remove all the association of cad for perticular part and break the link not deleted the object in actual but remove it from a perticular part and break the link and till now I've successfully been able to remove owner link but I'm not able to find any related API to remove the content link so if you know anything about it please let me know.Description: I want to remove the content link association between a WTPart and EPMDocument via API , basically my requirement is to remove all the association of cad for perticular part and break the link not deleted the object in actual but remove it from a perticular part and break the link and till now I've successfully been able to remove owner link but I'm not able to find any related API to remove the content link so if you know anything about it please let me know.
Hi @TDT Reference topic: custom Picker Callback not working - PTC Community Can you please show me the exact way and location to register custom js In my case I have created custom js and registered at this location Windchill\codebase\netmarkets\jsp\custom\contextPickerJSP.jsp <%@ include file="/netmarkets/jsp/util/begin.jspf"%><%@ taglib uri="http://www.ptc.com/windchill/taglib/core" prefix="wc"%> <script type="text/javascript"src="<%=request.getContextPath()%>/netmarkets/javascript/custom/contextPickerHelper.js"></script><%@include file="/netmarkets/jsp/util/end.jspf"%>
I am using Windchill PDMLink Release 12.1 and Datecode with CPS 12.1.2.8The IDs of a new BusinessRule and BusinessRuleLink are different in the Database than in the LoadFile.Does the ID in the LoadFile matter, or can it be any given ID? If not, how to maintain an overview over the loaded BusinessRules?An export from the Database would be convenient, but the IDs aren't matching with the LoadFile. So I'm not sure what is correct.
I have an attribute, so that attribute value wanted to map in Project Network as a new Network.
Hi, I want to create a Filter on the Pop-up Window Actions. Based on the action Name, I want to enable or disable the Action. What is the Java Api? I found WTContainerReference for the Product Details. Url : colorStructure/zfColorStructureWizardPopup?context=tcomp%24infoPage%24VR%3Awt.part.WTPart%3A1173627%24VR%3Awt.part.WTPart%3A1173627%21*&componentType=INFO&cacheBuster=17727800&ContainerOid=OR%3Awt.pdmlink.PDMLinkProduct%3A133401&oid=VR%3Awt.part.WTPart%3A1173627&u8=1&unique_page_number=58185912925159_7& AjaxEnabled=component&actionName=zfColorStructureWizard&portlet=poppedup&context=tcomp%24infoPage%24VR%3Awt.part.WTPart%3A1173627%24VR%3Awt.part.WTPart%3A1173627!*&oid=VR%3Awt.part.WTPart%3A1173627 Thanks!Kanchana.
Version: Windchill 13.1 Use Case: Trigger an IE Task from Thingworx, where the IE Task executes a Report requiring an input parameterDescription: Hi AllI have an IE task that executes a Report when triggered from Thingworx. I have a Report that returns all the Latest Released Version of a WTDocument, if I dont specify the WTDoc number, it will return all the versions of all available WTDocuments. For the case without specifying the WTDoc number, I am able to trigger it from PTC IE Domain in WRS using the below Request body{"Params": [{"Value": "Doc List","Name": "reportName"}],"Task": "com/ptc/windchill/enterprise/report/DocReport.xml"}Here, Task = IE Task LocationValue = Report Name Similarly, how do I execute by specifying the Document number? I tried the below but it won't work.{"Params": [{"Value": "Doc List,"Name": "reportName"},{"Value": "D000001364","Name": "Number"}],"Task": "com/ptc/windchill/enterprise/report/DocReport.xml"} Many thanks in advance for help
I am using Windchill PDMLink Release 13.0 and Datecode with CPS 13.0.2.6I have several Workflows where I use system print statements for debugging purposes. Here is an example: System.out.println("+++++++"); In Windchill 12 this statement appears in the Background logs, not 13. Is there a switch to turn logging on in 13?The history is "System.out.println" commands would be recorded in the Windchill logs for every version before Windchill 13.0. I do not see the logging anywhere for this output. Perhaps there is a switch in 13.0 that we are not aware of to direct system printing to the logs instead of some bit bucket.
Description: Version: Windchill 13.0 Use Case: Fetch all unique WTDocuments of allowed types, modified on or after a given timestamp, across multiple document types, without duplicates.Description: I am using below queryspec however it is not returning the results expected, for example when I do teh search in Windchill advance search it fetched results around 300 but using queryspec it is fetching around 60. I am not sure why this discrepency is happening but please help me if you knwo something here. we can have multiple document type. Also internal name is correct. I have cross checked as well. just fetching few results not entire is confusing me. List<Long> typeIds = new ArrayList<>(); System.out.println("getWTDocumentByLastModifiedDate allowedDocumentTypes>>> "+allowedDocumentTypes); QuerySpec qs = new QuerySpec(WTDocument.class); for (String typeId : allowedDocumentTypes) { System.out.println("getWTDocumentByLastModifiedDate
Version: Windchill 12.0 Use Case: My team is trying to fetch Shared on Date ( Date on which part or documents was shared to the project). Is there a way we can do that.Description: My team is trying to fetch Shared on Date ( Date on which part or documents was shared to the project). Is there a way we can do that. Typically that is available on the project status table for part & docs but is there a way we can get that on the folder tables in projects.
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.