cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Create Dynamic Documents from the Information Structure

Create Dynamic Documents from the Information Structure

Customers would like to create new dynamic documents in the context of an Information Structure.

They ask for a new action in information structure nodes that allow the creation of a new dynamic document from a template and insert it into the current node.

The use case is to search, rather than browse, for information structure nodes (e.g. by attribute) and, once found, add a new dynamic document to it.

5 Comments
slawson
1-Newbie

Hi Alessio,

Just as a heads up. From X22 M030 onwoards the SIM 'Information Structure' can create Dynamic Documents.

The creation is very similar to the WTDocument from and has proven propular with cusotmers and GSO.

Thanks,

-Stephen

Create Dynamic Document.png

Alessio
15-Moonstone

Thanks for the heads up, Stephen.

I noticed that all DITA topics inserted from the same dynamic document template get the same ID (the ID of the template).

This is not a problem in DITA, but I guess it makes sense when creating a dynamic document DITA template to use a generic id for each toipic type, such as "topicid" in order to better communicate that that specific DITA  dynamic document has been generated from a template.

I'd consider this more of a style guide than anything else.

Alessio

WindchillTeamDA
3-Visitor

Alessio,

make sure your xml-document (the template to be) has the following attributes on the root:

<topic xmlns:onSave="http://www.arbortext.com/namespace/onSave"

onSave:updId="onsave::generateIDOnFirstSave id"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:noNamespaceSchemaLocation="urn:ptc:names:arbortext:dita:xsd:techinfo.xsd">

Add those with a normal text editor.

Open the template in Arbortext Editor and DO NOT SAVE and DO NOT SAVE AS SERVER OBJECT.

Use instead from the AE commandline

save_as_windchill_template_source()

put everything in Windchill and use this document as a template.

You can create now new documents in SIM and those documents will get a new and unique ID, once they're check-in the first time from AE.

Kind regards,

Andreas from WindchillTeam@DATACOPY

Alessio
15-Moonstone

Andreas,

I did not notice that this nice feature had been added to 6.1 F000.

Thank you!

PTCModerator
Emeritus
Status changed to: Archived