Calling Terminology Browser from other Apps
Aus Termserver-CTS2
(Unterschied zwischen Versionen)
(→Code (java)) |
|||
Zeile 1: | Zeile 1: | ||
This site shows you how to call the Terminology Browser from another ZK application. It is possible to call it from any javascript app, therefore you have to change the code. | This site shows you how to call the Terminology Browser from another ZK application. It is possible to call it from any javascript app, therefore you have to change the code. | ||
+ | =Parameters= | ||
+ | You can add the following parameters when you open the Browser. | ||
+ | <table> | ||
+ | <tr> | ||
+ | <th>Parameter</th> | ||
+ | <th>Possible values</th> | ||
+ | <th>Description</th> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>loadType</td> | ||
+ | <td>"CodeSystem"/"CS" or "ValueSet"/"VS"</td> | ||
+ | <td>Specifies whether to open a code system or a value set</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td></td> | ||
+ | <td></td> | ||
+ | <td></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td></td> | ||
+ | <td></td> | ||
+ | <td></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td></td> | ||
+ | <td></td> | ||
+ | <td></td> | ||
+ | </tr> | ||
+ | </table> | ||
+ | |||
+ | |||
=Call Terminology Browser from a ZK app= | =Call Terminology Browser from a ZK app= | ||
This example requires a zul file and java file behind. | This example requires a zul file and java file behind. |
Version vom 18. Dezember 2014, 12:24 Uhr
This site shows you how to call the Terminology Browser from another ZK application. It is possible to call it from any javascript app, therefore you have to change the code.
Inhaltsverzeichnis |
Parameters
You can add the following parameters when you open the Browser.
Parameter | Possible values | Description |
---|---|---|
loadType | "CodeSystem"/"CS" or "ValueSet"/"VS" | Specifies whether to open a code system or a value set |
Call Terminology Browser from a ZK app
This example requires a zul file and java file behind.
Window (ZUL)
Insert the following code into your zul file inside the window tag.
<script type="text/javascript"> function receiveMessage(event) { var widgetMainWindow = zk.Widget.$('$mainWindow'); var e = new zk.Event(widgetMainWindow, "onSendBack", event.data); zAu.send(e); } window.addEventListener("message", receiveMessage, false); </script>
Code (java)
Insert this code into your java file to receive the answer message and to call the Browser in a modal window.