Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
customization:lime-links [2014-01-23 15:23] Martin Berg |
customization:lime-links [2018-12-02 22:09] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | 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 " | + | 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 " |
- | You can also build your own LIME links. The following links could for example be found in a standard HTML file: | + | You can also build your own Lime links. The following links could for example be embedded |
< | < | ||
Line 9: | Line 9: | ||
===== Format ===== | ===== Format ===== | ||
- | A LIME link follows this formatting scheme: | + | A Lime link follows this formatting scheme: |
< | < | ||
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: |
< | < | ||
Line 29: | Line 29: | ||
Executing the link will open the company record having ID 1001 in the database // | Executing the link will open the company record having ID 1001 in the database // | ||
- | ===== 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 // | + | The //open// command opens the specified record in Lime CRM. The record ID must be specified as a parameter having the name // |
Available parameters: | Available parameters: | ||
^ Parameter ^ Description ^ | ^ Parameter ^ Description ^ | ||
- | | idrecord/ | + | | idrecord/ |
| 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. | + | | field/value pair | Use only if the record ID is not available. |
=== 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 '' | + | | ownersource | The parent record ID can be automatically set by Lime CRM. Valid values are '' |
- | | ownerfield | The name of the field that links to the parent record. If not specified | + | | ownerfield | The name of the field that links to the parent record. If not specified |
| autosave | When set to '' | | autosave | When set to '' | ||
| 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 // | + | 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 // |
< | < | ||
Line 94: | Line 94: | ||
==== CallTo ==== | ==== CallTo ==== | ||
- | By using the //callto// command | + | By using the //callto// command |
- | 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: |
< | < | ||
Line 106: | Line 106: | ||
==== Appointment ==== | ==== Appointment ==== | ||
- | The '' | + | The '' |
- | 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//: |
< | < | ||
Line 131: | Line 131: | ||
< | < | ||
- | 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//: |
< | < | ||
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 '' | + | | Handled | Boolean | Should be set to '' |
- | Given the following | + | Given the following |
< | < | ||
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 '' | + | To simplify the creation and execution of Lime links Lundalogik provides a Javascript helper class that can be found in the '' |
- | ==== LimeUrl.Execute ==== | + | ==== Execute ==== |
This function can be used with all commands and has the advantage that only one call to LimeUrl needs to be done to both create and execute the link command. | This function can be used with all commands and has the advantage that only one call to LimeUrl needs to be done to both create and execute the link command. | ||
Line 246: | Line 246: | ||
^ Parameter ^ Description ^ | ^ Parameter ^ Description ^ | ||
| classname | The class that the command should operate on. | | | classname | The class that the command should operate on. | | ||
+ | | command | The command to execute. | | ||
+ | | options | An object with parameters to the command. All parameters need to be named and have a value. This object can also have a member called '' | ||
+ | === Examples === | ||
+ | Open the company record having ID 1001 and set the tab pointed to by the // | ||
+ | <code javascript> | ||
+ | LimeUrl.Execute(' | ||
+ | | ||
+ | | ||
+ | }); | ||
+ | </ | ||
+ | Create a new history record and associate it with the currently selected company record: | ||
+ | <code javascript> | ||
+ | LimeUrl.Execute(' | ||
+ | | ||
+ | | ||
+ | }); | ||
+ | </ | ||
- | ==== LimeUrl.Create ==== | + | The same as above, but for embedded use in e.g. an actionpad: |
+ | <code html> | ||
+ | <a href="#" | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | ==== Create ==== | ||
+ | Creates a Lime link with the specified command as its only parameter. | ||
+ | '' | ||
- | ==== LimeUrl.AddParameter ==== | + | ^ Parameter ^ Description ^ |
+ | | classname | Name of the class the link concerns. | | ||
+ | | command | The command that the link should execute. | | ||
+ | === Example === | ||
+ | To create a link that creates a new history record: | ||
+ | <code javascript> | ||
+ | LimeUrl.Create(' | ||
+ | </ | ||
+ | This results in the following link: | ||
+ | < | ||
+ | limecrm: | ||
+ | </ | ||
- | ==== LimeUrl.Click | + | ==== AddParameter |
+ | Adds a parameter to a link that was created using a call to '' | ||
+ | '' | ||
+ | |||
+ | ^ Parameter ^ Description ^ | ||
+ | | name | Name of the parameter. | | ||
+ | | value | Value of the parameter. | | ||
+ | |||
+ | === Example === | ||
+ | To add parent record and contact person to the link that was created in the previous example: | ||
+ | |||
+ | <code javascript> | ||
+ | LimeUrl.AddParameter(' | ||
+ | LimeUrl.AddParameter(' | ||
+ | LimeUrl.AddParameter(' | ||
+ | </ | ||
+ | This results in the following link: | ||
+ | < | ||
+ | limecrm: | ||
+ | |||
+ | ==== Click ==== | ||
+ | Executes the Lime link created using '' | ||
+ | |||
+ | === Example === | ||
+ | <code javascript> | ||
+ | LimeUrl.Click(); | ||
+ | </ |