|  01.09.2010, 12:51 | #1 | 
| Участник |  Создание фильтра для Ownerid 
			
			В интернете полно примеров создания фильтров для типа lookup, но для ownerid они не подходят. Может кто сталкивался и может ссылку скинуть или пояснить, буду рад.
		 | 
|  | 
|  01.09.2010, 12:59 | #2 | 
| Чайный пьяница | Цитата: http://mscrmfilteredlookup.codeplex.com/ 
				__________________ Эмо разработчик, сначала пишу код, потом плачу над его несовершенством. Подписывайтесь на мой блог, twitter и YouTube канал. Пользуйтесь моим Ultimate Workflow Toolkit | 
|  | 
|  01.09.2010, 13:00 | #3 | 
| Moderator | 
			
			Могу только пояснить: эти примеры можно адаптировать для любого поля. Опишите подробно что вам нужно.
		 
				__________________ http://fixrm.wordpress.com, снятие/наведение порчи. Быстро, дорого, гарантия.   MS Certified Dirty Magic Professional | 
|  | 
|  01.09.2010, 13:42 | #4 | 
| Участник | 
			
			при создании "task" поле "испольнитель" с типом ownerid должен фильтроваться по Бизнес-Направлению, которое взялось за работу. если на примерах, то : lookupclass - BasicOwner lookuptypes - 8 я нашел этот файл и вот что там находится: Код: <object type="8"> <columns> <column data="fullname" type="normal"/> </columns> <datasource> <filter type="and"> <condition attribute="isdisabled" operator="ne" value="1"/> <filter type="or"> <condition attribute="fullname" operator="like" value="!searchvalue" /> <condition attribute="firstname" operator="like" value="!searchvalue" /> <condition attribute="lastname" operator="like" value="!searchvalue" /> <condition attribute="internalemailaddress" operator="like" value="!searchvalue" /> </filter> </filter> </datasource> </object> Код: <object type="8"> <columns> <column data="fullname" type="normal"/> </columns> <datasource> <filter type="and"> <condition attribute="isdisabled" operator="ne" value="1"/> <filter type="or"> <condition attribute="fullname" operator="like" value="!searchvalue" /> <condition attribute="firstname" operator="like" value="!searchvalue" /> <condition attribute="lastname" operator="like" value="!searchvalue" /> <condition attribute="internalemailaddress" operator="like" value="!searchvalue" /> </filter> </filter> <link-entity name="new_bn_systemuser" from="systemuserid" to="systemuserid"> <link-entity name="new_review" from="new_bnid" to="new_bnid"> <filter> <condition attribute="new_leadid" operator="eq" value="!reportname"/> </filter> </link-entity> </link-entity> </datasource> </object> Пока выходит только ошибка | 
|  | 
|  01.09.2010, 13:46 | #5 | 
| Участник | 
			
			Пытался еще и через  crmForm.all.ownerid.AddParam("search", "<fetch mapping='logical'><entity name='systemuser'>" +"<link-entity name='new_bn_systemuser' from='systemuserid' to='systemuserid'>" +"<link-entity name='new_review' from='new_bnid' to='new_bnid'>" +"<filter>" +"<condition attribute='new_leadid' operator='eq' value='"+a.regardingobjectid.DataValue[0].id+"'/>" +"</filter>" +"</link-entity>" +"</link-entity>" +"</entity></fetch>"); но тоже не работает | 
|  | 
|  01.09.2010, 15:43 | #6 | 
| Участник | 
			
			пояснение: поле ownerid является типом owner | 
|  | 
|  | 
| 
 |