Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
customization:lime-links [2016-03-08 12:45]
Martin Berg Page moved from relnotes:releases:customization:lime-links to customization:lime-links
customization:lime-links [2018-12-02 22:09] (current)
Line 1: Line 1:
-====== LIME links ====== +====== Lime links ====== 
-LIME links are direct shortcuts to a record or a feature in LIME Pro. Examples of where LIME links are used in LIME Pro is in the "Please call" feature, Super Search results window and in action pads.+Lime links are direct shortcuts to a record or a feature in Lime CRM. Examples of where Lime links are used in Lime CRM is in the "Please call" feature, Super Search results window and in action pads.
  
-You can also build your own LIME links. The following links could for example be embedded in web page: +You can also build your own Lime links. The following links could for example be embedded in web page: 
  
 <code><a href="limecrm:company.lundalogik.cosmo?command=open&name=Greenland%20Fir%20Trees%20AB">Greenland Fir Trees AB </a></code> <code><a href="limecrm:company.lundalogik.cosmo?command=open&name=Greenland%20Fir%20Trees%20AB">Greenland Fir Trees AB </a></code>
Line 9: Line 9:
  
 ===== Format ===== ===== Format =====
-LIME link follows this formatting scheme:+Lime link follows this formatting scheme:
  
 <code>limecrm:CLASS.DATABASE.LIMESERVER?command=COMMAND[&PARAMETER=VALUE]</code> <code>limecrm:CLASS.DATABASE.LIMESERVER?command=COMMAND[&PARAMETER=VALUE]</code>
Line 15: Line 15:
 ^ Parameter ^ Description ^ ^ Parameter ^ Description ^
 | CLASS | Database name or label of a LIME table.| | CLASS | Database name or label of a LIME table.|
-| DATABASE | The name of the LIME Pro database. | +| DATABASE | The name of the Lime CRM database. | 
-| LIMESERVER | The name of the LIME Pro server. |+| LIMESERVER | The name of the Lime CRM server. |
 | COMMAND | The command to execute. | | COMMAND | The command to execute. |
 | PARAMETER | Parameter name. Every command accepts different parameters, more info below. | | PARAMETER | Parameter name. Every command accepts different parameters, more info below. |
 | VALUE | The value to use for the specified parameter. | | VALUE | The value to use for the specified parameter. |
  
-An example of a LIME link that opens a specific record and where CLASS refers to the database name of a table:+An example of a Lime link that opens a specific record and where CLASS refers to the database name of a table:
 <code>limecrm:company.lundalogik.cosmo?command=open&idcompany=1001</code> <code>limecrm:company.lundalogik.cosmo?command=open&idcompany=1001</code>
  
Line 31: Line 31:
 ===== Built-in commands ===== ===== Built-in commands =====
 ==== Open ==== ==== Open ====
-The //open// command opens the specified record in LIME Pro. The record ID must be specified as a parameter having the name //id<<classname>>//, e.g. //idcompany//.+The //open// command opens the specified record in Lime CRM. The record ID must be specified as a parameter having the name //id<<classname>>//, e.g. //idcompany//.
  
 Available parameters: Available parameters:
  
 ^ Parameter ^ Description ^ ^ Parameter ^ Description ^
-| idrecord/id[CLASS] | ID of the record to open. If record ID is the only parameter it does not have to be named and the LIME link can be formatted like this: ''limecrm:company?1001''. |+| idrecord/id[CLASS] | ID of the record to open. If record ID is the only parameter it does not have to be named and the Lime link can be formatted like this: ''limecrm:company?1001''. |
 | activeexplorer | Specifies which tab that is to be set as the active tab when the record is opened. Note that it is the name of the relation field that should be specified here. | | activeexplorer | Specifies which tab that is to be set as the active tab when the record is opened. Note that it is the name of the relation field that should be specified here. |
-| field/value pair | Use only if the record ID is not available. LIME Pro will try to search for the record to open using the information as conditions in a filter. Only the first matching record will be shown. |+| field/value pair | Use only if the record ID is not available. Lime CRM will try to search for the record to open using the information as conditions in a filter. Only the first matching record will be shown. |
  
 === Examples === === Examples ===
Line 62: Line 62:
 | ownerclass | The name of the class of the parent record. | | ownerclass | The name of the class of the parent record. |
 | ownerid | The ID of the parent record. | | ownerid | The ID of the parent record. |
-| ownersource | The parent record ID can be automatically set by LIME Pro. Valid values are ''activeinspector'' to specify the currently open record or ''activeexplorer'' to specify the currently selected record in a list. | +| ownersource | The parent record ID can be automatically set by Lime CRM. Valid values are ''activeinspector'' to specify the currently open record or ''activeexplorer'' to specify the currently selected record in a list. | 
-| ownerfield | The name of the field that links to the parent record. If not specified LIME Pro will attempt to autodetect this. |+| ownerfield | The name of the field that links to the parent record. If not specified Lime CRM will attempt to autodetect this. |
 | autosave | When set to ''1'' the record will be saved without showing it afterwards (if this fails it will be shown to the user anyway). When set to ''0'' the user will have to close and save the record manually. | | autosave | When set to ''1'' the record will be saved without showing it afterwards (if this fails it will be shown to the user anyway). When set to ''0'' the user will have to close and save the record manually. |
 | field/value pair | Specify values for fields in the record. | | field/value pair | Specify values for fields in the record. |
Line 79: Line 79:
  
 ==== MailTo ==== ==== MailTo ====
-The //mailto// command creates a new e-mail message in the same manner as when an e-mail address is clicked by the user in LIME Pro. The following link creates an e-mail for //Nisse// at //Manpower//:+The //mailto// command creates a new e-mail message in the same manner as when an e-mail address is clicked by the user in Lime CRM. The following link creates an e-mail for //Nisse// at //Manpower//:
  
 <code>limecrm:person.lundalogik.cosmo?command=mailto&address=nisse@manpower.se</code> <code>limecrm:person.lundalogik.cosmo?command=mailto&address=nisse@manpower.se</code>
Line 94: Line 94:
  
 ==== CallTo ==== ==== CallTo ====
-By using the //callto// command LIME Pro is instructed to dial the specified phone number. This can typically be used to easily dial a number from an action pad.+By using the //callto// command Lime CRM is instructed to dial the specified phone number. This can typically be used to easily dial a number from an action pad.
  
-The following is a LIME link that dials Lundalogik Customer Support when executed:+The following is a Lime link that dials Lundalogik Customer Support when executed:
  
 <code>limecrm:person.lundalogik.cosmo?command=callto&number=+46462704800</code> <code>limecrm:person.lundalogik.cosmo?command=callto&number=+46462704800</code>
Line 106: Line 106:
  
 ==== Appointment ==== ==== Appointment ====
-The ''appointment'' command creates a new meeting and a to-do item in the same manner as when using the //New meeting...// command is used in LIME Pro+The ''appointment'' command creates a new meeting and a to-do item in the same manner as when using the //New meeting...// command is used in Lime CRM
  
-The following example creates an appointment with the person having record ID 1001 and sets the subject to //LIME Pro kick-off//:+The following example creates an appointment with the person having record ID 1001 and sets the subject to //Lime CRM kick-off//:
  
 <code>limecrm:todo.lundalogik.cosmo?&command=appointment&ownerclass=person&ownerid=1001&subject=Lime%20kick-off</code> <code>limecrm:todo.lundalogik.cosmo?&command=appointment&ownerclass=person&ownerid=1001&subject=Lime%20kick-off</code>
Line 131: Line 131:
 <code>limecrm:todo.lundalogik.cosmo?&command=appointment&ownerclass=company&ownerid=2001</code> <code>limecrm:todo.lundalogik.cosmo?&command=appointment&ownerclass=company&ownerid=2001</code>
  
-Create a new appointment with the company having record ID 2001 and set the subject to //LIME Pro kick-off//:+Create a new appointment with the company having record ID 2001 and set the subject to //Lime CRM kick-off//:
 <code>limecrm:todo.lundalogik.cosmo?&command=appointment&ownerclass=company&ownerid=2001&subject=LIME%20Pro%20kickoff</code> <code>limecrm:todo.lundalogik.cosmo?&command=appointment&ownerclass=company&ownerid=2001&subject=LIME%20Pro%20kickoff</code>
  
Line 160: Line 160:
  
 ^ Parameter ^ Data type ^ Description ^ ^ Parameter ^ Data type ^ Description ^
-| Class | LDE.Class | The class that the LIME link concerns. |+| Class | LDE.Class | The class that the Lime link concerns. |
 | Command | String | The name of the command. | | Command | String | The name of the command. |
 | Parameter | String | The parameter string. | | Parameter | String | The parameter string. |
-| Handled | Boolean | Should be set to ''True'' in the event handler if the command could be processed. If this is not done LIME Pro will display an error message saying that the command could not be executed. |+| Handled | Boolean | Should be set to ''True'' in the event handler if the command could be processed. If this is not done Lime CRM will display an error message saying that the command could not be executed. |
  
-Given the following LIME link:+Given the following Lime link:
  
 <code>limecrm:company.MyDatabase.MyServer?command=mycommand&param1=1501&param2=1601</code> <code>limecrm:company.MyDatabase.MyServer?command=mycommand&param1=1501&param2=1601</code>
Line 237: Line 237:
  
 ===== Javascript support ===== ===== Javascript support =====
-To simplify the creation and execution of LIME links Lundalogik provides a Javascript helper class that can be found in the ''scripts'' folder located in the actionpad folder.+To simplify the creation and execution of Lime links Lundalogik provides a Javascript helper class that can be found in the ''scripts'' folder located in the actionpad folder.
  
 ==== Execute ==== ==== Execute ====
Line 274: Line 274:
 </code> </code>
 ==== Create ==== ==== Create ====
-Creates a LIME link with the specified command as its only parameter.+Creates a Lime link with the specified command as its only parameter.
  
 ''LimeUrl.Create = function(classname, command)'' ''LimeUrl.Create = function(classname, command)''
Line 314: Line 314:
  
 ==== Click ==== ==== Click ====
-Executes the LIME link created using ''LimeUrl.Create'' and optionally ''LimeUrl.AddParameter''. This method does not accept any arguments.+Executes the Lime link created using ''LimeUrl.Create'' and optionally ''LimeUrl.AddParameter''. This method does not accept any arguments.
  
 === Example === === Example ===
  • Last modified: 5 years ago
  • (external edit)