variable in table path

archel

Client
Регистрация
02.05.2011
Сообщения
175
Благодарностей
22
Баллы
18
Hi

In a table, you have to give a file path.

Eg this works:
{-Project.Directory-}\file1.txt

but this not:
{-Project.Directory-}\file{-Variable.varnumbertest-}.txt

Now I'd like to know what you have to do if you want the content of the table to be either that of file1 or file2?

Thanks!
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
{-Project.Directory-}file\{-Variable.varnumbertest-}.txt
 

drvosjeca

Client
Регистрация
26.10.2011
Сообщения
512
Благодарностей
455
Баллы
63
{-Project.Directory-}file\{-Variable.varnumbertest-}.txt

im sorry rostonix, but i think you misunderstood the question here...

file1.txt is name of the file, file is not subdirectory :-)

so archel what would i suggest you to try if nothing else works for you is to use random file path (if you need random that is) from some folder...

let say you have folder "tables" and inside you have file1.txt and file2.txt

what you need to do in that case is just use directories action, there you set file path bla bla bla from which directory you want it to pick, and set result as variable

then in table you need just that variable and nothing else.



I hope this helps
 
  • Спасибо
Реакции: archel

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Oh I got it wrong)
Thanx.

You can do this: take path of needed file, put it in variable.
Then use table processing - bound with file

After this you can operate with table.
So initially you don't put any path in table's settings
:-)
 
Последнее редактирование:
  • Спасибо
Реакции: archel

archel

Client
Регистрация
02.05.2011
Сообщения
175
Благодарностей
22
Баллы
18
edit:

hmm

I'll try that out and see if it works.
Thanks.
 

Вложения

archel

Client
Регистрация
02.05.2011
Сообщения
175
Благодарностей
22
Баллы
18
Nice, it worked.

Couldn't use the randomize option, since the random number for the text file was only an example.
Though, binding a file to the table (with empty path) did work.

Thanks both for your help.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
You can generate random number (1 2 3) and use files file1 file2 file3 as file{-variable.yourgeneratednumber-}
In path to the file you can use variables.

Or use directories processing - get list of files in directory - send o list
List processing - get line (random)
 
Последнее редактирование:

drvosjeca

Client
Регистрация
26.10.2011
Сообщения
512
Благодарностей
455
Баллы
63
Nice, it worked.

Couldn't use the randomize option, since the random number for the text file was only an example.
Though, binding a file to the table (with empty path) did work.

Thanks both for your help.
you can use randomize, because it is picking random file no matter how it is named!
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)