declare global type in index.tsx:
function CCLLINK(
reportName: string,
prompts: string,
linkDestination: number
): Promise;
const handleCclLinkClick = async () => {
const reportName = "ccl_driver_name"
const prompts = "'MINE', personId" (where personId is the user's person ID)
const linkDestination = 1 (where 0 opens a new window and 1 opens in the current solution)
Here is a simple working example of CCLLINK:
declare global type in index.tsx: function CCLLINK( reportName: string, prompts: string, linkDestination: number ): Promise;
const handleCclLinkClick = async () => { const reportName = "ccl_driver_name" const prompts = "'MINE', personId" (where personId is the user's person ID) const linkDestination = 1 (where 0 opens a new window and 1 opens in the current solution)
try { await window.CCLLINK(reportName, prompts, linkDestination) } catch (error) { console.error(err) } }
Here is the latest Cerner documentation on CCLLINK: https://wiki.cerner.com/display/public/MPDEVWIKI/CCLLINK