Quantcast
Channel: PTC Community : Discussion List - Windchill
Viewing all 5797 articles
Browse latest View live

table is not displayed with proper table UI

$
0
0

I am trying to create a table UI on click on actions command on a popup page. Table is coming a plain page without table borders

 

Below are the steps followed,

 

Step 1: Added custom-actionmodels.xml

<model name="agileActions" resourceBundle="jp.co.lixil.individualbom.actions.ui.resource.NavigationRB">

  <action name="pushParts" type="object"/> <!-- Send Part -->

  <action name="pushBOM" type="object"/> <!-- Send BOM -->

  <action name="pushDrawing" type="object"/> <!-- Send Drawing --> 

  <action name="AgilePartsList" type="navigation"/>

</model>


Step 2: Added actions in custom-actions.xml

<objecttype name="navigation" class="" resourceBundle="com.co.ui.resource.NavigationRB">

  <action name="AgilePartsList">

              <component name="com.co.agile.parts" windowType="popup"/>

          </action> 

</objecttype>


Step 3: RB File Entry for this action in NavigationRB.java

@RBEntry("Parts List To Agile")

public static final String PRIVATE_CONSTANT_24 = "navigation.AgilePartsList.title";

 

@RBEntry("Parts List To Agile")

public static final String PRIVATE_CONSTANT_25 = "navigation.AgilePartsList.tooltip";

 

@RBEntry("Parts List To Agile")

  public static final String PRIVATE_CONSTANT_26 = "navigation.AgilePartsList.description";

 

 

Step 4: Added Entry in MVSDispatcherServlet.xml

<?xml version="1.0" encoding="UTF-8"?>

<!-- - Application context definition for "MVC" DispatcherServlet. -->

<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=“http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-2.5.xsd">

<import resource="classpath:config/mvc/mvc.xml" />

  <import resource="classpath:config/mvc/jca-mvc.xml" />

  <import resource="classpath:config/mvc/*-configs.xml" />

  <import resource="classpath:config/mvc/custom.xml" />

  <import resource="classpath:config/mvc/pac-custom.xml" />

  <bean id="defaultHandlerMappings“ class="org.springframework.beans.factory.config.PropertiesFactoryBean">

    <property name="locations">

    <list>

    <value> classpath:/config/mvc/*-urlMappings.properties</value>

  <value>classpath:/config/mvc/custom.properties</value>

  </list>

  </property>

  </bean>

  </beans>



 

Step 5: pac-custom.xml file created under codebase/config/mvc/pac-custom.xml

<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beansxmlns:xsi="http://www.w3.org/2001/XMLSchema-instancexmlns:context="http://www.springframework.org/schema/contextxmlns:mvc="http://www.ptc.com/schema/mvcxsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-2.5.xsdhttp://www.springframework.org/schema/contexthttp://www.springframework.org/schema/context/spring-context-2.5.xsdhttp://www.ptc.com/schema/mvchttp://www.ptc.com/schema/mvc/mvc-10.0.xsd">  <!-- Configurations in this file override all other configurations --> 

<mvc:builder-scan base-package="com.co.agile.action.table.part" /></beans>


Step 6: Created a Folder under <WEB-INF>/jspcalled pac/pacPartsListTable.jsp

<%@tagliburi="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%@ taglibtagdir="/WEB-INF/tags" prefix="tags"%>

<%@ tagliburi="http://www.ptc.com/windchill/taglib/jcaMvc" prefix="mvc"%>

<%@ include file="/netmarkets/jsp/util/begin_comp.jspf" %>

<mvc:tablecompId="com.pac.agile.parts"/>

<%@ include file="/netmarkets/jsp/util/end_comp.jspf"%>


Step 7: This is the table component code


package com.co.agile.action.table.part;

 

import com.ptc.mvc.components.AbstractComponentBuilder;

import com.ptc.mvc.components.ColumnConfig;

import com.ptc.mvc.components.ComponentBuilder;

import com.ptc.mvc.components.ComponentConfig;

import com.ptc.mvc.components.ComponentConfigFactory;

import com.ptc.mvc.components.ComponentParams;

import com.ptc.mvc.components.TableConfig;

import com.ptc.mvc.util.ClientMessageSource;

 

import wt.fc.PersistenceHelper;

import wt.part.WTPart;

import wt.pds.StatementSpec;

import wt.query.QuerySpec;

import wt.query.SearchCondition;

import wt.util.WTException;

import wt.vc.VersionIdentifier;

 

//This annotation is VERY important.

@ComponentBuilder("com.co.agile.parts")

public class AgilePublishPartsTableBuilder extends AbstractComponentBuilder {

    private static final String RESOURCE = "jp.co.ui.resource.NavigationRB";

    private final ClientMessageSource messageSource = getMessageSource(RESOURCE);

 

    @Override

    public ComponentConfig buildComponentConfig(ComponentParams paramComponentParams) throws WTException {

        //get the ComponentConfigFactory

        ComponentConfigFactory factory = getComponentConfigFactory();

        //get an instance of TableConfig

        TableConfig table = factory.newTableConfig();

        // General table properties

        table.setId("com.pac.agile.parts");

        table.setSelectable(true);

        table.setLabel(messageSource.getMessage("RELATED_PARTS"));

        table.setShowCount(true);

        //table.setActionModel("agilePushTableActions");

       

        //add columns

        //name

        ColumnConfig col1 = factory.newColumnConfig("name", true);

        col1.setSortable(true);

          table.addComponent(col1);

          //number

          ColumnConfig col2 = factory.newColumnConfig("number", false);

          col2.setInfoPageLink(true);

          col2.setSortable(true);

          table.addComponent(col2);

          //type

          ColumnConfig col3 = factory.newColumnConfig("type", true);

          table.addComponent(col3);

          // Last Modified

          ColumnConfig col4 = factory.newColumnConfig("thePersistInfo.modifyStamp", true);

          table.addComponent(col4);

         

          table.setShowCustomViewLink(false);

          // If you want different column name as Display name, use setLabel("New Name") function on column

          // If you data as link use setInfoPageLink(true) function on column

          table.setView("/pac/pacPartsListTable.jsp");

        return table;

    }

 

    @Override

    public Object buildComponentData(ComponentConfig paramComponentConfig, ComponentParams paramComponentParams) throws Exception {

        QuerySpec qs = new QuerySpec(WTPart.class);

        qs.appendWhere(new SearchCondition(wt.part.WTPart.class,WTPart.NUMBER,SearchCondition.LIKE,"%RD%"), null);

        return PersistenceHelper.manager.find(qs);

       

    }

}

 

Result is like this when I click on actions command,

 

Can someone help me to figure how to get the proper table here?


Apply latest life cycle template iteration

$
0
0
Just curious if anyone has had success running the “LCReassignUtility” from the command line.

When I run it, it returns 0 affected objects for wt.epm.EPMDocument and only 11 for com.tm.DefaultEPMDocument (CAD Docs).  I should be getting around half a million.

I've double checked my OID's and my life cycle name. Any ideas?

This is on 10.2 M020.

Thanks.

Tom U.

QuerySpec for DB query

$
0
0

Hi,

 

I need to create QuerySpec using given database query below is there any way I can covert below command to queryspec

 

select pm.name as PartName, pm.WTPARTNUMBER as PARTNUMBER, pr.NAMECONTAINERINFO as PRODUCTNAME from wtpart p, WTPARTMASTER pm, PDMLINKPRODUCT pr

where p.IDA3MASTERREFERENCE = pm.ida2a2 and p.IDA3CONTAINERREFERENCE = pr.ida2a2 and pr.NAMECONTAINERINFO = 'Test';

Overview on Windchill Product Analytics

$
0
0

Hi All,

 

Can anyone share any guide or reference for some inputs on what Windchill Product Analytics is ?


As i had browsed in google about WPA it gave inputs either about Windchill Cost or Windchill Materials and Substances. So apart from these two are there any other modules in WPA ? If yes what are they ?


So if anyone can find some guide or reference material about WPA I do request you to please share the same so that I can get more inputs on what WPA is all about and how to configure and customize it.


Thanks in advance.


Best Regards,

Aditya Achanta

Out of Date Check - how does it work?

$
0
0

Hi,

Wondering about the preference available at site level, in the workspace section, called "Out of Date Check":

out_of_date_check.png

I set it to "yes" so that users would be notified about out-of-date objects, as the following screenshot teases:

https://thingworx.ptc.com/apps/solution_preview/solution/lang/presolution?lang=en&n=CS47173

(Which shows a clock icon at the top of the table near the "Pick an action" drop down)

 

But the preference doesn't seem to have any effect for me and I haven't been able to see this aforementioned out-of-date icon.

 

This is what I tried:

Using Creo 2, connected to Windchill 10.2 using the internal Mozilla browser.

 

Added a revision 0.1 model to my workspace.

Another user checked out this model, modified it and checked back in; Commonspace now is at 0.2.

My workspace shows no notification, even after I wait 5 minutes, nothing happens; I try to refresh the page -nothing...

 

 

does anyone know if this functionality could be working for us ? We use Windchill 10.2 and Creo 2.0.

Maybe I'm not expecting it to work the way it is intended...

Is there is there some auto-refresh setting that I am missing?

Only Pro/Engineer Authored CAD Documents are valid for export.

$
0
0

I am trying to export files that were non native , that is a visio drawing .vsd, and a Microsoft Word document .docx. These were imported ok into my Windchill PDM Link.10.2 workspace as dynamic documents, but I cannot export them. I get the error shown in the topic title.

Has anyone encountered this and have a workaround?

Thanks

Query Builder: Move

$
0
0

Hi All,

 

I've been searching around but haven't been able to find anything on reporting on Move's in Windchill.

 

 

Would anyone be able to help me with a couple of questions:

 

- What table is the move history of an object stored in in the Query Builder?

 

- What is the correct way to join this table to the EPM Document to get a move history as well as the times of the moves?

 

 

Any help would be greatly appreciated!

 

Many thanks,

How do I give a user temporary access?

$
0
0

If I want to give an external company and its users temporary access to our Windchill data (5-6 months) how would i go about doing that.  Can I create a schedule to deactivate them?  I'd like to avoid having to put an item in my calendar and make it more automatic.


Never Built : Error With Wt Part Structure.

$
0
0

We have an assembly say xyz.asm who's part Structure shows excluded. (Information Page of CAD Assembly --> Action --> Compare Part Structure --> On Wt Part Structure window all part shows Exclude)

 

When I compare its CAD Structure (Information page of WT Part xyz.asm --> Action --> Compare CAD Structure --> Never Built: The Part and CAD Document have been never Built. The Build CAD Structure action will update the existing CAD Document use and CAD Document to have the same attributes as the parts.

 

How do I resolve this Issue?

 

 

Thanks & Regards

 

Kshitiz

Where can I find instruction about how to create Modeled Attributes?

$
0
0

 

We are trying to link a part to a document instead of typing the part number; we would like to a create a modeled attribute to use a “picker.” We just do not know how to do it. I can’t find any instructions about how to create a modeled attribute. All I have found on modeled attributes is this: “Modeled attributes are programmed in Java and cannot be created using the Type and Attribute Management tool”

 

We would like to know what we need to do it and how we do it.

 

Thanks!

Capture.JPG

Running WC 11.0 M020-CPS03 - Can anyone tell me which components of Windchill still require Java?

$
0
0

I realize that we are supposed to be at Java 8 Update 76 or above,  But I would like to know what parts of Windchill still use Java and what happens if the Java version isn't at Java 8 Update 76.

 

Please Advise

How to use Windchill's Spreadsheet Upload to attach Describe_By and Referenced_By Document numbers to a Part

$
0
0

I have datasheets and request emails to attach to parts, hundreds at a time.

I don't want to use the commandline (NMLoader) method, although i have in the past, one reason is that it leaves no traces (iterations).

Is there a way to use ImportSheetType=Document, can I see an example please?

I have been creating parts using Import From Spreadsheet, that works well most of the time.

Hans Schulze

 

I am surprised that online help doesn't mention this function much.  Was there a manual or guide written for it?

I have modified OIR of an object but it is not reflecting

$
0
0

hi viewers,

 

I have modified the OIR of a Part type related to numbering. But it is not reflecting while I am going for creation of new part.

why it is happening...?

how to write business rules..?

$
0
0

hi viewers,

 

I would like to know more about business rules and how to write it ? I s there any related information or videos please share it with me ?

How to Customize Affected Objects View Table

$
0
0

i need to add an editable Additional Comments column to Affected Objects table to be used in Problem Report and Change Request.

How do i do that?

1. created new attribute called ADDITIONAL_COMMENTS

2. added to Affected Activity Data type, wt.change2.AffectedActivityData.

3. i updated the com.ptc.windchill.enterprise.change2.change2clientResource.java with the following:

@RBEntry("Additional Comments")

@RBComment("Label to be used in the Table Views")

public static final String CHANGE_LINK_DESCRIPTION2 = "CHANGE_LINK_DESCRIPTION2";

4. updated the wncWeb.jar file

 

- what else do I need to do??

- I want to make this attribute editable while adding parts to Affected Objects. Right now, it does not allow to do so.

The only OOTB attribute it Comments is editable.


question for Automatic build of customizations via BIF

$
0
0

I am trying to setup Jenkins project to deploy automatically.

Now the source package generated(jar file) via ant script contain “java -jar BIFSDK-*.*.*.**.jar dist”  command.

Then next step should be make batch script to deploy the source package to Windchill server.  but  my issue is

how to make script, that the tools opinion can be selected by script after executing the command "java -jar XXXXXXDist.jar install"?

pls see the screenshot below.

 

issuePic.png

How to get any object team and there roles, groups and users from database script

$
0
0

Hello,

 

I am trying to create a database script from which I can get the any business object team --> (group, Role ) --> users as of now I am able to get the Object team and roles but in Role I am not able to get users from the Roles can any one please help how I can find this

 

here is the script I have wrote

 

select WTPARTMASTER.WTPARTNUMBER  as PART_NUMBER ,WTPARTMASTER.NAME  as PART_NAME ,  TEAMTEMPLATE.NAME as TEMPLATE_NAME ,ROLEPRINCIPALMAP.ROLE from TEAMTEMPLATE, ROLEPRINCIPALMAP, WTPART, WTPARTMASTER

where WTPARTMASTER.IDA2A2 = WTPART.IDA3MASTERREFERENCE and WTPARTMASTER.WTPARTNUMBER = '0000000161' and TEAMTEMPLATE.IDA2A2 = ROLEPRINCIPALMAP.IDA3A4

and WTPART.IDA3TEAMTEMPLATEID = TEAMTEMPLATE.IDA2A2;

Access control from read-only on latest Revision

$
0
0

Hi,

 

I want to set access permissions to a role  to have access of read-only on latest version of released CAD document.

1.png2.png3.png

 

Can anyone suggest which permissions do I need to set.

 

Thanks & Regards,

Irfan

How to get BOM or Product structure externally using Info Engine API?

$
0
0

I'm new to Windchill and Info Engine.

Here is where I am at in my learning process:

- I have been able to run the default tasks that I found on this WSDL (<host>/Windchill/servlet/SimpleTaskDispatcher?CLASS=com.ptc.windchill.ws&VERSION=1.1&STYLE=document) using SOAP.

- I am also able to create tasks using the Info Engine Task Editor and then run them externally with a http request.

 

I'm trying to query a product structure externally based on some user input (product name). I need each parts' structure level, number, name, version, quantity and unit.

Ideally i would prefer not having to modify the server at all and use only out of the box tasks, but can modify if necessary.

 

Looking through the documentation I found the following task that looks like it is exactly what i'm looking for.

_______________________________________________________________________________________________________________

Multilevel_BOM_Report

com.infoengine.connector.Group Multilevel_BOM_Report (String partOid, String locale, String hostName, String sessionId, String moduleName, String ncId)

Queries for a product structure and returns a multi-level Bill of Materials. {resourceBundle: com.ptc.windchill.enterprise.reports.bomReportsRB}


Parameters:

          partOid - Specifies the top level part object Id.

          locale - Specifies the locale.

          hostName - Specifies the host name.

          sessionId - Specifies the session Id.

          moduleName -

          ncId -


Returns:{columns: java.lang.String level, java.lang.String indent, java.lang.String image, java.lang.String numberURL, java.lang.String Number, java.lang.String Version, java.lang.String Name, java.lang.String orgName, java.lang.String usedLineNumber, java.lang.String usedFindNumber, java.lang.String quantityAmount, java.lang.String quantityUnit, java.lang.String State, java.lang.String refDesignator, java.lang.String orgIdLabel, java.lang.String orgIdRef, java.lang.String recursivePath[4000], java.lang.String recursiveMark, java.lang.String recursive}


Task:

/com/ptc/windchill/enterprise/reports/WBRMultiLevelBOM.xml

_______________________________________________________________________________________________________________

 

My problem is, i'm not sure how to call this externally. Is there a WSDL that includes this? If so how do i find it?

I tried:

<host>/Windchill/servlet/SimpleTaskDispatcher?CLASS=com.ptc.windchill.enterprise.report.ReportTask&STYLE=document&VERSION=1.1

but that returns an empty xml document. I also can't find the URL to call it with a direct http request.


Any help would be greatly appreciated.


-Jon

removing product

$
0
0

Forgive me if this has already been asked before but is there a way to remove product from the product side in PDMLink?

Any help is greatly appreciated!

Thanks!

Viewing all 5797 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>