Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dustingetz
Created September 24, 2010 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dustingetz/595467 to your computer and use it in GitHub Desktop.
Save dustingetz/595467 to your computer and use it in GitHub Desktop.
function startCheckin (oCtx)
{
var processTicketReceipt${ns} = function(sEventID, sRecipientID, oEventData)
{
if ((sRecipientID !== "checkin${ns}") ||
(sEventID !== docway.SYSTEM_EVENT_TICKET_RECEIPT)) return;
finishCheckin(oCtx, oEventData);
}
wspt.getDhtmlClient().getEventManager().subscribeSystemEvents(processTicketReceipt${ns});
oQueryString = wspt.getDhtmlClient().createQueryString();
oQueryString.add('docbase', '${docbase}');
oQueryString.add(wspt.RECIPIENT_ID, 'checkin${ns}');
wspt.getDhtmlClient().executeRequest('dwuiGetTicket', oQueryString);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment