<?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>Operation Property interact with feature property? Domain Lists with SQL!</title><link>https://communities.bentley.com/products/geospatial/desktop/f/bentley-map-forum/15035/operation-property-interact-with-feature-property-domain-lists-with-sql</link><description>I am aware this can be done in some magical way!
 
 
1. I have a combobox property on a feature Operation cadPrimary named TenureTypeFilter it has an SQL domain list with this value SELECT DISTINCT TENURE_TYPE FROM PROGEN_LMS_LAND_VIEW1 WHERE (LAND_TYPE</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Re: Operation Property interact with feature property? Domain Lists with SQL!</title><link>https://communities.bentley.com/thread/29597?ContentTypeID=1</link><pubDate>Fri, 09 Jan 2009 19:33:43 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:e9da2b78-526a-498f-83c1-c0794be6e57c</guid><dc:creator>cdalesandro</dc:creator><description>&lt;p&gt;
Hello Jamo,
&lt;/p&gt;
&lt;p&gt;
Here is a possible workaround for you involviing combobox domainlists with criteria and a SynchItem watcher on the operation property.&amp;nbsp; I assumed that you have a manageable number of tenure types.&amp;nbsp; See the attached example.
&lt;/p&gt;
&lt;p&gt;
Some items of note:
&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;LMSID_LINK feature property's combobox &amp;nbsp;domainlist definition now contains one domainlist for each of my four possible tenure types with criteria to match the TenureTypeFilter operation property&amp;nbsp; value.&lt;/li&gt;
	&lt;li&gt;TenureTypeFilter operation property has a SynchItem watcher to update the LMSID_LINK feature property after the value of TenureTypeFilter operation property changes.&amp;nbsp; LMSID_LINK feature property's combobox is redrawn to use the domainlist that matches the criteria and&amp;nbsp;LMSID_LINK feature property value is cleared (set to blank) so that the user picks a valid value from the new domain list.&lt;/li&gt;
	&lt;li&gt;TenureTypeFilter operation property has a placing initial value rule of type sqlQuery to initialize this property value to a valid TENURE_TYPE from the database.&amp;nbsp; My example uses the last record for the criteria, so you may do something smarter.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
Regards,
&lt;/p&gt;
&lt;p&gt;
Chris
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description><enclosure url="https://communities.bentley.com/cfs-file/__key/telligent-evolution-components-attachments/00-5924-01-00-00-02-95-97/PortBris_2D00_SQLDomains.zip" length="32771" type="application/x-zip-compressed" /></item><item><title>Re: Operation Property interact with feature property? Domain Lists with SQL!</title><link>https://communities.bentley.com/thread/29398?ContentTypeID=1</link><pubDate>Thu, 08 Jan 2009 20:07:15 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:dbc0b4be-bdfe-494f-9d09-501b321822f0</guid><dc:creator>cdalesandro</dc:creator><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://communities.bentley.com/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Jamo:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;
This SQL&amp;nbsp;Does not seem to pickup the operation value from cadPrimary/TenureTypeFilter ? &lt;/div&gt;&lt;/BLOCKQUOTE&gt;
&lt;/p&gt;
&lt;p&gt;
Unfortunately, SQL domain list processing does not support feature or operation property replacement in the SQL Select. I have written CR # 264150 for this issue.
&lt;/p&gt;
&lt;p&gt;
&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://communities.bentley.com/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Jamo:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;Where can I find some detailed information on what a propertty watcher is and how it interacts ?&lt;/div&gt;&lt;/BLOCKQUOTE&gt;
&lt;/p&gt;
&lt;p&gt;
I do not see property watchers in the Map V8i documentation and have written TR # 264156&amp;nbsp;for this.&amp;nbsp; If you have Geographics 8.5 installed, you can see some property watcher information in the Geospatial Administrator help file, but not much more than I list below.
&lt;/p&gt;
&lt;p&gt;
&lt;u&gt;Watcher types&lt;/u&gt;
&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;
	&lt;div&gt;
	Current List Lookup Watcher - Set the specified property using the data stored in the specified domain list column of the current property
	&lt;/div&gt;
	&lt;/li&gt;
	&lt;li&gt;
	&lt;div&gt;
	Foreign List Lookup Watcher - Set the specified property by taking the current property's value and looking up a matching entry in the domain list associated with another property.
	&lt;/div&gt;
	&lt;/li&gt;
	&lt;li&gt;
	&lt;div&gt;
	Synch Item Watcher - Redraw the specified property's dialog item. Typically used with combo-box properties that specify criteria-based domain list. Also used to set the specified property value based on a value type. If a Match Value is provided, the current property value must equal the Match Value for the watcher to execute. 
	&lt;/div&gt;
	&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
Look in geo_example schema for watcher examples like in the Address, GasValve, RoadLabel, TelcoCable, Tree, WorkId&amp;nbsp;features. Also see DialogTest operation property MyGrid/Hours.
&lt;/p&gt;
&lt;p&gt;
Regards,
&lt;/p&gt;
&lt;p&gt;
Chris
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Operation Property interact with feature property? Domain Lists with SQL!</title><link>https://communities.bentley.com/thread/29255?ContentTypeID=1</link><pubDate>Thu, 08 Jan 2009 04:49:29 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:88c2fb6d-7af7-418a-ab0a-0c7e1aaccaf9</guid><dc:creator>Adam Jamison</dc:creator><description>&lt;p&gt;
Where can I find some detailed information on what a propertty watcher is and how it interacts ? When I change the value of the TenureTypeFilter it does not specifically change any other value it is only referred to in&amp;nbsp;a domain list sql statement, which I would have thought would simply look at the operation then grab that operations current value,&amp;nbsp;the operation is a combobox .... perhaps I need to specify what column it needs to grab it from as well? [cadPrimary/TenureTypeFilter.Tenure_Type] ? ?&amp;nbsp;? 
&lt;/p&gt;
&lt;p&gt;
This SQL&amp;nbsp;Does not seem to pickup the operation value from cadPrimary/TenureTypeFilter ? 
&lt;/p&gt;
&lt;p&gt;
However if i set the TenureTypeFilter to a type of Text rather than combobox it works!!!&amp;nbsp;but I still have to do as below to pick up&amp;nbsp;a change in value in the text box 
&lt;/p&gt;
&lt;p&gt;
SELECT UNIQUE_ID, PRI_LOT_PLAN + ' - ' + UNIQUE_ID AS DISPLAY FROM PROGEN_LMS_LAND_VIEW1 WHERE (LAND_TYPE='Primary') AND (TENURE_TYPE='[cadPrimary/TenureTypeFilter]') 
&lt;/p&gt;
&lt;p&gt;
Situation ATM 
&lt;/p&gt;
&lt;p&gt;
The user has to place a cadPrimary feature 
&lt;/p&gt;
&lt;p&gt;
then select the correct tenure type from the combobox 
&lt;/p&gt;
&lt;p&gt;
then close the placement dialog 
&lt;/p&gt;
&lt;p&gt;
then place again this picks up that the user had changed the tenure type from the previous dialog... 
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
I've attached a schema that might help clarify what I'm trying to achieve.... or completely confuse the situation.
&lt;/p&gt;
&lt;p&gt;
&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://communities.bentley.com/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Jerry Walter - Bentley:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;/p&gt;
&lt;p&gt;
This sounds like you need to add a property watcher. 
&lt;/p&gt;
&lt;p&gt;
Jerry 
&lt;/p&gt;
&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description><enclosure url="https://communities.bentley.com/cfs-file/__key/telligent-evolution-components-attachments/00-5924-01-00-00-02-92-55/PortBris_2D00_SQLDomains.zip" length="18579" type="application/x-zip-compressed" /></item><item><title>Re: Operation Property interact with feature property? Domain Lists with SQL!</title><link>https://communities.bentley.com/thread/29069?ContentTypeID=1</link><pubDate>Wed, 07 Jan 2009 17:28:23 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:96df4280-8119-4f7a-a34b-f167e49137e6</guid><dc:creator>Jerry Walter - Bentley</dc:creator><description>&lt;p&gt;
This sounds like you need to add a property watcher.
&lt;/p&gt;
&lt;p&gt;
Jerry
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>