fetchXML을 사용하여 컨트롤에 사용자 지정보기를 추가하는 javascript 함수가 있습니다. 내 문제는 루트 <fetch>
노드의 개수 특성이 작동하지 않는다는 것입니다. 6으로 설정했지만 가져 오기로 정의 된 26 개의 레코드 (모든 레코드)가 반환됩니다.왜 fetchXml count 속성이 반환 된 레코드를 제한하지 않습니까?
여기에 fetchXML
<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false' count='6'>
<entity name='xyz_entity'>
<attribute name='xyz_entityname' />
<attribute name='xyz_startdate' />
<attribute name='xyz_enddate' />
<attribute name='xyz_currententity' />
<attribute name='xyz_inactiveentity' />
<order attribute='xyz_currententity' descending='true' />
<order attribute='xyz_startdate' />
<filter type='or'>
<condition attribute='xyz_currententity' operator='eq' value='1' />
<filter type='and'>
<condition attribute='xyz_startdate' operator='ge' value='2011-11-01' />
<condition attribute='xyz_enddate' operator='gt' value='2011-11-01' />
</filter>
</filter>
</entity>
</fetch>
이고 그리고 fetchXML이처럼에 javscript에 사용되고 :
Xrm.Page.getControl("itt_termid").addCustomView(viewId, entityName, viewDisplayName, fetchXml, layoutXml, true);
을하지만 때 사용자 조회 아이콘을 클릭, 모두 26보다 6 레코드가 반환됩니다.
하지만, Select Top처럼 작동하는 것 같습니다 _ – codeulike
@codeulike - 실제 버그입니다. 내 대답을 봐 http://stackoverflow.com/a/7987277/227436, 링크를 클릭하고 맨 아래로 스크롤하십시오. 롤업 10에서 고쳐지기로되어 있었지만, 물건을 푸는 데는 꽤 능숙합니다. 그리고 나서 그걸 시험해 보지 않았습니다. – Daryl