Now you can add your own javascript addins to HyperDoc Online. What you have to do:

To add menu item to hierarchy menu please add to XML file (hisHierarchyStaticReadonlyMenu.xml) the following section:

<menuitem caption="MyCaption" command="custom_cmd_nr" />

and to INI file in section [Configuration]

custom_cmd_nr="javascript:hTop.myHierMenuFunction([params], sCmdWinTitle, sCmdWinParams)"; 
custom_cmd_nr_title="Window Title"; 
custom_cmd_nr_params="Window Params (eg. width=900px, height=500px, status=no, scroll=yes, resizable=yes)";

Params "custom_cmd_nr_params" and "custom_cmd_nr_title" are optional. If you use it please remember, that "sCmdWinParams" and "sCmdWinTitle" move coresponding params value and are optional too.

To add menu item to doc list menu please add to XML file (hisDocListStaticReadonlyMenu.xml) the following section:

<menuitem caption="MyCaption" command="doclist_custom_cmd_nr"/>

and to INI file in section [Configuration]

doclist_custom_cmd_nr="javascript:hTop.MyDocListFunction([params], sCmdWinTitle, sCmdWinParams)"; 
doclist_custom_cmd_nr_title="Window Title"; 
doclist_custom_cmd_nr_params="Window Params (eg. width=900px,  height=500px, status=no, scroll=yes, resizable=yes)";

Params "doclist_custom_cmd_nr_params" and "doclist_custom_cmd_nr_title" are optional. If you use one of them or both, please remember, that "sCmdWinParams" and "sCmdWinTitle" move coresponding params value and are optional too.

  1. Introduction

    This technology provides means for HyperDoc Online authentication using encrypted string in URL (theoretically it could be used for 'POST' method too). Sample usage can look like this:

    http://localhost/HIS20/hislogin.asp?TPID=MIGUBgkrBgEEAYI3WAOggYYwgYMGCisGAQQBgjdYAwGgdTBzAgMCAAECAmYQAgIB%0D%0AAAQQAAAAAAAAAAAAAAAAAAAAAAQQGHMaK%2Fam0JOpIZeAiF0zHQRA0KjSi6tQy6lc%0D%0AoQEf4FleormI6OppPZ4OjYgOd%2By4zEe3LKgHy55sgeCf3V6iDGB4WQuk8sCJumaM%0D%0A3GJiLley5Q%3D%3D%0D%0A

    Please note that it should be rather considered as short term solution with limited security.

  2. How it works

    Basically client is supposed to supply 'TPID' parameter with encrypted user, password and UTC time. Server decrypts parameter, extracts user, password and time. Time (which must be UTC time) is checked against server time. Only if difference is less than one hour, parameter is regarded to be valid. Parameter is encrypted using AES algorithm in Microsoft CAPICOM EncryptedData format.

  3. Client side

    Of course, client application can (and should) use provided component for generating value of 'TPID' parameter. Sample ASP page ('GenerateTPID.asp') shows how to do it. Generally one should create Authentication object from HyperDoc Administration Base component ("HDAdmBase.Authentication") and call two methods on it.

    Method for initializing

    SetSecretPwdMode Mode, RegSuffixOrSecretKey

    It sets required operating mode and (optionally) required parameters. Mode can be one of:

    - Tessel Passport functionality is disabled at all (obviously this mode is useless on client side)
    1 - secret password required for encryption/decryption is taken from registry; optional parameter allows multiple registry keys for different HyperDocs Online sitting on one server; so secret key should be placed in value "secdata" for key "HKLM\Software\Tessel Systems\HyperDoc Online\TPID"; if object was initiated with additional registry suffix, one is appended to above registry key (value to be read - "secdata" remains unchanged); attached VBS script simplifies task of adding/modifying secret key in registry.
    2 - secret password required for encryption/decryption is supplied directly as parameter to this call.
    3 - predefined, hard-coded secret password is used (this mode is intended for debugging).

    Of course, value of secret key has to be same on client and server.

    Method for actual encryption

    GetEncryptedData(UserName, Pwd, [Time])

    This method encrypts HyperDoc's user name and password together with UTC time. If time is not supplied current time is used. Remember to 'URLEncode' obtained data before using it in URL.

  4. Server side

    To enable Tessel Passport on server side one should add following entries in "General" section of HyperDoc Online INI file:

    EnableTesselPassport=[0 | 1 | 2 | 3]

    his entry sets operation mode for server side component - this is equivalent of first ('Mode') parameter of 'SetSecretPwdMode' method; meaning is described above (in client side part); value 0 is default, so without this entry Tessel Passport is disabled. Note: to minimize security threat, do not enable it if you are not going to use it.

    TesselPassportParam=

    his entry sets additional info for server side component - this is equivalent of second ('RegSuffixOrSecretKey') parameter of 'SetSecretPwdMode' method; meaning is described above (in client side part);

loading table of contents...