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

Re: Re-Type a Document (change soft-type)?

$
0
0

Indeed this has been kicked around several times.  It is covered best with PTC documents CS7287 and CS52368.  They basically say the same thing.

 

CS7287 is the preferred source.  There are .class files that need to be downloaded and put into your codebase if you haven't already done it at some other point in time.

 

Note that the output from the tool will give you database command(s) that will change all objects from one type to another type.  If that is not your intention, then you'll need to modify the command(s) before executing them.  For example, I joined in the WTDOCUMENTMASTER table so that I could input specific WTDOCUMENTNUMBER values.  An example is below.

 

--Update WTDocs from any type to "EATS Document" type
drop table wtdocument_bak;
create table wtdocument_bak as select * from wtdocument;

UPDATE WTDocument b
SET branchIdA2typeDefinitionRefe = 512941047, idA2typeDefinitionReference = 514725322
WHERE exists
  (select *  from wtdocumentmaster a  where b.ida3masterreference=a.ida2a2 and a.WTDOCUMENTnumber like 'EATS%'  );

commit;

Viewing all articles
Browse latest Browse all 8876

Trending Articles



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