Page 1 of 1

Link of uploade file in records

Posted: 2023-05-01 14:03
by ushay
Hi,

I saw a very nice way to send messages via Whatsapp in the appgini-customization-cookbook.

I whish to send the link for the uploaded file, is it possible?
Screenshot_20230501_165555_Photo Editor.jpg
Screenshot_20230501_165555_Photo Editor.jpg (26.78 KiB) Viewed 3099 times
Shay.

Re: Link of uploade file in records

Posted: 2023-05-05 16:34
by onoehring
Hi,

right click, copy & paste?
Olaf

Re: Link of uploade file in records

Posted: 2023-05-06 07:49
by pbottcher
Hi,

you shall be able to access the HREF attribute of the file.

Re: Link of uploade file in records

Posted: 2023-05-12 07:36
by ushay
hi,

i finally managed to get the file link with the help oh Ahmed with something like this:

Code: Select all

var urlMupload1 = $j('#Mupload1-link').attr('href');
my problem now is that sometimes the upload field is empty and when i use the code above i still get a link.
is there a way to check on table-dv.js if there is a file in the upload field or if it's empty?

Shay.

Re: Link of uploade file in records

Posted: 2023-05-12 10:15
by ushay
i figured it out this way:
Mupload1 is the name of my field

Code: Select all

jQuery(function() {
  var filename = jQuery('#Mupload1-link i').attr('title');
  console.log(filename);
});