Options

XML port import solution for headers

txerifftxeriff Member Posts: 492
Hi all,

Hope some1 can help


My xmlport goes as follows:
Root
-->integer
-->Field1
-->Field2
...


So, As I have read, if you do currxmlport.skip it doesnt work because it thinks you are done reading when its in integer dataitem.

Is there any easy way to make it skip first row and move to the next one?

thanks!
:#

Answers

  • Options
    Wisa123Wisa123 Member Posts: 308
    Are you reading or writing?
    You may want to look into the MinOccurs property, if i understood correctly this may help you out.
    Austrian NAV/BC Dev
  • Options
    txerifftxeriff Member Posts: 492
    Wisa123 wrote: »
    Are you reading or writing?
    You may want to look into the MinOccurs property, if i understood correctly this may help you out.

    Hi,

    Im reading.

    I solved it by using another table instead "integer", a "real" table and setting it as temporary. I do nothing with this table, my valies go to variables but it does the count properly of the rows readed from xmlport, so I can do currxmlport.skip for first row.

    With this records are readed properly. Another solution would be to insert data into a table and then work with it.
    Regards,
Sign In or Register to comment.