|
|
#7 |
|
Участник
|
ну а всетаки ? вот такой запрос
Код:
"<fetch mapping='logical'>"+
"<entity name='phonecall'>"+
"<all-attributes />"+
"<link-entity name='contact' from='contactid' to='gar_contacts_call' alias='contactBP'>"+
"<attribute name='parentcustomerid' />"+
"</link-entity>"+
"<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+"' />"+
"<condition attribute='contactBP.parentcustomerid' 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+"' />"+
"</filter>"+
"</filter>"+
"</entity></fetch>";вот 1) я правильно объявил связанную сущьность? 2) в строке выделенной красным я хочу обратится к полю связанной сущьности. как правильно это написать? заранее очень благодарен за мудрые советы)
__________________
rurik |
|
|
|
|
|