Add fMakeExcelLink function for generating Excel hyperlink formulas

This commit is contained in:
2026-04-16 17:30:08 +03:00
parent 1070653679
commit e4cf11794d
2 changed files with 29 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
let
fMakeExcelLink = ( P_LINK as nullable text,
optional P_LINK_TEXT as nullable text) as text =>
let
Link = if P_LINK = null then "" else P_LINK,
LinkText = if P_LINK_TEXT = null then
try fP("LINK_SYMBOL") otherwise P_LINK
else
P_LINK_TEXT,
Result = "=ГИПЕРССЫЛКА(""" & Link & """;""" & LinkText & """)"
in
Result
in
fMakeExcelLink