Opening Lookup Tab through JavaScript

Origam has a feature, which allows to open lookup tabs through JavaScript. It is possible to open a new tab for lookup through a JavaScript call. This might be used in combination with HTML pages, that are integrated with the Flash UI. Since the HTML pages are opened in the internal frames example code contains access to the main document. Flash UI has usually an ID portal.

Invocation of openLookupTab from internal frame

window.top.document.getElementById("portal").openLookupTab(lookupId, objectId);