XMLPort do not show element if value is blank

jwilderjwilder Member Posts: 263
I have an XMLPort that exports some Sales Comments Line records. I have a custom field that I have added to the Sales Comment Line table called "User ID". Older records do not have a value in this field since I just added it.

Here is the XMLPort:
Node Name, Node Type, Source Type, Data Source
OrderComment, Element, Table, OrderComments(Order Comments)
LineNo, Element, Field, OrderComments::Line No.
CommentText, Element, Field, OrderComments::Comment Text
CommentDate, Element, Field, OrderComments::Comment Date
UserID, Element, Field, OrderComments::Comment User ID


In my XMLPort I do not want to show the Element (User ID) if the value is blank. I set the property MinOccurs to "Zero" but this did not work. How can I only show this field in the xml file if there is a value?

Comments

Sign In or Register to comment.