Hello,
here is an example, how to get the name from a file with Groovy in a FieldTransform.
Display All
here is an example, how to get the name from a file with Groovy in a FieldTransform.
Java Source Code
- import java.io.File;
- String path = "${vDirectory}";
- String filesExp = "20120801_TestFile.csv";
- File dir = new File(path);
- File[] files = dir.listFiles();
- for(int i=0; i<files.length; i++) {
- if(files[i].getName().endsWith(filesExp)){
- API.setProperty("filename",files[i].getName());
- return files[i].getName();
- };
- };
Djordja Markovic
Interessant things:
Internal derby:
jedox.com/community/palo-forum…ad&postID=14338#post14338
Calculate your cube size:
jedox.com/community/palo-forum…ad&postID=14406#post14406
Interessant things:
Internal derby:
jedox.com/community/palo-forum…ad&postID=14338#post14338
Calculate your cube size:
jedox.com/community/palo-forum…ad&postID=14406#post14406