(Aug-29-2017, 08:55 PM)Ivan1 Wrote: This is the feedback that I received from Altova's support team:
"The instance may contain multiple values for a fact, the printFacts function returns the last one in such a case. If you want to write all values into one CSV field or a line per value into CSV you may modify printFacts or copy it to another function that returns all values and use that"
I dont have this module as well....so take what i say with a grain of salt as i am rushing typing this as i head out the door.....
factfinder() returns a list and sends it to printFacts() as "facts". Then this functions loops through them under conditions to get "factValue"
Quote:factValue = fact.effective_numeric_valueSo based on this i would assume if you make a list and append fact.effective_numeric_value or fact.normalized_value (based on whatever you want) then you would get all the values instead of the last one. Then return the list instead of factValue. But most likely that is going ot break the code as i would assume somewhere it expects that to be an int, but will now get a list.
...
factValue = fact.normalized_value
Recommended Tutorials: