[XML Records] XML with pagination

[XML Records] XML with pagination

  
Forge Component
(23)
Published on 15 Jun by Ricardo Silva
23 votes
Published on 15 Jun by Ricardo Silva

H, i need some help, i have a xml that have some pagination parameters. I need to pass it to record list so i've used XmlToRecordList but i only get the first record, how can i get the full list?


Ex. of xml:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<OK>
<Criterio>
<inDistrito>viana castelo</inDistrito>
<inConcelho />
<inLocal>lisboa</inLocal>
<inRua />
<inPorta />
<inCodPos />
<inCliente />
<inIdLocal />
<inIdRua />
<inEp />
<inApartado />
<inIdEp />
<inPag>1</inPag>
<inMaxPag>20</inMaxPag>
<Id_Pesq>12369</Id_Pesq>
</Criterio>
<Result>
<Pagina inicio="1" fim="1" num="1" />
</Result>
<Localidade num="1" tipo="LOCA" idlo="28158">
<Designacao tipo="O">Lisboa</Designacao>
<Distrito>Viana do Castelo</Distrito>
<Concelho>Monção</Concelho>
<Freguesia idfr="160428">Tangil</Freguesia>
<CodPos>
<CP4>4950</CP4>
<CP3>791</CP3>
<Designacao tipo="O">TANGIL</Designacao>
<Geo>4950791</Geo>
</CodPos>
</Localidade>
</OK>

Hi Tiago,

Please share your sample oml file.

oml attached.

It seams that i have a problem in the structures, i'm working on it and have fixed some issues.

Hey Tiago,

were you able to overcome the issues you are having?

as you said it is likely to be a definition issue of the structures holding the data. You can check this post of mine for a systematic way of building these structures.

Yes, i'm getting the lists correctly now.

Now i'm working on the pagination part.

Thanks.