Creating Links in Detail View

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
rpierce
Veteran Member
Posts: 255
Joined: 2018-11-26 13:55
Location: Washington State

Creating Links in Detail View

Post by rpierce » 2022-05-27 18:01

Does anyone have a solution for adding external links to the Detail View?? I would like to add links to web pages to help my users. See the image below.
Capture.JPG
Capture.JPG (71.36 KiB) Viewed 933 times
Thanks for any help.
Ray

rpierce
Veteran Member
Posts: 255
Joined: 2018-11-26 13:55
Location: Washington State

Re: Creating Links in Detail View

Post by rpierce » 2022-05-28 22:30

It seems that I can do it by modifying the template file for the table. But, it will get replaced when I regenerate. I have saved a copy of the template file in the server folder. I don't think it will be replaced when I FTP files to the server?

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

Re: Creating Links in Detail View

Post by pbottcher » 2022-05-29 20:53

You can try to add to the TABLENAME-dv.js

Code: Select all

$j(function() {
$j('label[for="FIELDNAME"]').next().after('<a href="YOURLINK"> YOURTEXT</a>')
})
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.

Post Reply