Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
How can I re-assign a task in a workflow for Approve/Deny to a specific role, lets say CA1 role, instead of a specific user?
Hi,I believe views of WTPart, "Design" for example, are mandatory information for consistent data in Windchill, but one collegue explained he show some installations that do not use those view. Until now, I though a part without view would be "corrupted data", imported thanks a spreadsheet. Are the view "Design/Manufacturing/etc." simply a recommanded practice of PTC ? What would be the drawback of configuring per default no view on the WTPart (when no MPMLink is used)? I really interesseted in your opinions!
Where is the location of the file that contains the information for the settings listed in Preference Management in Windchill PDM link 11.1? I created a new user in Creo Parametric 7.0.6.0 and my new user preferences in Preference Management are only show default settings. I would like to import my settings from my other user Preference Management settings into this new user account. Is there a way to import these settings from my old user account into my new user account?Perhaps I am not asking the right question with a location, how does one go about exporting the Preference Management settings and importing them for an individual user?
Where can I find the documentation for Windchill Architecture on AWS ? Where can I find the Windchill PLM on AWS Documentation ? Need Architecture design to understandWhere can I find the Windchill PLM on AWS Documentation ? Need Architecture design to understandWhere can I find the Windchill PLM on AWS Documentation ? Need Architecture design to understand
thumbnail file -------------------- Translated the below content from Korean to English using Google translate on 3-2-2023 at 10:48am IST by vnamboodheri-------------------- 썸네일 파일
Hello, I want to auto-populate a template based on the type of WTDocument the user selects, I have a template created for a specific sub type, as soon as a user selects that sub type in the new document creation window, the template should be auto selected instead of wanting the user to select it in the dropdown. Requesting you all to share some light on the same. Thanks,Sha
Hello, I want to upload an attachment to a Problem Report through REST Service and I am following the steps provided in the below link https://support.ptc.com/help/windchill_rest_services/r2.4/en/index.html#page/windchill_rest_services/example_changemgmt_upload_attachmt_changeissue.html But I am facing an issue while carrying out the stage 2 step, when executed it says, "The system is unable to process your request at this time. Please try again later. If the problem persists contact your system administrator.". Requesting you to shed some light on this issue. Thanks,Sha
Hi all, I'm trying to create a group and add an existing group as member using the LoadFromFile utility.I came across the snippet to create group but not adding a group to it. Can somebody let me know how it can be done or some possible workaround?
How do I get windchill installation directory / load point location though API.I see almost every article related to this but no luck.Please suggest or guide.
Hi,I am writing a custom FormProcessor that extends OOTB ImportFormProcessor and overrides postTransactionProcess() method. This Custom FormProcessor gets called when we click on Import on Import from Spreadsheet wizard Added below entry in custom-action.xml<objecttype resourceBundle="com.ptc.windchill.ixb.importer.importerResource" name="ixb" class="com.ptc.windchill.ixb.importer.ImportJob" ><action checkaccess="true" name="createImportJob" uicomponent="IMPORT_FROM_EXCEL" ><command method="execute" class="ext.tagheuer.part.formprocessors.customImportFormProcessor" url="/netmarkets/jsp/ixb/importer/import.jsp" windowType="popup"/></action></action></objecttype> Basically, my initial requirement is to get all the Part details those are within the Importable Spreadsheet.Is there any API to get all the part details which are within Importable Spreadsheet?Can someone suggest? Regards,SY
Hello, I want to introduce a new tab under a specific type of WTDocument page and populate it with some of the attributes, could you shed some light on how to approach this requirement? Thanks,Sha
wt.org.DirectoryContextProvider contextProvider = wt.inf.container.WTContainerHelper.service.getExchangeContainer().getContextProvider(); wt.org.WTGroup wgroup = wt.org.OrganizationServicesHelper.manager.getGroup("YONETICI", contextProvider); wt.query.QuerySpec qs = null; qs = new wt.query.QuerySpec(wt.org.WTGroup.class); wt.query.SearchCondition sc = new wt.query.SearchCondition(wt.org.WTGroup.class, wt.org.WTGroup.NAME, wt.query.SearchCondition.EQUAL, "YONETICI"); qs.appendWhere(sc, new int[] { 0 }); for(wt.fc.QueryResult queryResult = wt.fc.PersistenceHelper.manager.find(qs); queryResult != null && queryResult.hasMoreElements();) wgroup = (wt.org.WTGroup)queryResult.nextElement(); java.util.ArrayList<WTUser> members = new java.util.ArrayList<WTUser>(); java.util.Enumeration<wt.org.WTPrincipal> member = wgroup.members(); while (member.hasMoreElements()) { wt.org.WTPrincipal principal = (wt.org.WTPrincipal) member.nextElement(); if (prin
IS there any API to change Created by and modified by of EPMDOCUMENT/WTPart in windchill?
Where should I get "v$session.osuser " And how to change the String limit of osuser name.
Hello, I want to introduce a filter for an action which should restrict a certain set of users. The solution I thought was to associate the set of users to a group, created under Organization context, and the filter will validate if the current user belongs to the said group and if so the action will be hidden. I used the below mentioned API to find the group based on the user but it is not giving me any output i.e. enumeration is empty Enumeration enumeration = OrganizationServicesHelper.manager.parentGroups(validationCriteria.getUser().getPrincipal(),false); Please provide an alternative way or an API I can implement. Thanks and Regards, Hari R
Hi All,I want to create a "Manufacturing" view for the part included in the Change task, but I want to do it only if it doesn't exist.Now I use this code without checking. And I want to add something like " if Manufacturing view for obj ==null then" wt.fc.QueryResult qr = wt.change2.ChangeHelper2.service.getChangeablesBefore((wt.change2.ChangeOrderIfc) primaryBusinessObject);while(qr.hasMoreElements()){ wt.fc.WTObject obj =(wt.fc.WTObject) qr.nextElement(); if(obj instanceof wt.part.WTPart) { wt.part.WTPart prt = (wt.part.WTPart) obj; wt.part.WTPart ManufPart = (wt.part.WTPart) ManufPart = (wt.vc.views.ViewManageable)obj, "Manufacturing") wt.vc.views.ViewHelper.service.newBranchForView((wt.vc.views.ViewManageable)obj, "Manufacturing"); ManufPart = (wt.part.WTPart)wt.fc.PersistenceHelper.manager.store(Man
Has anyone gotten hotswap agent to work with Windchill? I tried jRebel last week and I was impressed but if I can get similar functionality with HotSwap then I rather not get into the weeds of Software Purchase Authorization at work especially since I'm not doing heavy Windchill customizations at the moment.
Here is my issue: There is a feature that is able to discard a part. But I don't want to discard the part when it is "Resulting Objects" in some ChangeOrder or ChangeRequest.I've tried to get the part's related changeorder, but when the part was being revised in ChangeActivity, I can't get the related changeorder with the part number because its version has been changed. Is there a solution can handle this problem?
Hello all,How to edit table view in index.html file obtained by downloading zipped Package in Windchill PDMLink? Thanks.
Hello, I want to extend DefaultDownstreamLocationDelegate to define my own destination path for the downstream objects, upon overriding the method getSTAInitialLocationValueBean(), I see STAHelper cannot be resolved since the class is not public. Can someone let me know what is the correct way to approach this? Thanks in advance.
Hi All. I have a requirement to store parts while traversing through a multi level BOM structure. So far I have been able to recursively print all the child parts but having a problem add all parts to a list or map ( only adds values of 1st level BOM but not other levels).Here is the code I am using; public static List<WTPart> getChildParts(WTPart parentPart) throws WTException {ArrayList<WTPart> info = new ArrayList<WTPart>();Map<String, List<String>> map = new HashMap<String,List<String>>();QueryResult queryResult= WTPartHelper.service.getUsesWTParts(parentPart, new LatestConfigSpec());// int structure = 1;WTPart part=null;if (queryResult != null){while(queryResult.hasMoreElements()){Persistable[] persistable=(Persistable[])queryResult.nextElement();part=(WTPart)persistable[1];printMessageToConsole(part.getNumber());info.add(part);//WTPartUsageLink partLink=(WTPartUsageLink)persistable[0];getChildParts(part);}}return info;} I am als
Hello, I want to introduce an attribute to a WTDocument, when creating a new object, users must be able to use this attribute and upload attachments to the document upon clicking on this attribute. The reason why I do not want to use Set Attachments is, I want to control the type of document being attached and validate if there is an existing document of the same type in the attachments before attaching a new document. I am thinking of introducing a data utility where I can use GUIComponent to implement this requirement, I wanted to know if there is any other way to achieve this requirement, kindly share your options. Thanks.
Hello, I have a requirement to trigger multi-level BOM report in a specific format which is an OOTB functionality (see attached photo) from a wizard once user clicks on a button. How would I go about triggering this functionality from a form processor or some other mechanism?
Hi All, I'm stuck on a problem where im not able to get the custom attribute on the picker callback, the tags and the scripts written in the jsp page is as specified below. Tag written in the jsp page. <wctags:itemPicker id="pickerID" objectType="WCTYPE|wt.doc.WTDocument|Type1|Type2" componentId="pickerID" searchResultsViewId="pickerID.view" label="Submitter" pickerTitle="Picker Title" pickerCallback="PickerCallback1" pickedAttributes="number,attrInternalName1,attrInternalName2,attrInternalName3" /> <script> function PickerCallback1(objects,pickerID) { var myJSONObjects = objects.pickedObject; for (var i = 0; i < myJSONObjects.length; i++) { var str = JSON.stringify(myJSONObjects[i]); alert(str); var fullName = myJSONObjects[i]["attrInternalName1"]; alert(fullName); } } </script> Output on alert : "undefined" @HelesicPetr @BjoernRueegg
I have the code (below) to check if a role has someone assigned to it or not. What I need is how to change the code to check for two different roles to make sure that they are both assigned. wt.workflow.work.WfAssignedActivity act = (wt.workflow.work.WfAssignedActivity) self.getObject(); wt.workflow.engine.WfProcess pro = (wt.workflow.engine.WfProcess) act.getParentProcess(); wt.team.Team t = wt.team.TeamHelper.service.getTeam(pro); java.util.Map members = t.getRolePrincipalMap(); java.util.Set keys = members.keySet(); java.util.Iterator itr = keys.iterator(); while (itr.hasNext()) { wt.project.Role role = (wt.project.Role) itr.next(); System.out.println("Role-=-=-=" + role); if (role.toString().equalsIgnoreCase("MyCustomRole")) { java.util.ArrayList users = (java.util.ArrayList) members.get(role); //If there is no user in MyCustomRole role throw exception if (users.isEmpty()) { throw new Exception("Select user for " + role.getDisplay()); } }
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.