https://antibiotiqueaugmentin.com/surdosage-augmentin-bebe/
× This is the optional Forum header for the Suggestion Box.

Can the Table JX Grid be configured to download

  • dalonehacker
  • dalonehacker's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 4 months ago #628

Hi,

I have a feature in my site where users are able to upload documents into my server and i have created a list using Table JX to view all the fields + the filename , but i cant download the file using my browser.

I am using both Table JX and Card View, I have seen the "Personal Download Area" that ToolsJX provides.

Is it possible for me to create a similar Personal Download
area using Table JX?

If yes, is there any documentation?

If not can you suggest alternatives?

Regards

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #629

Hi,

the download page in Customer area is made with Table JX.

Example below shows a simple html tag - text with link on file in public documents folder.

<a href="http://www.toolsjx.com/documents/file001.zip">Download</a>

If you have some more experience with sql you can create download table for hundreds of files in e.g. specific folder with filename pattern. Files can be downloaded also for specific user, like in Customer Area.

Best regards,
Viljem

Last edit: 14 years 4 months ago by user62.

Please Log in or Create an account to join the conversation.

  • dalonehacker
  • dalonehacker's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 4 months ago #630

Viljem,

Could you assist me further by showing some documentation
on how to use the code you had mentioned , where/how to apply it to work with Table JX?

It would be a great help for me, as well as others!

Thank You

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #634

Hi,

no problem. Just describe what you would like to do.

Best regards,
Viljem

Please Log in or Create an account to join the conversation.

  • dalonehacker
  • dalonehacker's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 4 months ago #637

Hi Viljem,

I have created a form with the following fields:

1. Name
2. Email
3. Upload Filename
4. Datetime

So the users will keyin their name,email and browse and select a file for upload. Upon clicking the Submit button i save the fields in a table called Requests. The uploaded file is stored in a folder on my server.

I have used Table JX to create a list to manage these records, i can view the details of the requests. I can see the filename of the uploaded file. But what i want to be able to do is to somehow click on the filename in the list and download the file to my PC. Just like your Personal Download page.

You had mentioned in your previous replies that you can use a simple tag list, but I am still not sure where to apply the code in my Table JX list.

Hope this description helps you understand my problem better.

Thank You for your assistance

Regards

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #639

Hi,

it is very simple:

1. column Upload Filename (in the database should be the type e.g. varchar(100)
2. use phpMyAdmin to insert the tag in the first row of the column Upload Filename:

<a href="http://www.toolsjx.com/documents/file001.zip">File1</a>

If you have 10 files, insert the tag 10 times.
If you have hundreds of files, create view and concatenate the file name, e.g. file001.zip File1, file002.zip File2...
(or send me mail, I will create the sql view for you)
You can also concatenate or just get the filename from other table or view.

Best regards,
Viljem

PS: my suggestion is, that you have two columns: FileName (File1) and FullFileName(/documents/file001.zip)

Last edit: 14 years 4 months ago by user62.

Please Log in or Create an account to join the conversation.

Moderators: tomaz
Time to create page: 0.118 seconds

Contact Us

Contact us on Discord

Contact us on Facebook