Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
Hello Community ! I created a virtual table on the windchill database to use them in the query builder of an report template, but unfortunately the virtual table is not visible in the object list of the tab "Tables and Joins" of the report template (edit mode). How to make the virtual table visible in this list ? Thanks for any hints !
Здравствуйте, есть ли команда для остановки всех агентов и запуска всех агентов?(Остановите все и начните все)
Hi, everybody!I have created a subtype of the Document using the following code: package com.acme; import wt.doc.WTDocument; import wt.util.WTException; import com.ptc.windchill.annotations.metadata.*; @GenAsPersistable(superClass=WTDocument.class, properties={ @GeneratedProperty(name="sizeC", type=Integer.class, initialValue="3", javaDoc="Integer value to represent the size of C.")}, iconProperties=@IconProperties(standardIcon="netmarkets/images/stop.gif", openIcon="netmarkets/images/stop.gif") ) public class AcmeModeledDoc extends _AcmeModeledDoc { static final long serialVersionUID = 1; public static AcmeModeledDoc newAcmeModeledDoc() throws WTException { AcmeModeledDoc instance = new AcmeModeledDoc(); instance.initialize(); return instance; } } Everything works , I can create a document, specify the sizeС.I tried creating a second subtype with link it to the previous one: package com.acme; import wt.doc.WTDocument; import wt.util.WTException; import com.ptc.wi
One of my first projects in Windchill was to implement Nonconformance. Being new to Windchill I was relunctant to make many changes to the out-of-the-box implementation. While walking my clients through the process of Nonconformance I was consistently being asked the generic question of "Why can't I see that information in my task? Why do I need to dig into the Nonconformance to see the information I need?" and I couldn't give them a good answer. I did what I could but the best I could do was use the PersistableAdapter api to get information stored in the Nonconformance itself. For example... com.ptc.qualitymanagement.nc.Nonconformance mine = (com.ptc.qualitymanagement.nc.Nonconformance)primaryBusinessObject; com.ptc.core.lwc.server.PersistableAdapter obj = new com.ptc.core.lwc.server.PersistableAdapter(mine,null,null,null); obj.load("dateFileOpened", "number", "name","description","OBSERVATION","ncKey","requester"); java.text.DateFormat df = java.text.D
While implementing CAPA for our company, I realized that they use the DataUtility field to identify a method that allows them to show or hide specific values based on other attributes... If Risk Required is set to yes, then show the Risks table. If Change Notice is required, then show two more attributes to define Change Notice Type and Name.... etc...I tried to create one that I can use for similar purposes. Show/Hide and Require/NotRequire attributes in a subtyped ChangeActivity based on a variable called Intent. Didn't quite work out. I'm not looking for help troubleshooting, but more looking for clearer examples of how to make a DataUtility. The examples I have found have been superficial and not very helpful.
Hello everyone , who has encountered such an error?How did you solve it? Windchill Error Contact your administrator for assistance. Information for their reference follows. Request Id: Request URI: /Windchill/app/ Query String: Status Code: 500 Exception: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultHandlerMapping' defined in class path resource [config/mvc/mvc.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'CARDataService' available
The calculate method of the RuleAlgorithm interface is passed an array of the parameters, provided within the AttrValue tag of the OIR e.g. <Attr id="SomeAttribute"/>. While RuleConfigurableTypeAttributes.properties can be configured, one is still typically limited as to what one can list there.I would think there would be some APIs (e.g. action bean) used by the form submission framework to call the RuleAlgorithm implementation that can also be called directly from the RuleAlgorithm implementation to access the form data. Any ideas?Environment: PDMLink 11.2 M010
We want to add one column in folder page. Where name, number all details coming there we want one more column percentage. How we can achieve.
Hello, I have implemented a logic where an IBA attribute of WTDocument will get updated at certain point in a change task workflow. But for one object the IBA attribute is updated two times which is causing some issues in the upcoming activity nodes. For example: If the attribute name of a document is "Info" and the value I am trying to persist is "value", when the IBA updation logic is executed the value is coming as "value","value". I can see two entry in the database in String Value table for the document. Can anyone please shed some light on this? Thanks and Regards, Hari R
how to get documents template from library using api code through a workflow , i have a code which convert template to document automatically but only one input , i need to give the ibrary container as input to convert all templates into document
Hello community, I try to create a data utility which I can use in an usagelink.what I need is following: - Read the enumeration behind an custom usagelink attribute, - Filter out some entries, - create a suggestBox for the rest ob the entries. - persist the choice of my user. Can you help me in the right direction? I don't think i will find some examples for exact this case but all what i have found works for Parts but not for usagelinks. much appreciated for every help. MSuarez
Hello, Is it possible to modify part usage attribute (Quantity) without creating a new iteration of the parent or doing a check-out/check-in? I have the following code to modify "findNumber" which is also a usage attribute. Please provide your suggestions. QueryResult qr = WTPartHelper.service.getUsesWTPartMasters(parentPart); while (qr.hasMoreElements()) {WTPartUsageLink ul = (WTPartUsageLink) qr.nextElement();WTPartUsageLink usageLink;PersistableAdapter obj = new PersistableAdapter(ul, null, null, new UpdateOperationIdentifier());obj.load(attName);//attName="findNumber"obj.set(attName,attValue);usageLink = (WTPartUsageLink)obj.apply(); IBAValueDBService ibaserv = new IBAValueDBService();ibaserv.updateAttributeContainer(usageLink,((DefaultAttributeContainer)usageLink.getAttributeContainer()).getConstraintParameter(),null,null);PersistenceServerHelper.manager.update((Persistable)usageLink); } Regards, Hari R
Hello, What is the Correct way to map an Attribute from the WT-Part to an ALIAS Attribute on the Uses Occurence Attributes? I haven't found a working mapping yet. Thank you in advance!
Hello, For example: If someone at the company gets ill, all Tasks he/she recieves won't be processed. If he has got a deputy, those tasks would be processed, even though he's not in the company. So is there a possibility to set a deputy for a specific user, who can approve the tasks? Thanks in Advance! Best Regards, hautschi
Need help converting the blow sql into QuerySpec SELECT *FROM DISCRETEACTIONITEM DAIJOIN ITERATEDACTIONITEMSUBJECTLINK ISL ON DAI.IDA2A2 = ISL.IDA3A5JOIN CONTROLBRANCH CB ON ISL.BRANCHIDA3B5 = CB.IDA2A2JOIN WTPARTMASTER PM ON CB.IDA3B5 = PM.IDA2A2;
1. I have a custom scheduled job created but it always runs in context 'site' and always returns null. I understand this is by design. 2. When I try to schedule my custom job in my org, my custom job name does not display in the job listbox to choose. The custom job name only displays when I am in the job administrator scheduler for 'site'. 3. I am struggling how to get my custom job name to display in the job administrator scheduler for my 'org' and have not been able to verify if my custom job java code is correct. See the code below. Any hints or suggestions are appreciated. Thanks, Mike package ext.customers.provisur.customJobs;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.PrintWriter;import java.util.Date;import java.util.Iterator;import java.util.Locale;import java.util.logging.FileHandler; import org.apache.log4j.Level;import org.apache.log4j.Logger; import wt.doc.WTDocument;impo
There is a attribute defined on a document type, the value is carried over by new iteration or revision once it was created out of box. How can I custom to not carry over the value but reset to empty every time new revision? Eg Audit Type field was set "Initial" at A.1, new iteration to A.2 the value carried over. However when Revise to B.1, the value was reset to empty.
Hello All, Can anyone please explain me the difference between Validators and Filters? I have worked on Filters but I have never used Validators until now. For what purpose should we use validators and for what purpose should we use filters? Thanks in advance. Regards, Hari R
Hello Community, I am working on some coding to Link an EPMDocument to a WTPart, and then build the WTPart structure. I've got the association portion working but am having difficulty with the build task. I found this in the Windchill API to build structures:BuildHelper.service.buildTarget(WTCollection alwaysBuild, WTCollection buildIfNotAlreadyBuilt, BuildResolverDelegate[] buildResolverDelegate, ConfigSpec configSpec) I feed this a collection containing my working copy of the WTPart, and it appears to run without issue. It returns a WTValuedMap, which I am not familiar with. My question is there any I need to do with the WTValued Map to update the working copy of my WTPart object prior to service.checkin? Or has anyone had any success with using the BuildHelper.service ? Snippet:\\Checkout OBJ_prt \\create WRK_Prt = workingcopyof (OBJ_Prt) \\Create links to EMPDoc \\add WRK_prt to WTCollection alwaysBuild. No buildresolverDelegate, no conf
Do we have any feature in the windchill workspace, to select all the generic and instance part/assembly of a single component together?
Hi, I am a beginner who can write Java and C ++ code but don't know how to apply development in PDMLink. PDMLink OOTB does not allow any additional information to be entered when proceeding with a revision. If you have a development case that allows you to enter additional information when making revisions or an example where you can add editable properties to EPMDocuments without check out, please share it. If I have to develop, please tell me what part of Customization Guide can help. Thanks, Warm Regards, SeonHo Cha
Hi, I am able to create MVC table builder for non persistable object, but records are not displaying in table, hence can anyone provide solution? FYI : "extends AbstractConfigurableTableBuilder" Thanks.
Hello everyone, I'm trying to implement @breed example https://community.ptc.com/t5/Windchill/JSP-Page-to-Set-State/m-p/238010#M28450. How to put all the data in the table to look like in the tables below? And how do I make sure that when I click on the "Search" button I stay on the same page and the data is updated? All the code I wrote in the JSP-file customHomePageAction.jsp ( codebase/netmarkets/jsp/myCompany/customHomePageAction.jsp) <%@ page language="java" session="false" %><%@ taglib uri="http://www.ptc.com/infoengine/taglib/core" prefix="ie" %><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%><%@ page import="com.jbtc.*" %><%@ page import="java.util.regex.*" %><%@ page import="java.util.Pattern.*" %><%@ page import="java.io.*" %><%@ page import="java.net.URL" %><%@ page import="wt.method.RemoteMethodServer" %><%@ page import="wt.util.WTException" %><%@ page imp
Hello everyone, how to execute sqlplus <db_user>/<db_user_pw>@<sid> command . If there is no Oracle, and there is SqlServer?And what is @<sid> ?
Hello, please tell me where I can get the documentation on Windchill with detailed examples of working with the code, because in the usual documentation 99% of the information is not clear to me at all, even the first examples do not turn out?
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.