Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
Hello, I would like to retrieve the constraints of a classification attribute (Valid Range, Legal Value List, String Values, etc).I tried it like mentioned in https://www.ptc.com/en/support/article/CS240966 PersistableAdapter persistableAdapter = new PersistableAdapter(manuPart, null, SessionHelper.manager.getLocale(),new DisplayOperationIdentifier());AttributeTypeSummary attrDesc = persistableAdapter.getAttributeDescriptor(internalAttrName);attrDesc.getLegalValueSet();attrDesc.getConstraints(); getLegalValueSet() always returns null, even though all attributes I tried have at least 1 constraint.getConstraints() is deprecated and also returns null. I tried so many different approaches, nothing worked. I found another post from last year, where the same problem was described. Is there another way to query attribute constraints, is there some kind of service for that? Thanks and best regards
As per the original post. Hi @cblaumeier , I am currently having the same issue. I am not quite sure what you mean. I tried loading all classifications branches from where the attribute lies up to the root. I also tried some other approaches but no matter what I try, I always receive null when executing .getConstraints() or .getLegalValueSet(). Could you please explain this in more detail. What exactly do I need to load before loading the attribute itself? Best regdards
Hello the Community. I'm trying to update the "Variance Summary Report" in JasperSoft Studio.I want to add tables that would include Attributes we added to the Variance.I understand I need to create the new Fields in the dataset.I added some to the DatasetForVRHeader and made sure to match their name with the attribute's internal name.In addition, I aslo found that those reports are relying on Info*Engine.Therefore, I updated the related .xml to include the attributes I want to display in my report.I updated tasks/com/ptc/windchill/enterprise/change2/reports/VarianceSummaryHeader.xml and ChangeItemSummaryHeader.xml. (tomcat and Info*Engine caches were cleared)When compiled, the report seems not to understand the changes I made (the added attributes are displayed without value).Does anybody succeeded in making chenges to those "Info*Engine" generated reports ? Regards.François
Hello,I have developed a custom action menu on WTPart (a default object in Windchill), but for some reason, the same action menu is appearing on its child objects as well.I would like to know how I can limit the display of this custom action menu only to the main WTPart object and not its children.Regards,Shrikant Bhosle
How can I assign a value to the attribute flow defined in WTPart?
Hello experts.We have a few old templates created by folks who have long left the company.It looks like they call out roles that we have in or RoleRB file and a few we do not.I think they also call out the Permissions on Roles for those none RoleRB roles?Any guidance would be helpful
When i create a CN1(Full Track) with Part XYZ(BOM top Level) with revision A.2 in released state as affected object only and do submit later.Create a Redline 1 for the Part XYZ and then move the CN1 to Pending Implementation state.Then i create a CN2(Fast Track) for the same Part XYZ with revision A.2 in released state as affected objects and do submit later.Create a Redline 2 for Part XYZ and then do a revise in implementation plan and the Redline 2 is successfully incorporated into Part XYZ B.1Now when i cone back to the CN1 which is in pending implementation state. The affected object shows Part XYZ in A.2 version and does not get refreshed to Part XYZ B.1 Released version.What needs to be done so that the Affected objects are refreshed automatically.
Hi Community, I need to control some attributes in the flow, but I have controlled them, except for a few cases.The first error is if EN_LANG attributes in WTPart are empty, it gives an error for null value.The second error is that SURFACE_M2 attributes are defined with com.ptc.core.meta.common.FloatingPoint type, but SURFACE_M2 attributes can receive values automatically from creo, and when this value is an integer (for example 1), it gives an error in getting the value.I tried to get the values of these attributes in the code below com.ptc.core.lwc.server.PersistableAdapter obj = new com.ptc.core.lwc.server.PersistableAdapter(part,null,java.util.Locale.getDefault(),new com.ptc.core.meta.common .UpdateOperationIdentifier()); obj.load("EN_LANG","SURFACE_M2"); EN_LANG=(java.lang.String) obj.get("EN_LANG"); SURFACE_M2=(com.ptc.core.meta.common.FloatingPoint) obj.get("SURFACE_M2");
Add ability to customize task notification emails.More than...The handful of additional calls that can be added to the subject/body an message per the Help (Workflow EMail Notifications - activityAttributes, activity NotificationUrl and getDeadline).Or the suggestion of using Email Robots or Expression Robots that require updates to all workflows and does not work for previously started processes. It seems as if modifying the General.html (and locale) and registering a custom template processor is not a supported customization because it impacts all emails.
Hi community, I want to get the value of an attribute in the code below. The attribute is of type real number, defined by the com.ptc.core.meta.common.FloatingPoint class. When I try to get the value it doesn't give me any results. Can you help me? com.ptc.core.lwc.server.PersistableAdapter obj = new com.ptc.core.lwc.server.PersistableAdapter(part,null,java.util.Locale.getDefault(),new com.ptc.core.meta.common.UpdateOperationIdentifier()); obj.load("SURFACE_M2 "); SURFACE_M2 = (com.ptc.core.meta.commmon.FloatingPoint) obj.get("SURFACE_M2");
@HelesicPetr
I recently imported a number of bills of material into Windchill Risk and Reliability 11.1It would appear that the part numbers for a few parts were recognized by some form of library. For these parts, the classification, category and subcategories were filled in.What I noticed, though, was that there were consistently mixups between inductors and ICs. How can I locate the library that these parts are being identified from? We have not put these parts into proprietary libraries that we created, my guess is that the libraries must be part of our Windchill install. I want to track the source of this down. Doing so would also give me some experience with setting up our own libraries of parts from our analyses. Thanks, Chris
Hi Community, How can I get the information of the attributes in the stream I created in the task I designed with JSP?
Dears, I have customized two attributes in the part subtype which have a cascading relationship, attribute A has roughly 70 values, attribute B has roughly 1000 values, attribute A is level1, attribute B is level2, attribute A is one-to-many for attribute B. I am considering if there is a performance issue if I create 70 rules in cascading? If there is a performance issue, is there any other suitable way to handle such attributes? Thanks BR,Chason
I want to add an activity in one of our ECN flows that runs in parallel to the rest of the approval so that the reviews and so on continue and a part can get released but the ECN itself wouldn't be resolved until that last parallel activity is completed. The idea is that the release of a part isn't gated by that one activity that can happen throughout the ECN flow. Looks like paralle expressions are ok. Any pros/cons to doing this with activities? Any pitfalls? Or perhaps a different approach?
Hello, Is there any 'acceptable way' to customize the "new Project" wizard to make this "Identify out-of-sync shared objects" be enabled by default? I know there is a way to do it through file "showCheckBoxes.jspf" but I'm pretty sure that modifying JSPF file is not acceptable. I can't find any other way, and seems there are no preferences for modifying this. Best regards,Mateusz Walendziuk
Hi All,Could we make comments field mandatory in a workflow task depending on routing option chosen.For example:A task has Approve and Rework option. If user chooses Rework option comments should become mandatory. If chooses Approve its not mandatory.Any inputs how we can achieve this.Thanks in advance. Regards,DK.
Short question: How to change the standard workspace load rule "load as saved" to "load newest" for all users?
How/where can I create custom roles and add them to local Team. Example role names:Change Management EngineerSystems EngineerDesign Release EngineerChange Control Board
Hello, We are looking to make some changes to our current revision scheme, primarily to move from file/list-based to a state-based revision scheme. I’d like to get some feedback on this before trying on our dev server. I’ve attached the modified .xml that I plan to upload, our existing Series is “COMPANY” and I’ve appended my new series as “COMPANY_STATE_BASED”. The current revision scheme was customized from OotB and implemented quite some time ago. It allows numeric values as legacy, then begins with ”–“ and continues to alphabetic. We would like to update this to a state-based revision scheme with the same values, except that the numeric labels would be used for Design and Development phases and automatically switch to alphabetic labels once an object moves to Production. From what I’ve read I understand that it’s possible but not recommended to change revision schemes once in use. Questions:Is the file formatted correctly?
Hi comunity; I want to send e-mail in the project plan.How can I send an e-mail to the user and the administrator every time a task is closed?
Need to resize the text box dynamically.
windchill: The requirement is to update the legal value list of the classification attribute using an API/java code and the list should be available to search in the classification search.How to set the constraints of the classification attribute using code since we don't have any direct api currently available in ptc.
We need to hide/disable OOTB Revise button from Workspace table & CAD --> Right click --> Revise, Since this is WGM UI, Please suggest the approach to achieve the same in Windchill WGM 12 & Windchill --> Product --> Workspace UI. Snapshots from Workspace UI.
I want to rename the status value 'Potential' to 'Pending'In Type & Attribute Management, the status of a WorkItem looks like a modeled attribute, and immutable. Is there a way to change these values?
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.