I want to show number in another table as hyper link
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-03-2024 11:45 PM
Hi
how can i show that number as hyper link?
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-04-2024 12:34 AM
Yes you can add hyperlinks in work notes by using something like
[code]<a href="https://yourlink">Whatever you want to call it</a>[/code]
But this can also be prevented on an instance (Property glide.ui.security.allow_codetag), because it could be a security risk.
To do this for linking to another record, you can write a BR on the table of the record you want to link to like:
var link = current.getLink();
var msg = gs.getMessage("Information from record {0}, ['[code]<a href="' + link + '"> + current.number + '</a></br>[/code]']);
var rec = current.parent.getRefRecord(); // if your records are linked through parent field, otherwise, create your link to the target record here
if(rec.next(){
rec.work_notes = msg;
}
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark