Hello,
I am trying to use paging in subqueries.
I use innovator 9.4 Core db.
I wrote an aml:
<Item action="get" type="ItemType" select="name">
<Relationships>
<Item action="get" type="Property" select="name,config_id">
<name condition="like">q%</name>
</Item>
<Item action="get" type="Property" page="1" pagesize="2" select="name">
<name condition="like">q%</name>
</Item>
</Relationships>
</Item>
You can distinguish the queries based on their select list.
I would expect the second query to return only 2 items per Item type, but it returns 2 items in total, and even on different items. Is that a bug, or am I just confusing something, or is it simply not supported?
The result:
<Result>
<Item type="ItemType" typeId="450906E86E304F55A34B3C0D65C097EA" id="241944ED565940B5BC4987C3D9EAB6C7">
<id keyed_name="Core_ItemGridLayout" type="ItemType">241944ED565940B5BC4987C3D9EAB6C7</id>
<name>Core_ItemGridLayout</name>
<Relationships>
<Item type="Property" typeId="26D7CD4E033242148E2724D3D054B4D3" id="378DC7907F314B66B7CDA0E0166C8BDE">
<config_id keyed_name="query_type" type="Property">378DC7907F314B66B7CDA0E0166C8BDE</config_id>
<id keyed_name="query_type" type="Property">378DC7907F314B66B7CDA0E0166C8BDE</id>
<source_id keyed_name="Core_ItemGridLayout" type="ItemType" name="Core_ItemGridLayout">241944ED565940B5BC4987C3D9EAB6C7</source_id>
<name>query_type</name>
</Item>
</Relationships>
</Item>
<Item type="ItemType" typeId="450906E86E304F55A34B3C0D65C097EA" id="F91DE6AE038A4CC8B53D47D5A7FA49FC">
<id keyed_name="EMail Message" type="ItemType">F91DE6AE038A4CC8B53D47D5A7FA49FC</id>
<name>EMail Message</name>
<Relationships>
<Item type="Property" typeId="26D7CD4E033242148E2724D3D054B4D3" id="936FCF6FA38F4B2FA329D527A57FFC9F">
<config_id keyed_name="query_string" type="Property">936FCF6FA38F4B2FA329D527A57FFC9F</config_id>
<id keyed_name="query_string" type="Property">936FCF6FA38F4B2FA329D527A57FFC9F</id>
<source_id keyed_name="EMail Message" type="ItemType" name="EMail Message">F91DE6AE038A4CC8B53D47D5A7FA49FC</source_id>
<name>query_string</name>
</Item>
</Relationships>
</Item>
<Item type="ItemType" typeId="450906E86E304F55A34B3C0D65C097EA" id="8EABD91B465443F0A4995418F483DC51">
<id keyed_name="Grid" type="ItemType">8EABD91B465443F0A4995418F483DC51</id>
<name>Grid</name>
<Relationships>
<Item type="Property" typeId="26D7CD4E033242148E2724D3D054B4D3" id="D71347BF742647C2AB36B1A119A013EF">
<config_id keyed_name="query" type="Property">D71347BF742647C2AB36B1A119A013EF</config_id>
<id keyed_name="query" type="Property">D71347BF742647C2AB36B1A119A013EF</id>
<source_id keyed_name="Grid" type="ItemType" name="Grid">8EABD91B465443F0A4995418F483DC51</source_id>
<name>query</name>
</Item>
<Item type="Property" typeId="26D7CD4E033242148E2724D3D054B4D3" id="D71347BF742647C2AB36B1A119A013EF" page="1" pagemax="2" itemmax="4">
<id keyed_name="query" type="Property">D71347BF742647C2AB36B1A119A013EF</id>
<source_id keyed_name="Grid" type="ItemType" name="Grid">8EABD91B465443F0A4995418F483DC51</source_id>
<name>query</name>
</Item>
</Relationships>
</Item>
<Item type="ItemType" typeId="450906E86E304F55A34B3C0D65C097EA" id="A7AE79CD9E144A15B5B34B455AFB66D9">
<id keyed_name="Metric Value" type="ItemType">A7AE79CD9E144A15B5B34B455AFB66D9</id>
<name>Metric Value</name>
<Relationships>
<Item type="Property" typeId="26D7CD4E033242148E2724D3D054B4D3" id="FFD39EB0C66F4527B0F9506874759418">
<config_id keyed_name="query" type="Property">FFD39EB0C66F4527B0F9506874759418</config_id>
<id keyed_name="query" type="Property">FFD39EB0C66F4527B0F9506874759418</id>
<source_id keyed_name="Metric Value" type="ItemType" name="Metric Value">A7AE79CD9E144A15B5B34B455AFB66D9</source_id>
<name>query</name>
</Item>
<Item type="Property" typeId="26D7CD4E033242148E2724D3D054B4D3" id="FFD39EB0C66F4527B0F9506874759418" page="1" pagemax="2" itemmax="4">
<id keyed_name="query" type="Property">FFD39EB0C66F4527B0F9506874759418</id>
<source_id keyed_name="Metric Value" type="ItemType" name="Metric Value">A7AE79CD9E144A15B5B34B455AFB66D9</source_id>
<name>query</name>
</Item>
</Relationships>
</Item>
</Result>