IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

External Value-Maps Options · View
marcokki
Posted: Thursday, June 13, 2019 1:27:11 PM
Rank: Member

Joined: 9/10/2014
Posts: 14
Hi everyone,
do I need to manage a "value-map" with values from an external CSV file, any suggestions?

I tried to load the CSV file into an XML structure but then I don't manage to extract the values I need based on the input data.





marcokki attached the following image(s):
Immagine.jpg

K101
Posted: Friday, June 14, 2019 7:22:55 AM
Rank: Advanced Member

Joined: 2/27/2009
Posts: 565
Just insert the CSV file as a separate component, then load the values you need from it using a filter. Then you need not use a value-map at all. Certainly there's no need to involve an XML file.
K101
Posted: Friday, June 14, 2019 9:11:27 AM
Rank: Advanced Member

Joined: 2/27/2009
Posts: 565
Here's an example.

File Attachment(s):
example.zip (2kb) downloaded 84 time(s).

K101 attached the following image(s):
example.png

marcokki
Posted: Thursday, June 20, 2019 3:03:13 PM
Rank: Member

Joined: 9/10/2014
Posts: 14
Thanks for the reply but I probably misread the problem.

For example: given the file:
ROW HEADER1
ROW HEADER2
DETAIL ROW1a: FIELD1 FIELD2 FIELD3
DETAIL ROW1b
DETAIL ROW1c
DETAIL ROW1a: FIELD1 FIELD2 FIELD3
DETAIL ROW1b
DETAIL ROW1c
DETAIL ROW1a: FIELD1 FIELD2 FIELD3
DETAIL ROW1b
DETAIL ROW1c
FOOT ROW1
FOOT ROW2

I have to change a field (FIELD2) inside the DETAIL ROW1a line modifying the value with the one taken from an external file, an activity I could do with a value-map if the file didn't change frequently.
marcokki
Posted: Thursday, June 20, 2019 3:29:09 PM
Rank: Member

Joined: 9/10/2014
Posts: 14
Resolved. I had an error in the structure that had made me climb on the mirrors.

The standard solution for importing a CSV and using a filter is the correct one to use.

Regards
Marco


marcokki attached the following image(s):
Solution.jpg

Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.