NAV 2015 - XMLPort export blank fields

Hi all,

I've a question. I'm trying to export a XML file with many optional fields (it's an items's extraction with many commercial informations). I setupped optional elements properties with MinOccurs = "Zero" and MaxOccurs = "Once" or sometimes "Unbounded". If i don't insert any values in this element, i would like to extract XML file without empty element's tag. Is it possible?

Thanks a lot.

Into attach file there is an example.
Giorgio Gandolfi

Answers

  • kokyas963kokyas963 Member Posts: 16
    Hi Supremenerd,
    Try this one.

    awesomefield - Export::OnBeforePassVariable()
    IF awesomefield = '' THEN
    currXMLport.SKIP;

    Regards.
Sign In or Register to comment.