Hi,
with the DB Record Loader action I get the name of a file into my form data array.
The Debugger tells nicely
Now I would like to get the "dateiname" part of the data array into the File Downloader
but I fail...
In the Downloads Path I noted /var/www/mnd/dmdocuments/fbr/
File name parameter:
The download works nicely if I put the correct file name there.
If I put {UE.dateiname} there the form shows up and I get a
"The file path doesn't exist: /var/www/mnd/dmdocuments/fbr/{UE.dateiname}",
so obviously I can't put any dynamic data there ?
There is the File Name Path parameter with the comment "the path to the file name in the data array",
but I have no idea what to write there.
I tried [UE].[dateiname], ['UE'].['dateiname'], {UE}.{dateiname}, {UE.dateiname}
- each time an open file window opens to open "index.php" (sorry for three times "open"),
and I dont see anything of the original form.
Do I have to set any Custom Code in front of the File Downloader to provide him with the data ?
Thanks for any help...
Kind regards,
Doris
with the DB Record Loader action I get the name of a file into my form data array.
The Debugger tells nicely
Data Array:
Array
(
[option] => com_chronoforms
[chronoform] => FBRComments
[UE] => Array
(
[dateiname] => matlab.pdf
)
)Now I would like to get the "dateiname" part of the data array into the File Downloader
but I fail...
In the Downloads Path I noted /var/www/mnd/dmdocuments/fbr/
File name parameter:
The download works nicely if I put the correct file name there.
If I put {UE.dateiname} there the form shows up and I get a
"The file path doesn't exist: /var/www/mnd/dmdocuments/fbr/{UE.dateiname}",
so obviously I can't put any dynamic data there ?
There is the File Name Path parameter with the comment "the path to the file name in the data array",
but I have no idea what to write there.
I tried [UE].[dateiname], ['UE'].['dateiname'], {UE}.{dateiname}, {UE.dateiname}
- each time an open file window opens to open "index.php" (sorry for three times "open"),
and I dont see anything of the original form.
Do I have to set any Custom Code in front of the File Downloader to provide him with the data ?
Thanks for any help...
Kind regards,
Doris
Hi Doris,
I think that is what the File Name Path box is for. Please try putting UE in there.
Bob
I think that is what the File Name Path box is for. Please try putting UE in there.
Bob
Hi Bob,
thanks for your reply.
Sorry to say, but that's exactly where I put it... It simply does not work for me.
So I had to solve it without the File Downloader...
The submit button in my form now says
That does the trick...
Doris
thanks for your reply.
I think that is what the File Name Path box is for. Please try putting UE in there.
Sorry to say, but that's exactly where I put it... It simply does not work for me.
So I had to solve it without the File Downloader...
The submit button in my form now says
<input name="getProtokoll" class="" value="Download" type="button" onClick="window.location.href='dmdocuments/fbr/{UE.dateiname}';" />That does the trick...
Doris
This topic is locked and no more replies can be posted.
