GetActiveLinking As String

 

Returns the modul name of the currently active registration.

 

  

Returns:

 

Type

Value

Description

String

name

Name of active Link modul, currently shown in WindowLink.

With GetActiveLinking we can determine the currently active linking (registration).

 

Example: A return string of link_adr_evt indicates a seminar registration, i.e. the linking of address (adr) and event (evt).

 

Possible return strings:

 

link_adr_adr

link_adr_evt

link_adr_inf

link_adr_itm

link_adr_fin

link_adr_loc

 

link_evt_evt

link_evt_inf

link_evt_itm

link_evt_fin

link_evt_loc

 

link_inf_inf

link_inf_itm

link_inf_fin

link_inf_loc

 

link_itm_itm

link_itm_fin

link_itm_loc

 

link_fin_fin

link_fin_loc

 

link_loc_loc

 

 

Available in:

 

WindowMain

WindowLink

No

YES

 

 Used in:

 

XojoScript Name

GUID

Edit Registration

89F9973D-C3A4-4466-BAE7-8AE85115AE09

 

Hint: You can find more references to XojoScripts which make use of this function by sending the following SQL statement to the database:

Select id,GUID, ScriptName,ScriptCode from im_scripts where ScriptCode Like '%GetActiveLinking%'

 

Example XojoScript:

 

// WindowLink.imLinkPushButtonEditSave

If IsLinkMode = 1 then

' Running Script AFTER LinkMode was set.

 

// Run this code only if we are doing a seminar registration

If GetActiveLinking = "link_adr_evt" Then

 

// Write your code here

 

End If // GetActiveLinking = "link_adr_evt"

 

Else

'MsgBox "Running Script AFTER  saving and returning to ViewMode."

End If