Skip to main content
Bumped by Community user
Bumped by Community user
Added tags
Link
GeorgeC
  • 8.3k
  • 7
  • 56
  • 143
edited title
Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

Mapbasic Creating hotlinks only on objects that have a value using MapBasic?

Source Link
GeorgeC
  • 8.3k
  • 7
  • 56
  • 143

Mapbasic Creating hotlinks only on objects that have a value

In mapbasic I am creating hotlinks with the code below. However when there is no value in the column it creates a hyperlink that doesn't work and this is frustrating for users. Is it possible to only have the hyperlink on records with a value? or at least for those without a value the alias should say "No AsCon found"

Map From temptable
mapWinID = FrontWindow()
Set Map Window mapWinID Layer 1 Activate Using "https://server.com/docs/~D"+"As_con_InfoExpert_ID" On Labels Objects Relative Path Off Enable On
Metadata Table temptable SetKey "\ActiveObject\Expr" To ("""https://server.com/docs/~D""+As_con_InfoExpert_ID")
Metadata Table temptable SetKey "\ActiveObject\Mode" To "HOTLINK_MODE_BOTH"
Metadata Table temptable SetKey "\ActiveObject\Relative" To "OFF"
Metadata Table temptable SetKey "\ActiveObject\Enabled" To "TRUE"
Metadata Table temptable SetKey "\ActiveObject\Alias" To ("Open in Infoexpert")