I want to show number in another table as hyper link

shivaadapa
Tera Expert

Hi 

shivaadapa_0-1712213078421.png

how can i show that number as hyper link?

5 REPLIES 5

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