<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Scripting: Create Linked Item in proj management -tab of a certain Item in Fusion Manage Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9685328#M1263</link>
    <description>&lt;P&gt;Yes,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you create the new item (WS2), you can add a linking picklist to the parent item (WS1). Then, using an on create script on the new item (WS2), you can load the other item (WS2 - item.picklist) and add it to the PM tab of the related item (WS1).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So WS2 is linked to the PM Tab of WS1 and WS2 has a linking Picklist on the details tab pointing to WS1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is that what you're after?&lt;/P&gt;</description>
    <pubDate>Tue, 11 Aug 2020 15:57:55 GMT</pubDate>
    <dc:creator>tony.mandatori</dc:creator>
    <dc:date>2020-08-11T15:57:55Z</dc:date>
    <item>
      <title>Scripting: Create Linked Item in proj management -tab of a certain Item</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9685190#M1259</link>
      <description>&lt;P&gt;So let me sketch the situation: I have two workspaces WS1 and WS2. If an item enters a certain state in WS1, an item is created in WS2. This newly-created item should be linked in the Project Management -tab of a certain item in WS1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I define this? Is this possible via scripting or should I need to look at other options?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Toon&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 14:32:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9685190#M1259</guid>
      <dc:creator>Toon.Broothaerts</dc:creator>
      <dc:date>2020-08-11T14:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting: Create Linked Item in proj management -tab of a certain Item</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9685243#M1260</link>
      <description>&lt;P&gt;You can create the new item with the createNewItem library script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To add to the pm tab, you can use something like this:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;item.project.addTask(itemX);
&lt;/LI-CODE&gt;
&lt;P&gt;Does that help?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 15:04:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9685243#M1260</guid>
      <dc:creator>tony.mandatori</dc:creator>
      <dc:date>2020-08-11T15:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting: Create Linked Item in proj management -tab of a certain Item</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9685307#M1261</link>
      <description>&lt;P&gt;Creating the item is already in place. It's the linking that I want to solve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Doesn't the following code just create the link in the Project Management of the current item?&lt;/P&gt;&lt;PRE&gt;item.project.addTask(itemX)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 15:44:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9685307#M1261</guid>
      <dc:creator>Toon.Broothaerts</dc:creator>
      <dc:date>2020-08-11T15:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting: Create Linked Item in proj management -tab of a certain Item</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9685320#M1262</link>
      <description>&lt;P&gt;Not clear your issue, and why Tony's answer doesn't solve it for you?&lt;/P&gt;&lt;P&gt;In your WS1 action script, have something like this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var newItem = createNewItem(... etc in WS2);&lt;BR /&gt;item.project.addTask(newItem);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that not what you need?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 15:54:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9685320#M1262</guid>
      <dc:creator>philipfrench</dc:creator>
      <dc:date>2020-08-11T15:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting: Create Linked Item in proj management -tab of a certain Item</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9685328#M1263</link>
      <description>&lt;P&gt;Yes,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you create the new item (WS2), you can add a linking picklist to the parent item (WS1). Then, using an on create script on the new item (WS2), you can load the other item (WS2 - item.picklist) and add it to the PM tab of the related item (WS1).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So WS2 is linked to the PM Tab of WS1 and WS2 has a linking Picklist on the details tab pointing to WS1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is that what you're after?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 15:57:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9685328#M1263</guid>
      <dc:creator>tony.mandatori</dc:creator>
      <dc:date>2020-08-11T15:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting: Create Linked Item in proj management -tab of a certain Item</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9687026#M1264</link>
      <description>&lt;P&gt;Hi Philip, nice to hear from you again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not 100% sure that what you guys are saying will solve the problem. I think what you and Tony described, will create the Item Link in the active item (in which this script was written).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The new item from WS2 needs to be Linked to a fixed item of WS1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me explain:&lt;/P&gt;&lt;P&gt;WS1= Development Projects&lt;/P&gt;&lt;P&gt;WS2= Technical Verification Projects&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When a certain Development Project "D-00761" in WS1 enters a certain state, a Technical Verification Project "TV-00761" is created in WS2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to link this TV-00761 to a fixed Development Project "D-TV-2020", where all TV projects who are created out of a D project will be linked to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I still making sense? Thank you guys, for taking time to help me out.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 12:43:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9687026#M1264</guid>
      <dc:creator>Toon.Broothaerts</dc:creator>
      <dc:date>2020-08-12T12:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting: Create Linked Item in proj management -tab of a certain Item</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9687032#M1265</link>
      <description>&lt;P&gt;Hey, this option might work. I will explore the "linking picklist", I have never used it before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tony, do you maybe know some documentation which could explain the way Linking Picklists work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 12:41:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9687032#M1265</guid>
      <dc:creator>Toon.Broothaerts</dc:creator>
      <dc:date>2020-08-12T12:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting: Create Linked Item in proj management -tab of a certain Item</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9687062#M1266</link>
      <description>&lt;P&gt;A linking picklist is just a workspace picklist. You can set the value programmatically using a string that matches the entry. I usually use the descriptor as the text: as long as you provide the exact text of the descriptor, you can set the value of the picklist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a side note, after you set the value, you can pick up attributes on the related item as well - this is powerful as you don't need to find the item to set the picklist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://help.autodesk.com/view/PLM/ENU/?guid=GUID-7EB1C249-A3F4-4B52-8829-B03D276AF899" target="_blank"&gt;http://help.autodesk.com/view/PLM/ENU/?guid=GUID-7EB1C249-A3F4-4B52-8829-B03D276AF899&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 12:49:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9687062#M1266</guid>
      <dc:creator>tony.mandatori</dc:creator>
      <dc:date>2020-08-12T12:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting: Create Linked Item in proj management -tab of a certain Item</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9687077#M1267</link>
      <description>&lt;P&gt;If you add a linking pick list field in your WS2 which links to WS1 and name this field "DEVELOPMENT_PROJECT", then you can easily store the link in this field upon creation like this:&lt;/P&gt;
&lt;PRE&gt;var newItem = createNewItem("WS2");&lt;BR /&gt;newItem.DEVELOPMENT_PROJECT = item;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 12:55:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9687077#M1267</guid>
      <dc:creator>sven.dickmans</dc:creator>
      <dc:date>2020-08-12T12:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting: Create Linked Item in proj management -tab of a certain Item</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9687277#M1268</link>
      <description>&lt;P&gt;I do this all the time, but it's not as straight forward as it sounds. I believe that if you create an item in WS2 that you want to link to a record that creates it in WS1, you can't do it in the same script. The problem is that the item in WS2 does not exist until the script finishes so you can't actually link it to WS1 in the script where you create it. I have gotten around this by creating an on-save script in WS2 that reads a field containing the record from WS1. This lets you load the record in WS1 that created the item in WS2. You can then set a picklist in WS1 to the item you created in WS2. It is something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Script in WS1&lt;/U&gt;&lt;/P&gt;&lt;P&gt;newItem = createnewitem(WS2)&lt;/P&gt;&lt;P&gt;newItem.WS1RECORD= item&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;On-save script in WS2&lt;/U&gt;&lt;/P&gt;&lt;P&gt;WS1item = load(item.WS1RECORD)&lt;/P&gt;&lt;P&gt;WS1item.WS2ITEM = item&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 14:22:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9687277#M1268</guid>
      <dc:creator>bryce_crawford</dc:creator>
      <dc:date>2020-08-12T14:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting: Create Linked Item in proj management -tab of a certain Item</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9697071#M1269</link>
      <description>&lt;P&gt;The way i do it is have a field that links to the main workspace. Then on the workflow action of "Create" or whatever your first transition is called I look to see if the field is filled in (actually mandatory on creation) and then write to the project&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if (item.RELATED_NPI_PROJECT !== null)&lt;BR /&gt;{&lt;BR /&gt;item.RELATED_NPI_PROJECT.project.addTask(item);&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 10:33:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9697071#M1269</guid>
      <dc:creator>dave_marshall_d11</dc:creator>
      <dc:date>2020-08-18T10:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting: Create Linked Item in proj management -tab of a certain Item</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9697513#M1270</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5289216"&gt;@dave_marshall_d11&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the field is a linking picklist with field ID "&lt;SPAN&gt;RELATED_NPI_PROJECT&lt;/SPAN&gt;"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this works quite good. The only thing I'm missing here is: I would like to link to a pre-defined project in the workspace, how can I make sure it links to that project? (how can I hard code it?)&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 14:29:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9697513#M1270</guid>
      <dc:creator>Toon.Broothaerts</dc:creator>
      <dc:date>2020-08-18T14:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting: Create Linked Item in proj management -tab of a certain Item</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9697548#M1271</link>
      <description>&lt;P&gt;&lt;EM&gt;And the field is a linking picklist with field ID "RELATED_NPI_PROJECT&lt;/EM&gt;&lt;SPAN&gt;&lt;EM&gt;"?&lt;/EM&gt;&amp;nbsp; Yes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;when you spawn the WS2 item you can state the linking field to be the WS1 item.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the case using the field names I've stated, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var newProperties = [];&lt;BR /&gt;newProperties.RELATED_NPI_PROJECT = item;&lt;BR /&gt;*****&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;****&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;******&lt;BR /&gt;createNewItem('WS_****', newProperties);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;obviously depends on the how you spawn your items&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;hope that makes sense&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 14:33:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9697548#M1271</guid>
      <dc:creator>dave_marshall_d11</dc:creator>
      <dc:date>2020-08-18T14:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting: Create Linked Item in proj management -tab of a certain Item</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9699255#M1272</link>
      <description>&lt;P&gt;Looking at the last message you sent me, do you need a space after the - so the text ends ......&amp;nbsp; all - ';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;depends on your settings&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 08:22:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9699255#M1272</guid>
      <dc:creator>dave_marshall_d11</dc:creator>
      <dc:date>2020-08-19T08:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting: Create Linked Item in proj management -tab of a certain Item</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9699266#M1273</link>
      <description>&lt;P&gt;reposted so it is in reply to you / not me&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at the last message you sent me, do you need a space after the - so the text ends ......&amp;nbsp; all - ';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;depends on your settings&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 08:26:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9699266#M1273</guid>
      <dc:creator>dave_marshall_d11</dc:creator>
      <dc:date>2020-08-19T08:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting: Create Linked Item in proj management -tab of a certain Item</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9699408#M1274</link>
      <description>&lt;P&gt;Yes I believe it had something to to with the String. It's solved now and works like a charm, thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 10:05:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/scripting-create-linked-item-in-proj-management-tab-of-a-certain/m-p/9699408#M1274</guid>
      <dc:creator>Toon.Broothaerts</dc:creator>
      <dc:date>2020-08-19T10:05:56Z</dc:date>
    </item>
  </channel>
</rss>

