XMLPort Items-Variant-Inventory

drstakzdrstakz Member Posts: 30
Hello,
I want to create structured XMLPort like as this example
<Items>
	<Item No="123">
		<Description>Item</Description>
		<Variants>
			<Variant Code="1">
				<Description>AAA<Description>
				<Inventory Location="120" Inventory="15"/>
				<Inventory Location="130" Inventory="17"/>
			</Variant>
			<Variant Code="2">
				<Description>BBB<Description>
				<Inventory Location="120" Inventory="14"/>
				<Inventory Location="130" Inventory="0"/>
				<Inventory Location="200" Inventory="50"/>
			</Variant>
		</Variants>
	</Item> 
</Items>

Items, Item, Variants, Variant elements are clear for me. But I don't know, is it possible set element Inventory with FlowFilters by Location, Variant and Item No. for Attributes Location and Inventory like as example?

Thanks

Comments

  • vivek4121vivek4121 Member Posts: 165
    Hi,

    Yes it is possible to set element Inventory (as FlowField) in XMLPort. You need not to mention anything for FlowFields to get exported in XML Port I guess.



    Thanks
  • kinekine Member Posts: 12,562
    you can use the integer table or location table to make the loop, or you can use some temporary table to make the dataitem, which will be first filled in with the counted values, and automatically exported by the xmlport. It means same ways like when you will need to print same in the report.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.