Das Notes Forum
Domino 9 und frühere Versionen => Administration & Userprobleme => Thema gestartet von: Karin am 11.10.02 - 09:37:09
-
Hallo,
weiß zufällig jemand, was ein Column descriptor file ist? (.col)
Ich brauche diesen, um Tabular Text von einer Textdatei in eine Lotus Notes View zu importieren. Ich habe aber leider keine Ahnung was eine (.col) file ist und habe auch keine auf meinem Rechner gefunden.
Muss ich die vielleicht erst anlegen?
Ich würde mich freuen wenn mir jemand weiterhelfen kann.
Mit freundlichen Grüßen
Karin
-
Guck mal in der Designer hilfe unter COL Dateien nach. da steht alles drin
eknori
-
Gut, ich muss also erst eine anlegen, in Form eines Quellcodes nehme ich an.
Wo und wie kann ich das machen? Das steht nicht in der Hilfe.
-
Hier mal eine kleine Beschreibung
COL. Files: How do they work?
Problem:
How do I Import an ASCII text file into Notes using a .COL file.?
Solution:
COL files are format files that tell Notes into which field in the Notes Form data should be put.
Below are 2 examples of ASCII files with the associated .COL file and the associated results:
EXAMPLE: 1
INPUT.TXT file (ASCII file)
"Mobile Oil",1992,40000,50000
"Total Oil",1234,3456,1234
INPUT.COL (ASCII file)
TITLE:UNTIL ','
FIELD1:UNTIL ','
FIELD2:UNTIL ','
FIELD3:UNTIL ','
Where the words in RED are fields in an already created Notes Form, the , (comma) is a field delimiter in the ASCII text file and is surrounded by single quotes in the .COL file.
In the example above, if the user did a FILE IMPORT and defined INPUT.TXT as the import file and INPUT.COL as the format file, two records would appear in the Notes database.
EXAMPLE:2
INPUT.TXT (ASCII file)
"Mobile Oil",
1992,40000,50000
"Total Oil",
1234,3456,1234
INPUT.COL (ASCII file)
TITLE:UNTIL ','
FIELD1:UNTIL ','
FIELD2:UNTIL ','
FIELD3:UNTIL ','
Doing File Import in the same way as above would result in 4 records in the Notes database.
NOTE:
In order to use a .COL file on an ASCII file, the following needs to be true of the ASCII data file:
1 - Each line in the text file must be 1 record in the Notes database
2 - If the ASCII file does not have any delimiters i.e., Commas, Spaces etc..
then the contents must be of fixed length.
eknori
-
Vielen Dank für die Hilfe, es hat tatsächlich geklappt.