GetCodeByAccount Method



 
The GetCodeByAccount method returns a code by account.


Syntax

    [obj=] SiteCafe.Server.Codes.GetCodeByAccount(accountIndex)
    
Parameters
    accountIndex Long value that specifies the account index.
Return Value
    Returns a Code object representing the specified code.
Remarks
    None.
Examples
    The following example displays the name of the first account's code.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    code = SiteCafe.Server.Codes.GetCodeByAccount(1);
    alert(code.Name);
    </SCRIPT>
    

Applies to
    SiteKiosk v6.2 (and later versions).

Back to top