Siebel Life Sciences Guide > Using Personalized Content Delivery > Accessing and Delivering Messaging Plans Using the PCD Viewer >
PCD Viewer APIs
Table 39 describes the APIs that you can use to perform specific operations in the PCD Viewer. You access these APIs from external JavaScript files which have been packaged into ZIP files. The ZIP files in turn are added as presentation items to messaging plans. External JavaScript files can, for example, call these APIs to perform specific operations in the following manner: var arg = [];
arg[0] = "API Name";
arg[1] = "Parameter1"; window.parent.postMessage(arg, "*");
For example: var arg = [];
arg[0] = "detailerMenuBar";
arg[1] = "hide"; window.parent.postMessage(arg, "*");
where:
- "detailerMenuBar" is the API Name.
- "hide" is the additional parameter required to invoke that API.
Table 39. PCD Viewer Application Programming Interface
|
|
|
detailerMenuBar |
Used to show or hide the title (or header navigation) bar in the PCD Viewer. |
Argument: arg1 Value: hide or show |
detailerThreadBar |
Used to show or hide the footer navigation bar in the PCD Viewer. |
Argument: arg1 Value: hide or show |
GotoNextItem |
Used to navigate to the next item in a presentation (or messaging plan). |
Argument: none |
GotoPreviousItem |
Used to navigate to the previous item in a presentation (or messaging plan). |
Argument: none |
NavigateToItem |
Used to navigate to a specific item in a presentation (or messaging plan). |
Argument: arg1 Value: The name of the item to which you want to navigate to. |
RelatedItemStartTime |
Used to start time tracking on related messages or items. A related message does not necessarily have to be a literature record - it can be another file inside the ZIP. |
None |
RelatedItemEndTime |
Used to stop time tracking on related messages. |
Argument: arg1 Value: The file name of the related message. |
|