MapInfo Pro Developers User Group

 View Only
  • 1.  Save options to table metadata for Hotlinks with Mapbasic?

    Posted 04-16-2026 15:54

    I need to programmatically set up hotlink configurations for several tables on a regular basis.

    I can capture the proper Set Map statement from the Mapbasic window but it does not write the settings to metadata.

    Is there a way in Mapbasic to trigger the "Save options to table metadata" option you get on the hotlink options menu?



    ------------------------------
    Jay Russell
    Systems Analyst
    CenterPoint Energy, Inc.
    Houston TX
    ------------------------------


  • 2.  RE: Save options to table metadata for Hotlinks with Mapbasic?

    Employee
    Posted 27 days ago

    Hey Jay

    You may have to use the Metadata statement to write the settings to the TAB file using MapBasic.

    Metadata Table table_name 
    	{ SetKey key_name To key_value | 
    		DropKey key_name [ Hierarchical ] | 
    		SetTraverse starting_key_name [ Hierarchical ] 
    		Into ID traverse_ID_var }
    If you write the settings to one TAB, you can open this to see the structure used for saving these settings.


    ------------------------------
    Peter Horsbøll Møller
    Principal Presales Consultant | Distinguished Engineer
    Precisely | Trust in Data
    ------------------------------