![]() |
#3 |
Участник
|
да спасибо это помогло, но встала другая проблема:
у меня был вот такой запрос Код: "<fetch mapping='logical'><entity name='phonecall'>"+ "<all-attributes />"+ "<filter type='and'>"+ "<filter type='or'>"+ "<condition attribute='gar_subject' operator='eq' value='"+subject+"' />"+ "<condition attribute='gar_subject_2' operator='eq' value='"+subject+"' />"+ "<condition attribute='gar_subject_3' operator='eq' value='"+subject+"' />"+ "<condition attribute='gar_subject_4' operator='eq' value='"+subject+"' />"+ "<condition attribute='gar_subject_5' operator='eq' value='"+subject+"' />"+ "</filter>"+ "<filter type='or'>"+ "<condition attribute='gar_main_account_phonecall' operator='eq' value='"+account+"' />"+ "<condition attribute='regardingobjectid' operator='eq' value='"+account+"' />"+ "</filter>"+ "<filter type='and'>"+ "<condition attribute='createdon' operator='on-or-after' value='"+ fStartDate+"' />"+ "<condition attribute='createdon' operator='on-or-before' value='"+ date+"' />"+ вот сюда надо вставить запрос с partylist "</filter>"+ "</filter>"+ "</entity></fetch>"; из расширенного поиска я получил для partylist'a вот такой запрос Код: <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true"> <entity name="phonecall"> <attribute name="subject"/> <attribute name="statecode"/> <attribute name="prioritycode"/> <attribute name="scheduledend"/> <attribute name="createdby"/> <attribute name="regardingobjectid"/> <attribute name="activityid"/> <order attribute="subject" descending="false"/> <link-entity name="activityparty" from="activityid" to="activityid" alias="aa"> <filter type="and"> <condition attribute="participationtypemask" operator="eq" value="2"/> </filter> <link-entity name="account" from="accountid" to="partyid" alias="ab"> <filter type="and"> <condition attribute="gar_inn" operator="eq" value="1"/> </filter> </link-entity> </link-entity> </entity> </fetch> и собственно вопрос как вставить часть последнего запроса выделенную красным в первый запрос ?
__________________
rurik |
|
|
Опции темы | Поиск в этой теме |
Опции просмотра | |
|