Link of uploade file in records

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
ushay
Veteran Member
Posts: 54
Joined: 2020-06-26 21:30

Link of uploade file in records

Post by ushay » 2023-05-01 14:03

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 1402 times
Shay.


pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1635
Joined: 2018-04-01 10:12

Re: Link of uploade file in records

Post by pbottcher » 2023-05-06 07:49

Hi,

you shall be able to access the HREF attribute of the file.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

ushay
Veteran Member
Posts: 54
Joined: 2020-06-26 21:30

Re: Link of uploade file in records

Post by ushay » 2023-05-12 07:36

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.

ushay
Veteran Member
Posts: 54
Joined: 2020-06-26 21:30

Re: Link of uploade file in records

Post by ushay » 2023-05-12 10:15

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);
});

Post Reply