Quantcast
Channel: PTC Community: Message List - Windchill
Viewing all 8876 articles
Browse latest View live

Re: language of a lifecycle state does not behave like other states

$
0
0

you need to use the enumcustomize Windchill shell utility. Navigate go %WT_HOME%\codebase\wt\lifecycle\StateRB.RB.ser --> select the Spain language and change it to the value you need. Save and close the utility.

Afterwards you need to run the following command:

ant -f ./codebase/MakeJar.xml custUpdate

Restart Windchill and finished!


Re: QML report to retrieve all collected items in a managed collection

$
0
0

Haven't yet played with it but suspect that the criteria PersistedCollectionLiveLink.roleBisSeed required to be true might be the key.  Seems that this may be responsisble for filtering out to include only the initially selected objects.

 

Will play with this when I get time - interested in this report also in general.

Re: PBO Attribute captured in a workflow

How do I audit individual user activity in PDM Link 10.2?

$
0
0

I need to audit the activity that is, what folders, docs, files that the person is accessing in Windchill PDM Link 10.2.

How do I generate a report or see this?

Re: PBO Attribute captured in a workflow

$
0
0

Thanks for the information, I was able to come up with code for the exp robot based on our consultants and Ben's help!

 

com.ptc.core.lwc.server.PersistableAdapter obj = new com.ptc.core.lwc.server.PersistableAdapter((wt.fc.Persistable)primaryBusinessObject,null,java.util.Locale.US,null);
obj.load("IBAInternalName");
"Variable"= (String)obj.get("IBAInternalName");

Re: How do I audit individual user activity in PDM Link 10.2?

$
0
0

I created a Saved Search called 'Search by User' to helps me find what people have changed and then use the Modified By and Last Modified fields because that also includes objects Created By them. If needed, I would do a separate search to see if they have anything Check Out. You can add more or less Criteria as needed and leave them blank if they're not needed.

 

Search Windchill by User.jpg

 

This doesn't capture what they've been looking at but not modifying.

Re: How do I audit individual user activity in PDM Link 10.2?

$
0
0

Thank you Lucas, you provided me the answer I was looking for! Really helped me a bunch! Wishing you the best!

Re: How do I audit individual user activity in PDM Link 10.2?

$
0
0

If you get real ambitious, Security Audit Reporting (see Site, Utilities, at the bottom) includes a lot more - including every Product / Library accessed, what files downloaded, etc.  Just have to set each to TRUE in configaudit.xml.


Re: How do I audit individual user activity in PDM Link 10.2?

$
0
0

Mike will that flood my PTC Logs directory with verbose logging?

Re: How do I audit individual user activity in PDM Link 10.2?

$
0
0

Doesn't go in the logs that I know of.  Populates a database table with "audit" in the name - forgot which one.  Have to periodically purge (from the same area - Site, Util, Sec Audit Reporting.

Re: How do I audit individual user activity in PDM Link 10.2?

$
0
0

Ok Mike I am going to give it a go and report my results, thanks!!

Re: How do I audit individual user activity in PDM Link 10.2?

$
0
0

So, about editing configAudit.xml:

- is done on the Windchill server

- directly edit the text file (unusual - no xconf file involved); make a backup copy before editing just in case

- have to restart Windchill to make effective

- the lines in the file are not all that straight-forward to understand what they do; I would create a tech support case asking PTC exactly what lines to make from false to true to record the events of interest

 

Can see how many records are created every so often either by querying the database table directly or by starting to purge the records and then canceling

Corrupted WTPart number

$
0
0

Hello,

 

We have a set of WTPart part number. We are unable to load them in Windchill as it gives an error message of "Uniqueness"; neither we can find (search) them in Windchill, so that we can delete the set and reload them or modify them.

 

These WTPart part numbers were loaded in Windchill earlier as NLAG file type. Later the file try was changed to ZKIT file type. Once the file type was changed, the part numbers were vanished from the system. I am able to view the details through SQL query, but unable to locate them in Windchill and delete them.

 

We change the part type with the process that are listed in the document number CS7287 (https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS7287&posno=1&q=ChangeTypeSql&source=search).

 

Please review and suggest.

 

Thanks,

Yogesh

Re: Force Workflow Comment on Approve Vote

$
0
0

Archit,

Please confirm that your java code is placed in the Complete transition of your workflow task.  Do you have a screenshot?

 

Below is an example from one of my workflows.  This is actually a workflow that is routed on a WTDocument PBO.  One of the next steps is a Set State robot.  So I want to make sure the WTDocument PBO is checked in before completing the workflow task.  That is what the code does.  If the WTDocument is checked out, then when the user clicks on the Complete Task button, it will throw an error and the task cannot be completed until the document is checked in.

 

2017-01-03_19-54-13.jpg

Re: RE: Drawing approver name from Windchill into the proe drawing

$
0
0

Matthias,

I'm sorry - I'm not aware of tutorial or documentation about creating external classes.  I just kind of learned it on the fly.  I'm sure there is something out there ... and perhaps someone in this community will reply and help us out right away.

 

Here are some very rough guidelines:

  1. Create custom java code in <WT_HOME>/src/ext/MyCustomClass.java
  2. Compile the custom code into <WT_HOME>/codebase/ext/MyCustomClass.class
  3. In the MyCustomClass.java file, you'll have methods that can be called from the workflow.  For example - ext.MyCustomClass.doSomething().

Re: Force Workflow Comment on Approve Vote

$
0
0

Ben

 

Thanks for the reply, I was able to figure out the cause.
Although my code was present in the complete transition, I had checked the following under Execution Options:

Process.JPG
After i unhecked the above option I was able to achieve the desired result.

 

Thanks

Archit Todi

Re: i have written a validator to check the duplicacy in the multi value attribute called "Production Plant" in both create and checkout and edit page...But i could accomplish this only in create page.

Problem when migrating customs TableBuilder from Windchill 10 to Windchill 11

$
0
0

Hello Windchill's gurus and Happy New Year everyone,

 

I'm on a team to migrate a Windchill 10 application to Windchill 11.

I found something strange with the customs TableBuilder, construct with an AbstractComponentBuilder :

 

First we have a lot of customs builder in our Windchill project, we found a workaround solution but it's not acceptable because it works before

and we need to find why it's not working anymore. It impacts a lot of builders in our project.

 

We have a Bean class that reference a line in the TableBuilder.

bean.png

There's a getter called getFileName which work correctly on Windchill 10 to show the file name.

 

Then the TableBuilder :

Builder01.png

Builder02.png

Here is my problem : "factory.newColumnConfig(fileNameColumn, true)" //(fileNameColumn = "fileName")

When I refresh my builder in Windchill, the File Name column don't show anything.

When debugging I find the method TablesFileBean.getFileName() was never be called by the invoke method.

Instead the method TablesFileBean.getOid() was called.

 

The workaround solution was to change :

- the TablesFileBean.getFileName() by TablesFileBean.getFileName2()

- fileNameColumn = "fileName" by fileNameColumn = "fileName2"

 

With this solution the TableBuilder show the information correctly.

When debugging the method TablesFileBean.getFileName2() was used.

It looks like the Windchill 11 AbstractComponentBuilder used the value "fileName" for an other behavior.

 

Edit : another solution was to delete the method TablesFileBean.getOid() and it work too...

But I loose the possibility to use the oid of each of line.

 

Do you guys have any idea of why this behavior occurred in the new Windchill 11 ?

 

Greetings

Re: Conditional routing based on Document attributes

$
0
0

Happy New Year Ben,

 

Thank you for your tip. I will test it in our development environment and I will let you know.

 

Regards

John

What controls access to the notebook in pdmblink

$
0
0

What controls access to the notebook in pdmblink

Viewing all 8876 articles
Browse latest View live


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