<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Populate ProjectWise System Attribute value in an Environment attribute</title><link>https://communities.bentley.com/products/projectwise/f/projectwise-di-forum/195681/populate-projectwise-system-attribute-value-in-an-environment-attribute</link><description>I want to update value of system attribute STATE in an Environment attribute. For Example If STATE is IN PROGRESS then this should update into an Environment Attribute. I thought System variable will have this value but it is not so it look like I will</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Populate ProjectWise System Attribute value in an Environment attribute</title><link>https://communities.bentley.com/thread/586162?ContentTypeID=1</link><pubDate>Tue, 12 May 2020 12:24:18 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:6ad4f015-28c9-438e-84a2-9b7285b72309</guid><dc:creator>Qadeer Hussain</dc:creator><description>&lt;p&gt;Thanks - got it. I will have to change the rule engine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Populate ProjectWise System Attribute value in an Environment attribute</title><link>https://communities.bentley.com/thread/586158?ContentTypeID=1</link><pubDate>Tue, 12 May 2020 12:09:48 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c6cbf44b-40c7-41ed-aabd-42d41f42f54f</guid><dc:creator>Andzej Prokopovic</dc:creator><description>&lt;p&gt;The attribute value update depends on the setting for attribute update. It can be updated when a specific attribute from the same environment is updated or any attribute from the same environment is updated. This is how it works. If you would set that new attribute to be updated when any attribute in the environment is&amp;nbsp;changed then value for that attribute should be updated as well. If during the state change non of the attributes of that environment are updated then this new attribute will not be updated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Populate ProjectWise System Attribute value in an Environment attribute</title><link>https://communities.bentley.com/thread/586150?ContentTypeID=1</link><pubDate>Tue, 12 May 2020 11:48:05 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:9cbbe549-bb00-4e03-90e8-9bcea5937b2b</guid><dc:creator>Qadeer Hussain</dc:creator><description>&lt;p&gt;This is working in part but it is displaying previous state. For example i have States A, B, C D so when document is in state B, attribute showing state A, and when it is in state C, attribute show state B.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Populate ProjectWise System Attribute value in an Environment attribute</title><link>https://communities.bentley.com/thread/586101?ContentTypeID=1</link><pubDate>Tue, 12 May 2020 09:04:29 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d11451b7-67c0-412e-b46c-dfac64283f3b</guid><dc:creator>Andzej Prokopovic</dc:creator><description>&lt;p&gt;Hello Qadeer,&lt;/p&gt;
&lt;p&gt;Please try to add the following SQL statement to the environment variable:&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;span style="color:#008000;font-family:Consolas;font-size:small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;select o_statename from dms_stat where o_stateno = (select o_stateno from dms_doc where o_itemno = &amp;#39;$DOCUMENT$&amp;#39; and o_projectno = &amp;#39;$VAULT$&amp;#39;)&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#008000;font-family:Consolas;font-size:small;"&gt;&lt;/span&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;It should return current state name for the document.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>