Options

Xmlport on Nav 6 - 2009 doesn't return the "elements"

b52b52 Member Posts: 22
edited 2010-10-18 in NAV Three Tier
:D

This xmlport worked well on nav. 5 but now it doesn’t! :-k It seems as when the record (Item) is empty the xmlport doesn’t return the “elements” as it did before. However, when the record is NOT empty it works just fine as before. What is changed in Nav 6 :bug: ?


OnPreXMLport()
IF Item.ISEMPTY THEN
Response := STRSUBSTNO(Text501, Item.GETFILTER("No."));


Node Name Node Type Source Type Data Source
GetInventoryItem Element Table <Item>(Item)
No Element Field Item::No.
Description Element Field Item::Description
Amount Element Text <Amount>
LocationCode Element Text <LocationCode>
Shelf Element Text <Shelf>
Unit Element Field Item::Base Unit of Measure
Response Element Text <Response>

Hilfe!

P.s. I get around by doing a ERROR(STRSUBSTNO(Text501, Item.GETFILTER("No.")); Q+D
D.s.

Comments

  • Options
    kinekine Member Posts: 12,562
    Look at the MinOccurs on the element...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    b52b52 Member Posts: 22
    Thanx Kamil! But they are all set on "Once" so it must be something else ...
  • Options
    b52b52 Member Posts: 22
    Yo!

    I've still not managed to solve this. Can someone pls look into this.

    /K
Sign In or Register to comment.