Differences

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

Link to this comparison view

docs:3500:0800:0890:0891 [2023/04/05 06:08] – created seandocs:3500:0800:0890:0891 [2025/06/12 04:00] (current) – Change to AwareIM aware_support3
Line 9: Line 9:
 ''ObjectName'' and ''objectId'' identify the record to retrieve and ''callBackFunction'' specifies a function that will be called when the data has been retrieved. The function will be called with the object storing the retrieved values. ''ObjectName'' and ''objectId'' identify the record to retrieve and ''callBackFunction'' specifies a function that will be called when the data has been retrieved. The function will be called with the object storing the retrieved values.
  
-How do we get object name and id? When we define an Aware IM operation of the "Execute Script" type Aware IM automatically defines the following objects that we can use in our Javascript:+How do we get object name and id? When we define an AwareIM operation of the "Execute Script" type AwareIM automatically defines the following objects that we can use in our Javascript:
   * ''parser''   * ''parser''
   * ''context''   * ''context''
Line 28: Line 28:
 );</code> );</code>
  
-Note that here "displayName" and "birthday" are the names of the attribute of the Contact object on the phone exposed by the plugin, whereas "FirstName", "LastName" and "DateOfBirth" are the names of the attributes of the Customer object in the CRM application. Note also that all Aware IM attribute values are strings and if the plugin requires some other type (for example, date), then the strings need to be converted to the appropriate type.+Note that here "displayName" and "birthday" are the names of the attribute of the Contact object on the phone exposed by the plugin, whereas "FirstName", "LastName" and "DateOfBirth" are the names of the attributes of the Customer object in the CRM application. Note also that all AwareIM attribute values are strings and if the plugin requires some other type (for example, date), then the strings need to be converted to the appropriate type.
  
 The next step is to create operations of the "Execute Script" type to the form and customer list. We can add a panel operation to the "Editing Mobile" form of the Customer object and an operation with record to the "Customer – all mobile" query. We then specify the above script as a parameter of the operation. The next step is to create operations of the "Execute Script" type to the form and customer list. We can add a panel operation to the "Editing Mobile" form of the Customer object and an operation with record to the "Customer – all mobile" query. We then specify the above script as a parameter of the operation.
  
 {{simplenavi>docs:3500:0800:0890:0891:}} {{simplenavi>docs:3500:0800:0890:0891:}}
  • Last modified: 2023/04/05 06:08