Out-of-the-Box JavaScript Functions
Learn about the Out-of-the-Box JavaScript Functions.
Following are the list of Out-of-the-Box JavaScript Functions:
u8.services.businessObjects.copy
Use this JavaScript function to copy information between info areas. In
UPDATE_DEFAULT this function is used in D_CopyOfferToOrder (BTB and OTC),
A_CopyOfferToWR and A_CopyOfferFromServiceContract both
BTB only. For further details, see D_CopyOfferToOrder.
Use the Copy Fields options in the Configuration info area (MC) to determine which fields are copied, see Configuration Info Area in the CRM.Core Administrator Guide.
u8.services.lru.clear();
Use this JavaScript function to delete Aurea CRM.Web's browsing history. an example of doing this is by defining an application menu entry.
u8.services.lru.clear(); deletes the complete history (pages and
records).
u8.services.lru.clear(type); deletes the history for the type
specified:
-
u8.services.lru.clear("Page");for deleting the pages -
u8.services.lru.clear("Record");for deleting the records from the browsing history
u8.session.identity
Use the following functions to identify the current rep (example - for render hooks, process metrics etc.):
-
u8.session.identity.repIdgets the current user's Rep ID as an integer value. -
u8.session.identity.repNamegets the current user's Rep name (e.g. "John Doe"). -
u8.session.identity.userNamegets the current user's login name (e.g. "JOHN") -
u8.session.identity.isSuperUseris true if the current user is the SU.