Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
JACKNIEKERK
Creator
Creator

Inserting from a directory all *.pdf or *.doc object , click a file and open it

i got this sofar 

for each File in filelist ('V:/1 KWALITEIT/Organisatie Sunkip/Certificaten Sunkip/HACCP & QS Certificaten Sunkip/*.*')
LOAD
'V:/1 KWALITEIT/Organisatie Sunkip/Certificaten Sunkip/HACCP & QS Certificaten Sunkip/' & '$(File)' as DocumentLink100,
Subfield( '$(File)' , '/', -1) as DocumentName100
autogenerate 100;
next File

this in  Graphic object , works ok  line click opens fileshows likeshows like

problem since all files moved to other directory, work not anymore'NEW VERSION

for each File in filelist ('I:/1 KWALITEIT-2020/Organisatie Sunkip/Certificaten Sunkip/HACCP & QS Certificaten Sunkip/*.*')
LOAD
'I:/1 KWALITEIT-2020/Organisatie Sunkip/Certificaten Sunkip/HACCP & QS Certificaten Sunkip/' & '$(File)' as DocumentLink100,
Subfield( '$(File)' , '/', -1) as DocumentName100
autogenerate 100;
next File

 reload looks like this and  no files anymore,  

 the expression

does not workdoes not work

GONE 100GONE 100

have to change more the 1000 files definitions,  in edit do a find change  ,

So looking for OR a better solution in code also due have to make for each directory hardcoding  in source also

if new directories arise

OR to get solution to make this one stable

2 Replies
JohnPorter
Contributor
Contributor


@JACKNIEKERK wrote:

i got this sofar 

for each File in filelist ('V:/1 KWALITEIT/Organisatie Sunkip/Certificaten Sunkip/HACCP & QS Certificaten Sunkip/*.*')
LOAD
'V:/1 KWALITEIT/Organisatie Sunkip/Certificaten Sunkip/HACCP & QS Certificaten Sunkip/' & '$(File)' as DocumentLink100,
Subfield( '$(File)' , '/', -1) as DocumentName100
autogenerate 100;
next File

this in  Graphic object , works ok  line click opens fileshows likeshows like

problem since all files moved to other directory, work not anymore'NEW VERSION

for each File in filelist ('I:/1 KWALITEIT-2020/Organisatie Sunkip/Certificaten Sunkip/HACCP & QS Certificaten Sunkip/*.*')
LOAD
'I:/1 KWALITEIT-2020/Organisatie Sunkip/Certificaten Sunkip/HACCP & QS Certificaten Sunkip/' & '$(File)' as DocumentLink100,
Subfield( '$(File)' , '/', -1) as DocumentName100
autogenerate 100;
next File

 reload looks like this and  no files anymore,  

 the expression

does not workdoes not work

GONE 100GONE 100

have to change more the 1000 files definitions,  in edit do a find change  ,

So looking for OR a better solution in code also due have to make for each directory hardcoding  in source also

if new directories arise

OR to get solution to make this one stable


I need solution for this.

JACKNIEKERK
Creator
Creator
Author

I see a reading response , but no solution?