Options

xmlt how to import tag like this <PARTY_ID Type="supplier>

mar35mar35 Member Posts: 3
edited 2012-08-10 in NAV Three Tier
Hi,
i've got xml file with tag like this:
<PARTY>
<PARTY_ID Type="supplier_specific"/>

when insert this tag into xml Nav give error: Tag name can't have space char.
Does enybody know how to import it in xml port,

thanks for any suggestions
Mar

Comments

  • Options
    ara3nara3n Member Posts: 9,255
    Type is an attribute.
    This is how it should look at xmlport
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Options
    mar35mar35 Member Posts: 3
    ara3n thanks for your answer it works ok,
    but i've got one more problem with this

    I buit xmlport with section like below:


    in xml file are few section when tag have the same name:


    ane nav gives error: name of element PARTY is used more then once

    any sugestions how solve problem with this file ?
  • Options
    ara3nara3n Member Posts: 9,255
    Set the Data Source to different unique name.

    For example

    Buyer_Party_Name
    Buyer_Party_Name2


    and
    Supplyer_Party_Name
    Supplyer_Party_Name2


    Leave the Node name as it appears in xml file
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Options
    mar35mar35 Member Posts: 3
    Hello again,

    You solve my problem with xmlport few years ago, can You tell how can I import lines like this from xml file:
    ....

    <REMARK Type="iln-supplier" />
    <REMARK Type="Umsatzsteuer-ID">PL1130014751</REMARK>
    <REMARK Type="Currency">PLN</REMARK>
    <REMARK Type="Currency-Rate" />
    <REMARK Type="Nettowarenwert">1 132,65</REMARK>
    <REMARK Type="Nebenkosten-Gesamt">1 393,16</REMARK>
    <REMARK Type="Steuersatz">23</REMARK>
    <REMARK Type="Steuerpflicht-Betrag">260,51</REMARK>
    <REMARK Type="Steuerpflicht-Betrag (PLN)">0,00</REMARK>
    <REMARK Type="Nettowarenwert (PLN)">0,00</REMARK>
    <REMARK Type="Nebenkosten-Gesamt (PLN)">0,00</REMARK>

    ....

    I tried many combinations with attributes and elements but always got error
    I set up REMARK as repeater to some temporary table and many combinations of attribute Type still error

    ...
    REMARK Element Table mptmp(mptmp)
    Type Attribute Field mptmp::tmp
    Type Attribute Field mptmp::t1
    ...

    please if You know tell how to do this.

    regards
    Mariusz
Sign In or Register to comment.