home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.tcs3.com
/
ftp.tcs3.com.tar
/
ftp.tcs3.com
/
DRIVERS
/
Audio
/
Office2010
/
ProPlus.WW
/
ProPsWW.cab
/
PUBLICFUNCTIONS.JS3
< prev
next >
Wrap
Text File
|
2007-02-04
|
4KB
|
108 lines
// ****************************************************************************
// Name: PublicFunctions.js
//
// Description: functions available to Form and Macro scripts in the Forms Tool.
//
// Comments:
// All functions contained can be called by custom form or macro scripts.
// Contents may be changed in future versions.
// Please don't modify this file, as modifications may be overwritten.
//
// Copyright ⌐2006 Microsoft Corporation, All Rights Reserved.
// ****************************************************************************
// Boolean global variables available to form scripts.
var g_IsNew; // True if record is new, false otherwise.
var g_IsSearch; // True if form opened in search dialog; false otherwise.
var g_IsFormPreview; // True if form open in preview layout; false otherwise.
var g_IsPreviewPane; // True if form opened in preview pane; false otherwise.
var g_IsReadOnly; // True if record is read-only; false otherwise.
var g_IsResponse; // True is record is a response; false otherwise.
var g_IsVersioned; // True if record is versioned; false otherwise.
var g_RecordID; // The ID of the current record.
var g_FormID; // The ID of the current form.
var g_SelectedID; // The ID of the parent record.
var g_FormRecord; // IGrooveFormsToolFormRecord; the current record.
// Globals used by various methods
var GrooveMessageBoxIcon_None = 0x0000;
var GrooveMessageBoxIcon_Exclamation = 0x0080;
var GrooveMessageBoxIcon_Warning = 0x0081;
var GrooveMessageBoxIcon_Information = 0x0100;
var GrooveMessageBoxIcon_Asterisk = 0x0101;
var GrooveMessageBoxIcon_Question = 0x0081;
var GrooveMessageBoxIcon_Stop = 0x0400;
var GrooveMessageBoxIcon_Error = 0x0401;
var GrooveMessageBoxIcon_Hand = 0x0402;
var GrooveDialogBoxResultCode_OK = 1;
var GrooveDialogBoxResultCode_Cancel = 2;
var GrooveFormsToolRole_Guest = 0x01;
var GrooveFormsToolRole_Participant = 0x02;
var GrooveFormsToolRole_Manager = 0x04;
var GrooveIntlDateFormatStyle_Full = 0;
var GrooveIntlDateFormatStyle_Long = 1;
var GrooveIntlDateFormatStyle_Medium = 2;
var GrooveIntlDateFormatStyle_Short = 3;
var GrooveIntlDateFormatStyle_Default = GrooveIntlDateFormatStyle_Medium;
var GrooveFormsToolLinkType_None = 0;
var GrooveFormsToolLinkType_Record = 1;
var GrooveFormsToolLinkType_View = 2;
var GrooveFormsToolLinkType_Tool = 3;
// This function returns the App object. The App object implements various
// functions as defined by the IGrooveFormsToolUIDelegate interface. This
// object provides functions and properties which are useful when building
// applications which need to interact with the Groove platform.
function GetApp()
{
return int_GetApp();
}
// This function returns an IGrooveBSTREnum which can be used as a parameter
// in several calls on the application.
function CreateBSTREnumFromArray(i_StringArray)
{
var BSTREnum = int_CreateBSTREnumFromArray(i_StringArray);
return BSTREnum;
}
// This function will dynamically set the text of a field label on a form.
function SetFieldLabel(i_FieldName, i_Label)
{
int_SetFieldLabel(i_FieldName, i_Label);
}
// This function will dynamically hide or show a field and its label on a form.
function HideField(i_FieldName, i_bHide)
{
int_HideField(i_FieldName, i_bHide);
}
// This function will dynamically disable or enable a field on a form.
function DisableField(i_FieldName, i_bDisable)
{
int_DisableField(i_FieldName, i_bDisable);
}
// This function will refresh all visible error icons on the page. This should
// be used if there is any code that dynamically changes the layout of the page
// and there are fields on the form that have any validation (i.e. "Required",
// "Min/Max", or text validation). Calling this will make sure that all of the
// error icons display in the proper location.
function RefreshErrorIcons()
{
int_RefreshErrorIcons();
}
// This function will refresh the contents of the preview pane from the record.
function RefreshPreviewPane()
{
int_RefreshPreviewPane();
}