Quantcast
Channel: PTC Community : All Content - Windchill
Viewing all 6049 articles
Browse latest View live

DataUtility for enable/disable input field

$
0
0

Hi.

I need to configure ColumnConfig in my tree thus so that some rows have editable textfield, and only empty labels in others.

As far as i know this problem can be solved by setting DataUtility for ColumnConfig.

The question is what GuiComponent should i use?

Thanks.


MCAD Data Management Creo 2.0 With Windchill 10.1

$
0
0

Hey Guys.

 

                    Anyone please share with me the MCAD data management with windchill 10.1 for creo parametric 2.0 users full guide with me.

 

thanks

I want to add Check-IN comments through code.

$
0
0

I want to add Check-In comments to an existing object without Iterating it. Is there any way to do that? Snipet would be really helpful.

How to configure AttributePanel width value when customize a AttributesComponentBuilder?

$
0
0

dear all

 

I encounter a cusomization prolbem with  AbstractAttributesComponentBuilder for build a wtdocument in wizard step.

After I configure universal language . The html  table sytle is not as expected.

 

This is piecess source code.The attribute attach customize dataUtility.

  
@TypeBased({"com.XXXXXXX.XXXXXXXXXXXXXXXXXXX"})
@ComponentBuilder({"XXXXXXXXXXXXXXXX.MaterialSpecSchedule"})publicclass XXXXXXXXXXXX  extends AbstractAttributesComponentBuilder{            @Override          public AttributePanelConfig buildAttributesComponentConfig(ComponentParams paramComponentParams) throws WTException{                       Object obj= paramComponentParams.getContextObject();                      ComponentConfigFactory localComponentConfigFactory = getComponentConfigFactory();                     com.ptc.jca.mvc.components.JcaTypedAttrLayOutFactory tfactory= new     com.ptc.jca.mvc.components.JcaTypedAttrLayOutFactory();                     AttributePanelConfig localAttributePanelConfig           =localComponentConfigFactory.newAttributePanelConfig();           String s = com.ptc.jca.mvc.components.JcaComponentParamsUtils.getInstance().getContextObjectClassName((com.ptc.jca.mvc.components.JcaComponentParams)paramComponentParams);                     localAttributePanelConfig.setType(s);                      localAttributePanelConfig.setComponentType(ComponentType.WIZARD_ATTRIBUTES_TABLE);                      GroupConfig localGroupConfig2 = localComponentConfigFactory.newGroupConfig("lwcGroupNameOutputVoltageCurrentGroup");                    localGroupConfig2.setLabel("Output Voltage & Current");                      com.ptc.mvc.components.AttributeConfig  columnConfig= localComponentConfigFactory.newAttributeConfig("outputVoltageCurrent");                    columnConfig.setDataUtilityId("voltageDataUtility");                      localGroupConfig2.addComponent(columnConfig);                            localAttributePanelConfig.addComponent(localGroupConfig2);                    return localAttributePanelConfig;          }           protected ComponentType getComponentType(ComponentParams paramComponentParams, ComponentMode paramComponentMode){                      return ComponentType.WIZARD_ATTRIBUTES_TABLE;            }} 

 

 

I also try to disable all customlize.The result is same.

 

How can I do to delete the style value ?

Query Builder/Database Type Joins

$
0
0

Hi all,

 

I am currently trying to create a Query Builder report that retrieves information on an EPM Document and the Life Cycle Template the EPM Document is using.

 

I am familiar with the use of Joins to capture the relationship between the types, however, I am unsure how to create the join for these two types.

 

To explain further, I already use a join to link between EPM Documents and WTParts:

 

FromReferenceTo
EPMBuildRuleRole AObject RefEPM Document
EPMBuildRuleRole BObject RefWTPart

 

Similarly, I use EPMDescribe Link to create a join between EPM Document Master and the related drawing.

 

Can anyone help me identify the link between EPM Document and Life Cycle Template?

 

If there is a way of figuring out any of these links (perhaps by viewing the database structure) this would also be a great help.

 

Thanks for your time,

 

Tris

Configuring Windchill SMTP

$
0
0

I've spent the past few days trying to troubleshoot this problem, but I've run out of ideas.

 

I'm trying to setup the SMTP configuration so Windchill can send emails. I have a gmail account set up for the purpose, and I've taken the following steps:

 

wt.mail.mailhost=smtp.gmail.com

wt.mail.port=587

(i've tried combining them into mailhost=smtp.gmail.com:587 with no difference)

wt.mail.properties=$(wt.home)$(dir.sep)mail.properties (contains property info for username and password of gmail account)

wt.mail.from=*email address for gmail account"

 

EMailQueue is running, and it shows when I try to send an e-mail through Windchill, but it fails, claiming "Can't send command to SMTP host" in the message attribute.

 

MethodServer window shows the following:

 

INFO  : wt.system.out *admin* - EMailMessage message submission failed

INFO  : wt.system.out *admin* - EMailMessage Can't send command to SMTP host

 

No other exceptions appear to be thrown.

 

I've tried this on multiple ports (25, 587), and with multiple e-mail hosts and accounts. I can telnet into the smtp servers through these ports from the machine running Windchill, so they aren't being blocked. I can't telnet into any of them on port 465 (the client crashes for some reason) but I read somewhere that Windchill doesn't support SSL with SMTP anyway so I didn't bother with it further; for the record, when I try using 465, the message changes to "Can't connect to SMTP host" with reponse=-1

 

I'm running 10.1 on a test server, so it shouldn't have anything complicated on it; I do believe PTC System Monitor is installed, if that's relevant.

 

Any advice?

How to document or baseline PartsLink classification schema

$
0
0

We are building our classification schema using Counterpart (10.1 M030), to be loaded into PartsLink.

 

How are other users documenting or baselining their schema?  Also, how are you sharing the schema for others to review prior to release?

 

Any help on what worked/did not work would be appreciated.

How to capture the download event?

$
0
0

Using which event we can capture the event which is generated at the time of downloading of Primary or secondary attachment of WTDocument


Unable to find a attachment using ContentHelper

$
0
0

Hi All

 

     Inorder to download the attachment ContentServerHelper class is used, but the method is throwing null pointer exception.

 

Here the The ContentServerHelper.service.findContentStream(Applicationdata) throws null pointer exception.

 

Please find the below code snippet for reference

 

 

                    QuerySpec qs = new QuerySpec(wt.doc.WTDocument.class);

                    SearchCondition sc = new SearchCondition(wt.doc.WTDocument.class,"master>number","=","0000078558");

                    qs.appendWhere(sc);

 

 

 

 

                    QueryResult qr = PersistenceHelper.manager.find((wt.pds.StatementSpec)qs);

 

 

 

 

                              while(qr.hasMoreElements())

                              {

                                        WTDocument wtp = (WTDocument)qr.nextElement();

 

 

                                        ObjectReference or = ObjectReference.newObjectReference(wtp);

                                        ContentItem holder = ContentHelper.service.getPrimaryContent(or);

                                        if (holder!=null)

                                        {

 

                                                  ApplicationData applicationdata = (ApplicationData)holder;

 

 

                                                  try {

 

 

                                                            String fName=applicationdata.getFileName();

 

 

                                                            System.out.println(fName);

 

                                                            InputStream inputstream = ContentServerHelper.service.findContentStream(applicationdata);

 

 

                                                            int i = 0;

                                                            String filepath="D:\\exportfiles";

 

 

                                                            File temp=new File(filepath+File.separator+fName);

                                                            String docfile = temp.getAbsolutePath();

                                                            FileOutputStream tout = new FileOutputStream(docfile);

                                                            byte abyte0[] = new byte[2048];

                                                            while ( (i = inputstream.read(abyte0, 0, abyte0.length)) >= 0)

                                                            {

                                                            tout.write(abyte0, 0, i);

                                                            }

                                                            tout.close();

                                                  } catch (WTException e) {

                                                            // TODO Auto-generated catch block

                                                            e.printStackTrace();

                                                  }

 

 

 

 

 

 

                                        }

Delinked Docs not identified in ESI

$
0
0

HI

 

We have a scenario , where in we want to delink some of the referenced Documetns from Already released part and connect with Correct documents.

We have a java program which does this.

 

After this , we are setting ESI status on distrubution target of parts modified during the process using WBM  ( which got iterated during disconnect and connect) to Success.

 

However when we release the parts modified above through UI, and make changes on Referenced Documents, it is not recognizing the changes made.

 

For Ex: Suppose Part P001 at Revision 1.1 has a refrenced Document Doc1. This part ia already released and ESI status to success.

This Doc1 from P001 needs to be disconnected.and Connect with Doc2 and Doc3.

 

Whe did disconnect and Connect P001. Part got iterated to 1.2.

 

Now using WBM , we set the ESI status on P001 at revision 1.2 to sucess, so that these changes are not sent to ESI response, when released next time.

 

 

Now when I revise the released Part at Revision 1.2 to 2.0 and disconnect Doc2 and Doc3 and Connect Doc4 through UI and release through CN, the delinked Doc info is not coming in ESI respomse.(XML file).

 

Any info on this is greatly apprciated!

 

Thanks in Advance!

 

Regards

Giridhar

How to host and configure windchill slave with master server

$
0
0

Hi,

 

I have hosted the master server successfully and copied the installation folder with the directory structure maintained to the slave server. After this, I do not know how to proceed. I have gone through some of the windchill clustering documents but didn't helped me lot.

 

Please help me with the steps and settings to host the slave server. This will really going to be valueadd for me.

 

 

.....Ravi

Using Drag-n-Drop to Upload Documents in Windchill (w/Firefox or Chrome)

$
0
0

This is a quick video showing how easy it is to use the built in drag-n-drop features of Firefox and Chrome to upload files in Windchill. This video demonstrates how to create both a single document or mulitple documents using simple drag-n-drop operations.

Adding a Logout Button in Windchill 10.X versions?

$
0
0

Hi,

 

Can someone help me in getting a Logout button in Windchill page through customisation?

 

Though I accept closing the browser would logout, still some of my functional requirements needs me to have a logout button that would close the browser window with an "alert message".

 

Please help me out.

 

Thanks in advance!

 

regards,

Amarkarthi.

Implementing rewrite rule following the solution CS57803 is not solving the purpose of redirection. Please suggest how to implement for windchill so that it can be accessible using http and https.

$
0
0

I tried to update httpdv-hosts.conf, used .htaccess, httpd.conf with same rewrite rule but none of them really works for me. Has anybody tried this in Windchill.

I am not using reverse proxy setup.

integrate Active Directory into windchill 10.1M020

$
0
0

Hello guys, Im tring to integrate Active Directory into windchill 10.1M020. Can any one tell me how to get started or any suggestions? really appreciate any replays and thanks in advance.


How to get WTChangeRequest2 and WTChangeOrder2 object from the WTDocument

$
0
0

Hi I am working on one custom report functionality for one WTDocument object where I need to display change objects in the report can anyone help me how I can retrieve WTChangeRequest2 and WTChangeOrder2 objects from the WTDocument

Loading a softtype definition via loadfile in Windchill 10.1

$
0
0

I am in the process of upgrading our development from Windchill 9.1 M060 to Windchill 10.1 M030 and ran into an issue with our load files for soft types. I took our v9.1 load files and converted them to the 10.1 format following the example files provided with the installation.  The IBAs referenced in the soft type definition have already been loaded via a different load file without errors.  When I try loading my soft type, I get an error: "Cached type attribute list is null!".  I'm trying to determine what the problem really is.  I compared my load file with the example load file and it looks like the same layout and format.  I'm looking for any advice on where to look or what changes need to be done in order for this file to load. I've attached an example load file for our IBAs, the load file as it was in 9.1, and the load file as I converted it to be used in 10.1.  I've also included a snippet from the MethodServer log.

Latest iteration refresh

$
0
0

Hi All,

 

I have a promotion request workflow in PDMLink 10.0 that has a rework loop using the following refresh expression

 

wt.maturity.PromotionNotice pn = (wt.maturity.PromotionNotice)primaryBusinessObject;

try

{

com.ptc.windchill.enterprise.maturity.PromotionNoticeWorkflowHelper.refresh(pn);

}

catch( Exception wte )

{

wte.printStackTrace();

}

 

The rework loop works fine if the promotion object is iterated once (i.e. from A.1 to A.2).  The refresh will update the promotion request to be associated with A.2.  But if the promotion object gets iterated more than once (i.e. from A.1 to A.2 then again to A.3) during rework, the refresh doesn't work and the promotion request will remain associated with A.1. 

 

Shouldn't the refresh promotion objects expression be able to update A.1 to A.3?  or is there some other way to do this?

ModelCHECK Gatekeeper - almost there...check in still being blocked...

$
0
0

Need some MC insight here,

 

I have added the required options into ModelCHECK config_init.mc file.

 

I have added the IBAs using the Type and Attribute manager in Windchill at the Organizational level.

 

Created a test part, run model check, errors are 0, try to check in and get the following (see attached image)

 

There is something really minor going on. The one thing I do not see is the MC_VERIFIED parameter being added into the part.

 

Any help would be awesome!

 

Thanks in advance,

Buddy

How to resize the table in Windchill 10.1 to show all the objects?

$
0
0

Hi,

 

We have a table which is showing the WTPart objects (100 Parts are in the table). The table is showing only 10 objects and we need to scroll down the table to see the full list of objects.

But the requirement is it should display all the objects in the table. How to achieve this requirement?

 

 

Thanks

Selva

Viewing all 6049 articles
Browse latest View live


Latest Images

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