js/utils.js.details
author Iván Perdomo <ivan.perdomo@openbravo.com>
Thu, 30 Apr 2009 07:57:57 +0200
changeset 0 78831a506e1e
child 16 4e77fc3c281d
permissions -rw-r--r--
JavaScript details files. Used by the JavaScript API check (run.javascript.tests)
ivan@0
     1
VAR: baseFrameServlet
ivan@0
     2
VAR: gColorSelected
ivan@0
     3
VAR: gWhiteColor
ivan@0
     4
VAR: arrGeneralChange
ivan@0
     5
VAR: dateFormat
ivan@0
     6
VAR: defaultDateFormat
ivan@0
     7
VAR: gByDefaultAction
ivan@0
     8
VAR: gSubmitted
ivan@0
     9
VAR: keyArray
ivan@0
    10
VAR: gWaitingCallOut
ivan@0
    11
VAR: isKeyboardLocked
ivan@0
    12
VAR: isPopupLoadingWindowLoaded
ivan@0
    13
VAR: isCtrlPressed
ivan@0
    14
VAR: isAltPressed
ivan@0
    15
VAR: isTabBlocked
ivan@0
    16
VAR: pressedKeyCode
ivan@0
    17
VAR: isInputFile
ivan@0
    18
VAR: isPageLoading
ivan@0
    19
VAR: isUserChanges
ivan@0
    20
VAR: isTabClick
ivan@0
    21
VAR: isButtonClick
ivan@0
    22
VAR: calloutProcessedObj
ivan@0
    23
FUNCTION: getCurrentRevision [ number ]
ivan@0
    24
FUNCTION: revisionControl [ number current ]
ivan@0
    25
FUNCTION: setFocusFirstControl [ form field found total i ]
ivan@0
    26
FUNCTION: clearForm [ form total i ]
ivan@0
    27
FUNCTION: confirmAction [ action ]
ivan@0
    28
FUNCTION: submitFormGetParams [ Command action frm params i ]
ivan@0
    29
FUNCTION: getParamsScript [ form script total i ]
ivan@0
    30
FUNCTION: submitForm [ field value form bolOneFormSubmission isCallOut frameName ]
ivan@0
    31
FUNCTION: reloadFunction [ text ]
ivan@0
    32
FUNCTION: setChangedField [ field form ]
ivan@0
    33
FUNCTION: logClick [ hiddenInput autosave ]
ivan@0
    34
FUNCTION: checkForChanges [ f form autosave promptConfirmation hasUserChanges autoSave ]
ivan@0
    35
FUNCTION: continueUserAction [ requestURL continueAction ]
ivan@0
    36
FUNCTION: sendDirectLink [ form columnName parentKey url keyId tableId newTarget bolCheckChanges frmDebug action autosave strFunction ]
ivan@0
    37
FUNCTION: dispatchEventChange [ target ]
ivan@0
    38
FUNCTION: depurar_validate_wrapper [ action form value ]
ivan@0
    39
FUNCTION: submitCommandForm [ action bolValidation form newAction newTarget bolOneFormSubmission bolCheckChanges isCallOut controlEvt evt target strFunction ]
ivan@0
    40
FUNCTION: submitCommandFormParameter [ action field value bolValidation form formAction newTarget bolOneFormSubmission bolCheckChanges isCallOut controlEvt evt target strFunction ]
ivan@0
    41
FUNCTION: validateNumber [ strValue isFloatAllowed isNegativeAllowed isComma isNegative i total ]
ivan@0
    42
FUNCTION: validateNumberField [ field isFloatAllowed isNegativeAllowed ]
ivan@0
    43
FUNCTION: getArrayValue [ data name defaultValue total i ]
ivan@0
    44
FUNCTION: addArrayValue [ data name value isUrlParameter total i ]
ivan@0
    45
FUNCTION: addUrlParameters [ data total text i ]
ivan@0
    46
FUNCTION: openPopUp [ url _name height width top left checkChanges target doSubmit closeControl parameters hasLoading adds isPopup objFrame urlLoading winPopUp ]
ivan@0
    47
FUNCTION: synchronizedSubmitCommandForm [ action bolValidation form newAction newTarget bolOneFormSubmission bolCheckChanges isCallOut controlEvt evt ]
ivan@0
    48
FUNCTION: setPopupLoadingWindowLoaded [ value ]
ivan@0
    49
FUNCTION: openNewLink [ url _name height width top left checkChanges target doSubmit closeControl parameters ]
ivan@0
    50
FUNCTION: openNewBrowser [ url _name height width top left ]
ivan@0
    51
FUNCTION: openExcel [ url _name checkChanges ]
ivan@0
    52
FUNCTION: openPDF [ url _name checkChanges ]
ivan@0
    53
FUNCTION: openPDFFiltered [ url _name checkChanges ]
ivan@0
    54
FUNCTION: openPopUpDefaultSize [ url _name height width closeControl showstatus ]
ivan@0
    55
FUNCTION: openPDFSession [ strPage strDirectPrinting strHiddenKey strHiddenValue bolCheckChanges direct ]
ivan@0
    56
FUNCTION: openSearchWindow [ url _name tabId windowName windowId checkChanges parameters ]
ivan@0
    57
FUNCTION: openHelp [ windowId url _name checkChanges height width windowType windowName parameters ]
ivan@0
    58
FUNCTION: openServletNewWindow [ Command bolValidation url _name processId checkChanges height width resizable hasStatus closeControl hasLoading parameters ]
ivan@0
    59
FUNCTION: openLink [ url _name height width ]
ivan@0
    60
FUNCTION: editHelp [ url type id value height width parameters ]
ivan@0
    61
FUNCTION: keyPress [ keyCode tecla ]
ivan@0
    62
FUNCTION: byDefaultAction [ action ]
ivan@0
    63
FUNCTION: stopKeyPressEvent [ evt ]
ivan@0
    64
FUNCTION: startKeyPressEvent [ evt ]
ivan@0
    65
FUNCTION: keyArrayItem [ key evalfunc field auxKey propagateKey event ]
ivan@0
    66
FUNCTION: obtainKeyCode [ code ]
ivan@0
    67
FUNCTION: keyControl [ pushedKey thereIsShortcut keyCode keyTarget total i evalfuncTrl ]
ivan@0
    68
FUNCTION: putFocusOnMenu [ ]
ivan@0
    69
FUNCTION: putFocusOnWindow [ ]
ivan@0
    70
FUNCTION: enableShortcuts [ type ]
ivan@0
    71
FUNCTION: lockKeyboard [ ]
ivan@0
    72
FUNCTION: unlockKeyboard [ ]
ivan@0
    73
FUNCTION: setBrowserAutoComplete [ state i ]
ivan@0
    74
FUNCTION: isIdenticalField [ arrayName actualName ]
ivan@0
    75
FUNCTION: replaceEventString [ eventJS inputname arrayName endname ]
ivan@0
    76
FUNCTION: layer [ node text isId isAppend range domfrag ]
ivan@0
    77
FUNCTION: readLayer [ node isId ]
ivan@0
    78
FUNCTION: getChildText [ nodo ]
ivan@0
    79
FUNCTION: getObjChild [ obj ]
ivan@0
    80
FUNCTION: fillCombo [ combo dataArray bolSelected withoutBlankOption i value total j ]
ivan@0
    81
FUNCTION: selectDefaultValueFromArray [ dataArray bolSelected value total j ]
ivan@0
    82
FUNCTION: changeOrderBy [ sourceList j text value ]
ivan@0
    83
FUNCTION: addListOrderBy [ sourceList destinationList withPrefix selectAll sourceListLength i j text value ]
ivan@0
    84
FUNCTION: addList [ sourceList destinationList selectAll sourceListLength i j text value ]
ivan@0
    85
FUNCTION: moveElementInList [ list incr i text value total ]
ivan@0
    86
FUNCTION: valorArray [ dataArray searchKey valueIndex ]
ivan@0
    87
FUNCTION: searchArray [ dataArray searchKey valueIndex total i ]
ivan@0
    88
FUNCTION: radioValue [ radio total i ]
ivan@0
    89
FUNCTION: markAll [ chk bolMark total i ]
ivan@0
    90
FUNCTION: changeComboData [ combo dataArray key withBlankOption i n total ]
ivan@0
    91
FUNCTION: clearList [ field i ]
ivan@0
    92
FUNCTION: clearSelectedElements [ field i ]
ivan@0
    93
FUNCTION: comboContains [ combo searchKey total i ]
ivan@0
    94
FUNCTION: addElementsToList [ destList arrayNewValues i total j ]
ivan@0
    95
FUNCTION: markCheckedAllElements [ field total i ]
ivan@0
    96
FUNCTION: handleFieldMaxLength [ field maxLength evt ]
ivan@0
    97
FUNCTION: selectCombo [ combo key total i ]
ivan@0
    98
FUNCTION: updateMenuIcon [ id frame frameset ]
ivan@0
    99
FUNCTION: menuShowHide [ id ]
ivan@0
   100
FUNCTION: menuShow [ id frame frameset ]
ivan@0
   101
FUNCTION: menuHide [ id frame frameset ]
ivan@0
   102
FUNCTION: menuExpand [ ]
ivan@0
   103
FUNCTION: menuCollapse [ ]
ivan@0
   104
FUNCTION: menuExpandCollapse [ menuExpandCollapse_status ]
ivan@0
   105
FUNCTION: getMenuExpandCollapse_status [ menuExpandCollapse_status ]
ivan@0
   106
FUNCTION: menuUserOptions [ ]
ivan@0
   107
FUNCTION: menuQuit [ ]
ivan@0
   108
FUNCTION: menuAlerts [ ]
ivan@0
   109
FUNCTION: isVisibleElement [ obj appWindow parentElement ]
ivan@0
   110
FUNCTION: executeWindowButton [ id focus appWindow ]
ivan@0
   111
FUNCTION: executeMenuButton [ id appWindow ]
ivan@0
   112
FUNCTION: getAppUrl [ url http nohttp urlItem appUrl i ]
ivan@0
   113
FUNCTION: progressiveHideMenu [ id topSize newSize grow frame object sizes ]
ivan@0
   114
FUNCTION: changeClass [ id class1 class2 forced element ]
ivan@0
   115
FUNCTION: changeReadOnly [ id forced element ]
ivan@0
   116
FUNCTION: getReference [ id ]
ivan@0
   117
FUNCTION: getStyle [ id ref ]
ivan@0
   118
FUNCTION: idName [ name ]
ivan@0
   119
FUNCTION: findElementPosition [ form name total i ]
ivan@0
   120
FUNCTION: deselectActual [ form field i ]
ivan@0
   121
FUNCTION: findFirstElement [ form n total i ]
ivan@0
   122
FUNCTION: findLastElement [ form n i ]
ivan@0
   123
FUNCTION: nextElement [ form field i ]
ivan@0
   124
FUNCTION: previousElement [ form field i minor ]
ivan@0
   125
FUNCTION: firstElement [ form field i ]
ivan@0
   126
FUNCTION: lastElement [ form field i ]
ivan@0
   127
FUNCTION: recordSelectExplicit [ name highlight obj ]
ivan@0
   128
FUNCTION: selectRadioButton [ radio Value total i ]
ivan@0
   129
FUNCTION: selectCheckbox [ obj Value ]
ivan@0
   130
FUNCTION: formElementValue [ form ElementName Value bolReadOnly onChangeFunction obj total index hasMultiSelect selectedOption i search first end ]
ivan@0
   131
FUNCTION: setClass [ id selectClass obj ]
ivan@0
   132
FUNCTION: getObjectClass [ id previousClass obj ]
ivan@0
   133
FUNCTION: formElementEvent [ form ElementName calloutName isReload obj bolReadOnly onchange_combo onchange_combo2 ]
ivan@0
   134
FUNCTION: fillElements [ frm name callout ]
ivan@0
   135
FUNCTION: setGWaitingCallOut [ state ]
ivan@0
   136
FUNCTION: fillElementsFromArray [ arrElements calloutName form total x n obj name callout arrDataNew i ]
ivan@0
   137
FUNCTION: inputValueForms [ name field result length fieldsCount total i ]
ivan@0
   138
FUNCTION: setFocus [ field ]
ivan@0
   139
FUNCTION: inputValue [ field total i ]
ivan@0
   140
FUNCTION: setInputValue [ field myvalue obj total i ]
ivan@0
   141
FUNCTION: displayLogicElement [ id display obj ]
ivan@0
   142
FUNCTION: readOnlyLogicElement [ id readonly onchange_combo newOnChange_combo ]
ivan@0
   143
FUNCTION: autoCompleteNumber [ obj isFloatAllowed isNegativeAllowed evt number point ]
ivan@0
   144
FUNCTION: setPageLoading [ status ]
ivan@0
   145
FUNCTION: logChanges [ field ]
ivan@0
   146
FUNCTION: changeToEditingMode [ special field elementToCheck ]
ivan@0
   147
FUNCTION: checkIE7DelSuprKeys [ ]
ivan@0
   148
FUNCTION: checkContextMenu [ elementToCheck ]
ivan@0
   149
FUNCTION: checkFieldChange [ elementToCheck beforeShortcutValue afterShortcutValue ]
ivan@0
   150
FUNCTION: windowUndo [ form ]
ivan@0
   151
FUNCTION: processingPopUp [ complementosNS4 strHeight strWidth strTop strLeft complementos winPopUp ]
ivan@0
   152
FUNCTION: round [ number X ]
ivan@0
   153
FUNCTION: ReplaceText [ text replaceWhat replaceWith i j partial ]
ivan@0
   154
FUNCTION: updateOnChange [ field lastChanged ]
ivan@0
   155
FUNCTION: xx [ ]
ivan@0
   156
FUNCTION: selected [ cal date ]
ivan@0
   157
FUNCTION: closeHandler [ cal ]
ivan@0
   158
FUNCTION: getDateFormat [ str_format format ]
ivan@0
   159
FUNCTION: showCalendar [ id value debug format showsTime showsOtherMonths el cal ]
ivan@0
   160
FUNCTION: datecmp [ date1 date2 fmt mydate1 mydate2 ]
ivan@0
   161
FUNCTION: checkFormat [ formatType ]
ivan@0
   162
FUNCTION: getSeparators [ format result pos last i ]
ivan@0
   163
FUNCTION: isInArray [ obj text total i ]
ivan@0
   164
FUNCTION: about [ complementosNS4 strHeight strWidth strTop strLeft complementos winPopUp ]
ivan@0
   165
FUNCTION: buttonEvent [ event obj ]
ivan@0
   166
FUNCTION: goToPreviousPage [ ]
ivan@0
   167
FUNCTION: resizeArea [ isOnResize mnu mleft mleftSeparator mright mtop mtopToolbar mtopTabs mbottombut mbottom body h w name mnuWidth mnuHeight mbottomButtons ]
ivan@0
   168
FUNCTION: resizeAreaHelp [ mnu mnuIndex mTopSeparator mTopNavigation body h w name mnuHeight ]
ivan@0
   169
FUNCTION: resizeAreaUserOps [ mnu mnuIndex mTopSeparator mVerSeparator mTopNavigation body h w name ]
ivan@0
   170
FUNCTION: resizeAreaInfo [ isOnResize table_header client_top client_middle client_bottom body h w name ]
ivan@0
   171
FUNCTION: resizeAreaCreateFrom [ isOnResize table_header client_messagebox client_top client_middle client_bottom body h w name client_middleWidth client_middleHeight ]
ivan@0
   172
FUNCTION: resizeAreaInstallationHistoryGrid [ isOnResize client client_top installationHistoryGrid name ]
ivan@0
   173
FUNCTION: resizePopup [ mnu table_header body h w name mnuHeight mnuWidth ]
ivan@0
   174
FUNCTION: calculateMsgBoxWidth [ client_width msgbox_table ]
ivan@0
   175
FUNCTION: changeAuditStatus [ paramXMLReq ]
ivan@0
   176
FUNCTION: changeAuditStatusRelation [ paramXMLReq ]
ivan@0
   177
FUNCTION: changeAuditIcon [ newStatus ]
ivan@0
   178
FUNCTION: changeAuditIconTitle [ paramXMLParticular XMLHttpRequestObj obj status ]
ivan@0
   179
FUNCTION: goToDivAnchor [ div elementId ]
ivan@0
   180
VAR: arrTeclas
ivan@0
   181
FUNCTION: Teclas [ tecla evento campo teclaAuxiliar ]
ivan@0
   182
FUNCTION: controlTecla [ CodigoTecla tecla target total i eventoTrl ]
ivan@0
   183
VAR: gAUXILIAR
ivan@0
   184
FUNCTION: limpiar [ form ]
ivan@0
   185
FUNCTION: esNumero [ strValue isFloatAllowed isNegativeAllowed ]
ivan@0
   186
FUNCTION: campoNumerico [ field isFloatAllowed isNegativeAllowed ]
ivan@0
   187
FUNCTION: abrirNuevoBrowser [ url _name height width top left ]
ivan@0
   188
FUNCTION: abrirExcel [ url _name checkChanges ]
ivan@0
   189
FUNCTION: abrirPDF [ url _name checkChanges ]
ivan@0
   190
FUNCTION: abrirPDFFiltered [ url _name checkChanges ]
ivan@0
   191
FUNCTION: abrirPopUp [ url _name height width closeControl showstatus ]
ivan@0
   192
FUNCTION: abrirPDFSession [ strPage strDirectPrinting strHiddenKey strHiddenValue bolCheckChanges ]
ivan@0
   193
FUNCTION: abrirBusqueda [ url _name tabId windowName windowId checkChanges ]
ivan@0
   194
FUNCTION: auto_complete_number [ obj isFloatAllowed isNegativeAllowed evt ]
ivan@0
   195
FUNCTION: auto_complete_date [ field fmt ]
ivan@0
   196
FUNCTION: auto_complete_time [ field fmt ]
ivan@0
   197
FUNCTION: rellenarComboHijo [ combo arrayDatos padre bolSelected sinBlanco i value total j ]
ivan@0
   198
FUNCTION: rellenarCombo [ combo dataArray bolSelected withoutBlankOption ]
ivan@0
   199
FUNCTION: marcarTodos [ chk bolMark ]
ivan@0
   200
FUNCTION: cambiarListaCombo [ combo dataArray key withBlankOption ]
ivan@0
   201
FUNCTION: limpiarLista [ field ]
ivan@0
   202
FUNCTION: eliminarElementosList [ field ]
ivan@0
   203
FUNCTION: generarArrayChecks [ frm check text resultado n texto valor i ]
ivan@0
   204
FUNCTION: seleccionarListCompleto [ field ]
ivan@0
   205
FUNCTION: seleccionarListCompleto [ field ]
ivan@0
   206
FUNCTION: menuContextual [ evt boton ]