https://antibiotiqueaugmentin.com/surdosage-augmentin-bebe/

Link to record in table

  • zeroeli
  • zeroeli's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 3 months ago #1155

Hi
I'm sorry but I'm not speak english very well
:woohoo:

I've a problem.
I'm using Table JX 1.6 for display in frontend record of a table.
I'n not need any query, I've need only a link of record (in database are pdf files).

Can anyone help me?
Please, it's important for me.

Thanks a lot

eli

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

More
13 years 3 months ago #1158

Hi,

No problem. We will figure it out. =)

So if I understood you right... You would like to display records as links to the pdf files?

To be able to answer you correctly I need some more information.

What exactly do you have stored in your database table?


Regards,
Tomaž

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

  • zeroeli
  • zeroeli's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 3 months ago #1165

Hi Tomas,
thanks for your replay.

I've a table with 7-8 field.
One of this, called input_file, is a field that stored a file
This step it's ok.
This file go to an external program that process someting and make a pdf file like report.
This pdf it's stored in a field called output_file.
The ID of the files stored in this two fields is the same, of corse.
This step it's also ok.

Now I've used Table JX 1.6 to display the files stored in both of field, input_file and output_file.
But I don't know how can i do to make an hiperlink to this file.

The question it's so simply.
You give me a file like upload file.
I store this file in a database.
I use this file to make something and then make a pdf.
I store this pdf in a database.
You can display this pdf report.

I hope that you don't colapse for my english :blush:


Thank so much

eli

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

More
13 years 3 months ago #1167

Is this a url address to the file or a file name that you store into your database? Or what do you mean when you say that a pdf is stored in a database?

Do you have this example somewhere on the internet, so that I can imagine it more clearly?

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

  • zeroeli
  • zeroeli's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 3 months ago #1169


Hello world :woohoo:
I hope to post an image of my trouble...
I'm sorry but I still in develop-time and I work only in localhost.

I've popolated my table with jpg-gif-doc etc...

I need when I click every link, i.e. 20110804220012_EINSTEIN.gif, to display a EINSTEIN.gif image that it's stored in file_ingresso field.

I hope I was clear




Thanks

eli

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

More
13 years 3 months ago #1170

First you need to know where your files are saved or what do you have to input into a browser address line for this picture to be displayed. I should be something like www.mysite.org/myfolder/subfolder/images...4220012_EINSTEIN.gif

The part www.mysite.org/myfolder/subfolder/images/ you have to figure out by yourself, because it depends on your server directory tree.

When you know in which directory your files are in, you can use the link option:

Select file_ingresso as link colum in the dropdown box, then select the 'Custom ID:' option.

I the the 'Custom ID:' text field you write: www.mysite.org/myfolder/subfolder/images/$ID

It should even work if you write: myfolder/subfolder/images/$ID

Where 'myfolder/subfolder/images/' is the path to the directory where your files are stored in and '$ID' will be replaced with the value from current record.

I hope this helps.

Regards,
Tomaž

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

Moderators: tomaz
Time to create page: 0.140 seconds

Contact Us

Contact us on Discord

Contact us on Facebook