1 Methods
Name | Description |
---|---|
addConsoleErrorMessage(nfname, errmsg) | Adds an error message to Axional Studio Console. |
addConsoleWarningMessage(nfname, errmsg) | Adds an alert message to Axional Studio Console. |
buildFormautoURL(rep_code, cond) | Obtains URL in order to open a form. |
canInput() | Determines if the form accepts data entry. |
cartviewAddRow(p_boxid, values) | Adds a line on the basket by dinamically way. |
cartviewClear(p_boxid) | Deletes all data of a shopping basket. |
cartviewCommit(p_boxid) | Executes generation script for a shopping basket. |
closeModalFormauto() | Close modal formauto opened previosly with openModalFormauto function. |
ColumnInspector(inspect, colorig, coldest) | It is a structure used to interpret an inspection of a column against an event. |
dateToMDY(date) | Transforms a date of an user form to a date of MDY format. |
executeAsyncQueryMap(query_code, params, success, error) | This function has same functionality as executeQueryMap. |
executeAsyncQueryValue(query_code, params, success, error) | This function has same functionality as executeQueryValue. |
executeAsyncQueryValues(query_code, params, success, error) | This function has same functionality as executeQueryValues. |
executeBoxButton(p_boxid, btnpos) | Executes defined action to a form button related with a determined box. |
executeButton(btnpos) | Executes defined action for a form button. |
executeClickObservableEvent(p_boxid, p_record) | Fires click event on an observable box. |
executeDelete() | Allows to delete actual register. |
executeFormAction(action_code) | Executes defined action by its mnemonic code. |
executeInsert() | Allows to insert actual register. |
executeQueryMap(query_code, params, success, error) | Executes an SQL sentence defined previously on actual object. |
executeQueryValue(query_code, params, success, error) | Executes an SQL sentence defined previously on actual object. |
executeQueryValues(query_code, params, success, error) | Executes an SQL sentence defined previously on a ctual object. |
executeReload(mandatory) | Allows to force the load cursor. |
executeReloadRow(mandatory) | Allows to force the load the current row. |
executeReset() | Allows to force reset of the form. |
executeSelectObservableEvent(p_boxid, p_records) | Fires select event on an observable box. |
executeUpdate() | Allows to force modification of actual register. |
getBoxID(nmemo) | Obtains an only data base identifier. |
getBoxSelection(p_boxid) | Obtains the selection of a box with selected data. |
getCurrent() | Obtains data and actual time. |
getCurrentRowIndex() | Obtains file which is being edited manually. |
getDbms() | Obtains actual database. |
getDict() | Obtains the dictionary on which object has been defined. |
getFieldByName(fieldName) | Obtains form field identified by indicated name. |
getFieldChanged(fieldName) | Determines if a field has been modified from last transaction or form load. |
getFieldError(fieldName) | Obtains error message of a field. |
getFieldIsAnArray(field) | Determines if it exists more than one field on the form with same name. |
getFieldValue(fieldName, withoutAlert) | Obtains field value of a form. |
getFirstArrayElement(data) | Obtains the first element of an array. |
getGlobalNumber(tabname, colname) | Recovers a variable from a group of global variables. |
getGlobalObject(tabname, colname) | Recovers a variable from a group of global variables. |
getGlobalString(tabname, colname) | Recovers a variable from a group of global variables. |
getLabelMessage(code, defmsg, param3, param4,..., paramN) | Obtains a tab defined on actual database dictionaries to user language. |
getParentCode() | Obtains the object code of father form. |
getParentFieldValue(colname) | Obtains the value of the father form column. |
getParentSubmitValue(colname) | Obtains the value of the father form column. |
getQueryCond(excludeVars) | Obtains the sql condition used to make the cursor. |
getQueryValue(sql, doNotUseCache, callback, errcallback, scope) | Executes a SQL sentence on the actual database. |
getQueryValues(sql, doNotUseCache, allowMultipleRows, callback, errcallback, scope) | Executes SQL sentence on the actual database. |
getRepCode() | Obtains object code of the form. |
getRealRepCode() | Obtains object code of the form. |
getSubmitValue(fieldName) | Obtains the value of a form field to the necessary form in order to send it to the server. |
getTime() | Obtains actual date. |
getToday() | Obtains actual date. |
getUser() | Obtains Axional Studio user. |
getUserDateFormat() | Obtains Axional Studio date format used by the connection user. |
getUserDecimalSeparator() | Obtains Axional Studio decimals separator character by the connection user. |
getVariableValue(varname) | Obtains value from a variable of a form. |
hasFieldMultipleSelection(fieldName) | Determines if the field allows to select several values through references window. |
hasTransactions() | Determines if a form has authorized transactions. |
Hashtable() | This structure has been used from tags to global variables generation. |
insertRequiresReset() | Forces user to execute form reset before an insertion. |
isFieldDate(fieldName) | Determines if a field is a date type. |
isFieldNumeric(fieldName) | Determines if a field is a numeric type. |
isJavascriptConsoleActive() | Determines if a Javascript console user is available. |
isMultiRow() | Determines if a form accepts multiples registers. |
isOnCompatibility() | It is used during system migration. |
isOnInsert() | Determines if a form is ready in order to do the insertion. |
isOnUpdate() | Determines if a form is ready in order to do modification. |
isOutputColumn(colname) | Determines if a column belongs to a form. |
isReadOnly() | Determines if a form is a reading type. |
isRowSelected() | Determines if there is a selected register on a form. |
JSQL_disableCheck(name) | Disables Javascript verification of a restriction. |
JSQL_disableDelete(reason) | Disables deleted transactions of a form. |
JSQL_disableInsert(reason) | Disables insertion transactions of a form. |
JSQL_disableReset(reason) | Disables reset transactions of the form. |
JSQL_disableSingleRowSelection() | Allows to deactivate dynamically new fixed register. |
JSQL_disableUpdate(reason) | Disables modification transactions of the form. |
JSQL_disableVerifyExist(fieldName) | Disables the hard existence proof. |
JSQL_enableUnconditionalInput() | Allows the existence of fields edited on a form without transactions. |
JSQL_enableVerifyExist(fieldName) | Activates the hard existence proof. |
JSQL_execute_StatementAndRefresh(cmd, cmd_crc, args) | Executes an SQL/XML Sentence and loads a form after its execution. |
JSQL_getMessage(code) | Obtains a defined tag on actual database on dictionaries to user language. |
JSQL_MakeXSQLScriptCall(scriptname, arg1,arg2,...,argN) | Obtains necessary syntax to realize an XSQL-Script call. |
numberRoundDecimal(num, dec) | Round off a decimal value with indicated precision. |
openModalFields (title, message, fields, buttons, callback) | Show a modal window with messages and/or form fields and execute a callback function on click accept button. |
openModalFormauto(title, rep_code, cond, vars, closecallback, allowDetach) | Show a modal window with title and the iframe of object. |
playErrorSound() | Emits an error sound. |
setBoxVisible(p_boxid, visible) | Shows/Hides out the form box. |
setBoxesVisible(boxes) | Shows/Hides out a group of boxes. |
setButtonBoxDisabled(p_boxid, btnpos, disabled) | Allows to disable/enable a button of a form box. |
setButtonDisabled(btnpos, disabled) | Allows to disable/enable a button of a form box. |
setCurrentRowIndex(rowindex) | Activates indicated file for the edition. |
setDatablockVisible(blockID, visible) | Shows/Hides out a whole datablock. |
setFieldChanged(fieldName, changed, execute) | Allows to force modified option of a field. |
setFieldError(field, error, isFormatingError) | It indicates a field with its indicated error. |
setFieldExistAllowMultipleRows(fieldName, allowmr) | For a field with integration relation. |
setFieldExistDisableVerify(fieldName, disable) | For a field with integration relation. |
setFieldExistValues(fieldName, objdest, coldest, qrycond, noCache) | Modifies integrated references of a field. |
setFieldFocus(fieldName) | Places cursor on indicated field. |
setFieldNoentry(fieldName, noEntry) | Allows to indicate if a field can be edited or not. |
setFieldNullable(fieldName, isNullable) | Allows to indicate if a field is required or not. |
setFieldPreserveOnClear(fieldName) | Indicates that the field cannot be affected by reset. |
setFieldValue(fieldName, fieldValue, noVerifyExistNeed) | Fixes value of a field form. |
setFieldValues(tabname, map) | Realizes a massive assignation of values to a form fields. |
setFieldVisible(fieldName, visible) | Allows to hide out/show a dynamic field. |
setFixedValue(fieldName) | It establishes the value of a field. |
setGlobal(tabname, tabdata) | Installs a group of global variables. |
setInsertRequiresReset() | It forces to user to execute reset form before an insertion. |
setTransactionSize(size) | Indicates rows size of insert transaction. |
showErrorDialog(errOpts) | Shows a dialog screen with all errors reported. |
sqldotSetData(p_boxid, data) | Updates data in order to represent DOT object. |
sqlocrAddCreateEvent(p_boxid, callback, scope) | |
sqlocrClearHighlight(p_boxid) | |
sqlocrDisableMouseSelect(p_boxid) | |
sqlocrEnableMouseSelect(p_boxid, detach) | |
sqlocrGetPage(p_boxid) | |
sqlocrSetPage(p_boxid, numpage, callback, scope) | |
sqlocrTextHighlight(p_boxid, regex, group, offsetRows, offsetCols, nRows, nCols) | Marks a part of the column text of Blob object. |
sqltableAddEvent(p_boxid, evtname, callback) | Adds an event to the table. |
sqltableAddFieldEvent(p_boxid, colname, evtname, callback) | Adds an event to the column. |
sqltableAddRow(p_boxid) | Adds a line to SQL table dynamically. |
sqltableClear(p_boxid) | Deletes all content of a SQL table. |
sqltableGetByID(p_boxid) | Obtains a SQL table of the form. |
sqltableGetFieldValue(p_boxid, colname, rowid) | Obtains the cell value of a SQL table. |
sqltableGetSelected(p_boxid) | Obtains data of selected files from a SQL table. |
sqltableRefresh(p_boxid) | Reloads the content of a SQL table. |
sqltableSearchBy(p_boxid, colexpr, callback) | Obtains data of a selected file from a SQL table. |
sqltableSelRow(boxid, rowid) | Selects a file from a SQL table. |
sqltableSetFieldError(p_boxid, colname, errmsg, rowid) | Allows to define a mistake from a field file of a SQL table. |
sqltableSetFieldValue(p_boxid, colname, data, rowid) | Modifies the value of a cell from a SQL table. |
sqltableToggleSelection(p_boxid) | Modifies the selection of all files from SQL table. |
sqltableToggleRowSelection(p_boxid, rowindex) | Modifies the selection of a file from SQL table. |
sqltreeGetSelected(p_boxid) | Obtains data of selected files from a SQL tree. |
sqltreeRefreshNode(p_boxid, p_parentnode, p_nodevaluesID, loadlcallback) | Refresh content of tree node. |
sqltreeRefreshNodeByPath(p_boxid, p_path, loadlcallback) | Refresh content of tree node. |
toFileAddTotalColumn(col) | |
toFileMarkAll() | Selects all visible files from a multisection form. |
toFileUnmarkAll() | Unselects all visible files of a multisection form. |
toFileSwitchLines() | Changes selection of all visible files from a multi section form. |
toFileVerifyMarks() | Verifies if exists any selected file on a multi section form. |
addConsoleErrorMessage (nfname, errmsg) |
---|
Adds an error message to Settings Parameters:
|
addConsoleWarningMessage (nfname, errmsg) |
---|
Adds an alert message to Parameters:
|
buildFormautoURL (rep_code, cond) : string |
---|
Obtains the URL in order to open a form. Parameters:
Since:
|
canInput () : boolean |
---|
Determines if a form accepts data entrance. Return:
Since:
|
cartviewAddRow (p_boxid, values) |
---|
Adds a line on a basket shopping dynamically. New line will have all values as a parameters. In addition, it will be as mode edition and cursor will be on the first field editable. Parameters:
|
cartviewClear (p_boxid) |
---|
Deletes all data of a shopping basket. Parameters:
|
cartviewCommit (p_boxid) |
---|
Executes generation script for a shopping basket. Parameters:
|
closeModalFormauto () |
---|
Close modal formauto opened previosly with openModalFormauto function Since:
|
ColumnInspector (inspect, colorig, coldest) |
---|
It is a structure generated by a programmer in order to interpose the inspection of a column in front of an event. It is available by introducing a style code. Deprecated |
dateToMDY (date) : string |
---|
Converts a date to an user form to MDY format, ready to be used on SQL sentence. Parameters:
Returns:
Since:
|
executeAsyncQueryMap (query_code, params, success, error) |
---|
This function has same functionality as executeQueryMap, with the difference that server connection is done by asynchronous way. In consequence, function finalizes before receive server answer; for this reason, function don't return obtained result. It is needed to collect it through success function passed as a parameter. Parameters:
Since:
|
executeAsyncQueryValue (query_code, params, success, error) |
---|
This function has same functionality as executeQueryValue, with the difference that connection with server is done by asynchronous way. In consequence, function finalizes before receiving server answer; for this reason, function doesn't return the obtained result, it is needed to collect it through function success reflected as a parameter.
Since:
|
executeAsyncQueryValues (query_code, params, success, error) |
---|
This function has same functionality as executeQueryValue, with the difference that connection with server is done by asynchronous way. In consequence, function finalizes before receiving server answer; for this reason, function doesn't return the obtained result, it is needed to collect it through function success reflected as a parameter. Parameters:
Since:
|
executeBoxButton (p_boxid, btnpos) |
---|
Executes defined action for a form associated with a defined box when it isn't hide out or disabled by hiding/activation expressions on button definition. Deprecated:
Parameters:
|
executeButton (btnpos) |
---|
Executes defined action for a form button related with a determinated box when it doesn't be hide out or disabled by expressions of hiding/activation of button definition. Deprecated:
Parameters:
|
executeClickObservableEvent (p_boxid, p_record) |
---|
Fires click event on an observable box. (Observable box has to support it event) Settings Parameters:
Example:
Copy
executeClickObservableEvent ("BOX_SQLTABLE", { id:1 }) |
executeDelete () |
---|
Allows to force the elimination of an actual register when user has necessary permissions. Since:
|
executeFormAction (action_code) |
---|
Executes action defined by its mnemonic code. Parameters:
|
executeInsert () |
---|
Allows to force the insertion of an actual register when user has necessary permissions. Since:
|
executeQueryMap (query_code, params, success, error) : Object[] |
---|
Executes an SQL Sentence defined before on actual object. All parameters have always been received as an objects as Javascript (string, number, Date, ...) Sentence result can return a single register. Parameters:
Returns:
Since:
|
executeQueryValue (query_code, params, success, error) : string/number |
---|
Executes an SQL Sentence defined on the actual object. All parameters are received as Javascript objects (string, number, Date, ...) Result of the Sentence can be returned with a single register. Parameters:
Returns:
Since:
|
executeQueryValues (query_code, params, success, error) : Object[] |
---|
Executes an SQL sentence defined before on the actual object. Parameters have always been received as Javascript objects (string, number, Date, ...) Sentence result can return a single register. Parameters:
Returns:
Since:
|
executeReload (mandatory) |
---|
Allows to force cursor loading. Function forces execution of SQL sentence of the object. Parameters:
Since:
|
executeReset () |
---|
Allows to force form reset if user has all needed permissions. Since:
|
executeSelectObservableEvent (p_boxid, p_records) |
---|
Fires select event on an observable box. (Observable box has to support it event) Settings Parameters:
Example:
Copy
executeSelectObservableEvent ("BOX_SQLTABLE", [{ id:1 },{ id:2 },{ id:3 },{ id:4 }]) |
executeUpdate () |
---|
Allows to force form modification when user has all needed permissions. Since:
|
getBoxID (nmemo) : number |
---|
Obtains a single database identifier for a form box (boxid) through nmemotechnical code of the box. Parameters:
Returns:
|
getBoxSelection (p_boxid) : Object[] |
---|
Obtains the selection of a box with all selectable data. It is only applicable to boxes of SQL-IMGLIST, SQL-TABLE, SQL-TREE, SQL-BLOB types. Parameters:
Returns:
|
getCurrent () : string |
---|
Obtains data and current time, depending on the defined timetable of the system for connection user. Returns:
|
getCurrentRowIndex () : integer |
---|
Obtains the row which is being edited. Deprecated:
Returns:
|
getDbms () : string |
---|
Obtains current data base. Returns:
|
getDict () : string |
---|
Obtains dictionary whom object has been defined as a last resort; depending on dictionaries priority order defined by current data base. Returns:
|
getFieldByName (fieldName) : domEl |
---|
Obtains form field identified by indicated name. Parameters:
Returns:
|
getFieldChanged (fieldName) : boolean |
---|
Determines if a field has been identified from last transaction or form load. Parameters:
Returns:
|
getFieldError (fieldName) : string |
---|
Obtains error message of a field. Parameters:
Returns:
|
getFieldIsAnArray (field) : boolean |
---|
Determines if it exists more than one field on the form with same name. Parameters:
Returns:
|
getFieldValue (fieldName, withoutAlert) : string/number |
---|
Obtains value of a field from a form. Parameters:
Returns:
Example:
Copy
getFieldValue("ts_cloud_preventive_lines.preventive_lines_cabid"); |
getFirstArrayElement (data) : string |
---|
Obtains first element of an array. When user obtains multiples results of a query, hastable values are strings arrays. This method allows to obtain the first of elements. Parameters:
Returns:
|
getGlobalNumber (tabname, colname) : number |
---|
Recovers a variable of a group of global variables. Parameters:
Returns:
|
getGlobalObject (tabname, colname) : Object[] |
---|
Recovers a variable of a group of global variables. It will be a string or an array javascript: Parameters:
Returns:
|
getGlobalString (tabname, colname) : string |
---|
Recovers a variable of a group of global variables. Parameters:
Returns:
|
getLabelMessage (code, defmsg, param3, param4,..., paramN) : string |
---|
Obtains a defined tag on data base dictionary for user language. In case of not finding a tab, it returns the text by default. If any text has been defined by default, it returns código_de_idioma.código_etiqueta; for example EN.LBL_NAME Content tag can have dinamically references, through {i} syntax. Where {0}, {1}, ..., {n} references will be replaced by corresponding parameters that recive function through third parameter. For this reason, a message of type: The value must be defined between {0} and {1}". Considering a call as following case: getLabelMessage("LBL_RANG", "Default message...", 1, 8); It will return: "The value must be defined between 1 and 8". Parameters:
Returns:
|
getParentCode () : string |
---|
Obtains an object code of the father form. Returns:
Since:
|
getParentFieldValue (colname) : string |
---|
Obtains the value of the father column form. That is to say, form is located above actual form. Returned value is always a string. Parameters:
Returns:
Since:
|
getParentSubmitValue (colname) : Object[] |
---|
Obtains value of a column form father. That is to say, the form which is located above actual form. Returned value is always a Javascript object. Parameters:
Returns:
Since:
|
getQueryCond (excludevars) : Object[] |
---|
Obtains sql condition used to make the cursor. Parameters:
Returns:
Since:
|
getQueryValue (sql, doNotUseCache, callback, errcallback, scope) : map |
---|
Executes an SQL Sentence based on current data base. Sentence result has to return an only register. All data have always been located for the user, this means that all data are on legible format and numbers can include decimal markers. Deprecated:
Parameters:
Returns:
Example:
Copy
getQueryValue( "SELECT NVL(MAX(corrective_lines_orden),0) orden FROM ts_cloud_corrective_lines " + "WHERE corrective_lines_cabid = " + m_cabid, true // not-cached ); |
getQueryValues (sql, doNotUseCache, allowMultipleRows, callback, errcallback, scope) : map/map[] |
---|
Executes an SQL Sentence based on current data base. Sentence result has to return an only register. All data have always been located for the user, this means that all data are on legible format and numbers can include decimal markers. Deprecated:
Parameters:
Returns:
Example:
Copy
getQueryValues("SELECT cop_producto.titesp, cop_producto.tipcen, cop_producto.codcen, gcentros.nombre " + " FROM cop_producto, gcentros " + " WHERE cop_producto.idprod = " + field.value + " AND cop_producto.tipcen = gcentros.tipcen " + " AND cop_producto.codcen = gcentros.codigo " ); |
getRepCode () : string |
---|
Obtains object code of the form. Returns:
|
getRealRepCode () : string |
---|
Obtains object code of the form. In case of being an alias, it returns the code of original object. All alias are tags that allow access to an object with a different name as the original; defined through wic_jrep_object_alias maintenance .Returns:
|
getSubmitValue (fieldName) : Object[] |
---|
Obtains value of a field form with necessary format in order to send to the server. This, returns a Javascript object instead of a text chain located for user. This function is useless for calls functions like executeQueryValue. Parameters:
Returns:
|
getTime () : string |
---|
Obtains actual time, according to the schedule system for connection user. Returns:
|
getToday () : string |
---|
Obtains current date, depending on schedule system defined for connection user. Returns:
|
getTransactionSize () : integer |
---|
Obtains transaction size, this means, number of editable rows on a multirow form. Returns:
|
getUser () : string |
---|
Obtains Returns:
|
getVariableValue (varname) : Object[] |
---|
Obtains value of a form variable. Parameters:
Returns:
Since:
|
hasFieldMultipleSelection (fieldName) : boolean |
---|
Determines if a field allows to select multiples values through (SoftReferences) references window. On this case, when registers are being selected, values are being added divided by '|'. Parameters:
Returns:
|
hasTransactions () : boolean |
---|
Determines if a form has available transactions (insertion, modification or erasing). If there aren't transactions, inputs are not emitted, and for this reason, can't be accessed functions as getFieldValue, setFieldValue, etc. Returns:
Example:
Copy
if (!hasTransactions()){ return false; } |
Hashtable () |
---|
This structure was used from tags to global variables generation. This parameterization is done through wic_jrep_form_globals maintenance. Deprecated:
|
insertRequiresReset () |
---|
Forces user to execute form reset before insertion. |
isFieldDate (fieldName) : boolean |
---|
Determines if a field is a date type. Parameters:
Returns:
|
isFieldNumeric (fieldName) : boolean |
---|
Determines if a field is a numeric type. Parameters:
Returns:
|
isJavascriptConsoleActive () : boolean |
---|
Determines if Javascript console of user is available. Returns:
|
isMultiRow () : boolean |
---|
It determines if the form accepts multiples registers. Returns:
|
isOnCompatibility () : boolean |
---|
This function is temporary and is used during system migration to Jetty, Java8, Jersey, etc. Returns:
|
isOnInsert () : boolean |
---|
Determines if a form is ready to realize the insertion. It only has sense the question and it has used the isOnUpdate negation. Returns:
|
isOnUpdate () : boolean |
---|
Determines if a form is ready to realize the modification. It only happens when the form has modification permits and a reset has not been made. Returns:
|
isOutputColumn (colname) : boolean |
---|
Determines if a column belongs to a form. Parameters:
Returns:
Since:
|
isReadOnly () : boolean |
---|
Determines if a form is a reading type. It means that insertion transaction and modification are not available. On a reading type form, inputs not emitted, can't be accessed by getFieldValue, setFieldValue functions. Returns:
|
isRowSelected () : boolean |
---|
Determines if there is any selected register on the form. Returns:
Since:
|
JSQL_disableCheck (name) |
---|
Disables Javascript check of a data base restriction (CHECK CONSTRAINT) of the main table form. Deactivation is only done by form level, if transaction is finished and the restriction is not done, database will show the error. This function allows to delegate, the modification of some value register in order to achieve the restriction to triggers of database. Parameters:
|
JSQL_disableDelete (reason) |
---|
Disables erased transactions of the form. Parameters:
|
JSQL_disableInsert (reason) |
---|
Disables insert transactions of the form. Parameters:
|
JSQL_disableReset (reason) |
---|
Disables reset transactions of the form. Parameters:
|
JSQL_disableSingleRowSelection () |
---|
Allows to deactivate dynamically, after the insertion of a register, new register will be fixed as unique element of the cursor. This is useful for headboard but not for lines. |
JSQL_disableUpdate (reason) |
---|
Disables modification transactions of the form. Parameters:
|
JSQL_disableVerifyExist (fieldName) |
---|
Deactivate hard existense verification. Deprecated:
Parameters:
Example:
Copy
JSQL_disableVerifyExist("gcompedl.udmpre"); |
JSQL_enableUnconditionalInput () |
---|
Allows the existence of editable fields on a form without insertion transactions nor modification. For example, line selectorstoFile. Deprecated:
|
JSQL_enableVerifyExist (fieldName) |
---|
Activates hard existence verification. Deprecated:
Parameters:
Example:
Copy
JSQL_enableVerifyExist("gcompedl.udmpre"); |
JSQL_execute_StatementAndRefresh (cmd, cmd_crc, args) |
---|
Executes an SQL/XML Sentence and recharges form after its execution. Moreover, it forces main Sentence object to be executed again. For this reason, it is possible to update form data in case that sent result Sentence can modify them. Deprecated:
Parameters:
|
JSQL_getMessage (code) |
---|
Obtains tag defined on dictionaries of actual database for user language. Deprecated:
Parameters:
|
JSQL_MakeXSQLScriptCall (scriptname, arg1, arg2, ..., argN) |
---|
Obtains necessary syntax in order to make a call to XSQL-Script through some function as getQueryValue or getQueryValues. Deprecated:
Parameters:
Example:
Copy
JSQL_MakeXSQLScriptCall("gcompedl_js_getinfo", m_gcompedh_cabid, m_linid); |
numberRoundDecimal (num, dec) : number |
---|
It rounds a decimal value with indicated precision. Parameters:
Returns:
Since:
|
openModalFields (title, message, fields, buttons, callback) |
---|
The openModalFields is a pre-defined function used by a user program that allows to show a modal window with messages and/or form fields and execute a callback function on click accept button. This function expects 5 params openModalFields (title, message, fields, buttons, callback). Parameters:
Since:
Example:
Copy
openModalFields( "Title", "", [ { "name": "Zero", "label": "LABEL_TEXT", "type": 0, "value": "Hello World!" }, { "name": "One", "label": "LABEL_TEXTAREA", "type": 1, "value": "Lorem ipsum dolor sit amet, ...." }, { "name": "Two", "label": "LABEL_INTEGER", "type": 2, "value": 25 }, { "name": "Three", "label": "LABEL_DECIMAL", "type": 3, "decimalPrecision": 3, "value": 25.12 }, { "name": "Four", "label": "LABEL_DATE", "type": 4, "value": "2018-06-15" }, { "name": "Five", "label": "LABEL_DATETIME", "type": 5, "value": "2018-06-15" }, { "name": "Six", "label": "LABEL_CHECKBOX", "type": 6, "value": 1, "trueVal": 1, "falseVal" : 0, }, { "name": "Seven", "label": "LABEL_SELECT", "type": 7, "value": "it", "values" : [ {value : "de", label : "Germany"}, {value : "fr", label : "France"}, {value : "uk", label : "United Kingdom"}, {value : "it", label : "Italy"}, {value : "es", label : "Spain"} ] } ], null, function(form) { alert("HELLO CALLBACK FUNCTION " + form.Three); } ); |
openModalFormauto(title, rep_code, cond, vars, closecallback, allowDetach) |
---|
The openModalFormauto function allows to show a modal window with title and the iframe of object. This function expects 6 params openModalFormauto (title, rep_code, cond, vars, closecallback, allowDetach). Parameters:
Since:
Example:
Copy
openModalFormauto( "Hello World!", "studio_link_form_withvars", "1=1", { "INTVAR1": 25, "DECVAR1": 1.2, "DATEVAR1": "25-05-2018", "DATETIMEVAR1": new Date() }, function() { console.log("OK") }, false ); |
playErrorSound () |
---|
Emits an error sound. |
setBoxVisible (p_boxid, visible) |
---|
Shows/Hides out a box of the form. Parameters:
|
setBoxesVisible (boxes) |
---|
Shows/hides out a group of boxes. These have not belong to same datablock or grupo. Parameters:
|
setButtonBoxDisabled (p_boxid, btnpos, disabled) |
---|
Allows to disable/enable a button of a box from the form when it is not hided out or disabled by hide out/activation expressions on button definition. Parameters:
|
setButtonDisabled (btnpos, disabled) |
---|
Allows to disable/enable a button of a box from the form when it is not hided out or disabled by hide out/activation expressions on button definition. Parameters:
|
setCurrentRowIndex (rowindex) |
---|
Activates the file indicated for edition. This function can be only used with multirow forms. Deprecated:
Parameters:
|
setDatablockVisible (blockID, visible) |
---|
Shows/Hides out a full datablock. This is a box a group of boxes of the form located on same cell. Parameters:
|
setFieldChanged (fieldName, changed, execute) |
---|
Allows to force modified state on a field. When a field is modified, by manuall o programm mode, this is marcked as modified. For this reason, before doing a transaction, a group of series is executed (is needed to prove the integrity, execution onChange event, etc.). Through this function, is possible to change modified indicator in order to emit or force execution of these actions. Parameters:
Example:
Copy
setFieldChanged("inf_pedidos.tercer", true); |
setFieldError (field, error, isFormatingError) |
---|
It marks a field with indicated error. When a field with an error is marked, its style changes and it doesn't allow to move forward subsequent fields of the form. It also disables the possibility of inserting or modifying the register. Parameters:
Example:
Copy
setFieldError(field," It can't be inserted dates before as" + (anoest -1) + ".", true); |
setFieldExistAllowMultipleRows (fieldName, allowmr) |
---|
For a field related with integration, determine that on the object and for SQL Condition defined, can exist more than one register with indicated value on the field. Conversely, in case of being this situation, field will be marked with the mistake. Parameters:
Example:
Copy
setFieldExistAllowMultipleRows(field.name); |
setFieldExistDisableVerify (fieldName, disable) |
---|
For a field related with integration, is needed to define if it is necessary integration with destination object. Otherwise, integrity relation is used to choose a possible value, but no defined values can be used on the destination object. Parameters:
|
setFieldExistValues (fieldName, objdest, coldest, qrycond, noCache) |
---|
Modifies integrity references of a field. Usually, integrity references are defined by a foreign key existence (Hard Reference), or they are defined through integrity relation wic_jdic_collist (Soft References) maintenance. This function allows to define (Dynamic References) dinamic relations, managed by programm way. Query, defines possible values that can adopt current field. The object indicaded has to be defined in some of the dictionaries of actual database. Parameters:
Example:
Copy
cond = "cop_partidas.codcon =" + getFieldValue("cop_amorestl.concep"); setFieldExistValues("cop_amorestl.codpar", "cop_partidas", "codpar", cond); |
setFieldFocus (fieldName) |
---|
Locate the cursor in the indicated field. Parameters:
|
setFieldNoentry (fieldName, noEntry) |
---|
It allows to indicate if a field is editable or not. An editable field allows you to change its value manually using the corresponding form field. Otherwise, the field can not be modified manually, although it is possible to change its value via program. Parameters:
Example:
Copy
setFieldNoentry(wic_ldap_authenticators.connection_name, true); |
setFieldNullable (fieldName, isNullable) |
---|
It allows to indicate if a field is required or not. A required field for which no value has been assigned, prevents both placing the focus in subsequent fields of the form assigning any value to it, as well as performing insertion and modification transactions. Parameters:
Example:
Copy
setFieldNullable('agc_terceros.nombre',true); |
setFieldPreserveOnClear (fieldName) |
---|
Indicates that the field should not be affected by the reset. Parameters:
|
setFieldValue (fieldName, fieldValue, noVerifyExistNeed) |
---|
Sets the value of a form field. Parameters:
Example:
Copy
m_orden = (1 * m_orden + 2); setFieldValue("ts_cloud_corrective_lines.corrective_lines_orden", m_orden, true); |
setFieldValues (tabname, map) |
---|
Make a massive assignment of values to fields of the form from a table and a data structure. Parameters:
|
setFieldVisible (fieldName, visible) |
---|
It allows hiding / displaying a field dynamically. In case the field has a label (label) it is also affected by the visibility of the field. Parameters:
|
setFixedValue (fieldName) |
---|
Sets the value of a field. A field can have a fixed value because it comes from a selection or from a href. Parameters:
|
setGlobal (tabname, tabdata) |
---|
Install a set of global variables. Parameters:
|
setInsertRequiresReset () |
---|
Forces the user to execute the form reset before inserting. Deprecated:
|
setTransactionSize (size) |
---|
Indicates the row size of the insert transaction. Parameters:
|
showErrorDialog (errOpts) |
---|
Displays a dialog screen with the detail of an error. Parameters:
|
sqldotSetData (p_boxid, data) |
---|
Indicates the row size of the insert transaction. Parameters:
|
sqlocrAddCreateEvent (p_boxid, callback, scope) |
---|
Parameters:
|
sqlocrClearHighlight (p_boxid) |
---|
Parameters:
|
sqlocrDisableMouseSelect (p_boxid) |
---|
Parameters:
|
sqlocrEnableMouseSelect (p_boxid, detach) |
---|
Parameters:
|
sqlocrGetPage (p_boxid) |
---|
Parameters:
|
sqlocrSetPage (p_boxid, numpage, callback, scope) |
---|
Parameters:
|
sqlocrTextHighlight (p_boxid, regex, group, offsetRows, offsetCols, nRows, nCols) |
---|
Mark a text portion of a text column of the Blob object. Parameters:
|
sqltableAddEvent (p_boxid, evtname, callback) |
---|
Add an event to the table. It allows to indicate the execution of a function when a certain event is triggered. The events contemplated are: # onload: It runs every time the table is loaded. # before_insert (rowid): It is executed before inserting a new row. If the function of the event returns false, the insertion of the row is foreseen. # after_insert (rowid): Run after the row has been inserted successfully. # before_update (rowid): It is executed before modifying a row. If the function of the event returns false the modification of the row is foreseen. # after_update (rowid): Run after the row has been modified successfully. # after_delete (rowid): Run after the row has been deleted successfully. # row_deselect (rowid): It runs the moment a row is unchecked as selected. # row_select (rowid): It is executed at the moment a row is marked as selected. Parameters:
|
sqltableAddFieldEvent (p_boxid, colname, evtname, callback) |
---|
Add a column event. It allows to indicate the execution of a function when a certain event is triggered. The events contemplated are: # before (field): It is executed when the field receives the focus. # after (field): It is executed when the field is exited, if the value has been modified. # input (field):It is executed every time the value is modified. # blur (field): It is executed when leaving the field. # validate (field): It is executed when modifying the field. It allows to call the function sqltableSetFieldError to perform validations of customized data. Parameters:
|
sqltableAddRow (p_boxid) |
---|
Add a line to the SQL table dynamically. The new line will be blank, only with the default values defined. The line will remain in edit mode and the cursor will be placed in the first editable field. In case of being a transactional table, the insertion in the database is not performed. It will save changes to the line via the save button or the ENTER key. Parameters:
|
sqltableClear (p_boxid) |
---|
Delete all the contents of a SQL table. Deletion is only done locally, it does not affect the content of the database. Parameters:
|
sqltableGetByID (p_boxid) : domEl |
---|
Get a SQL table of the form. Parameters:
Return:
|
sqltableGetFieldValue (p_boxid, colname, rowid) : string |
---|
Gets the value of a cell in the SQL table. Parameters:
Return:
|
sqltableGetSelected (p_boxid) : JSONObject[] |
---|
Gets the data of the selected rows in a SQL table. Deprecated:
Parameters:
Return:
|
sqltableRefresh (p_boxid) |
---|
Reloads the contents of the SQL table. To do this, rerun the SQL set against the server asynchronously. Parameters:
|
sqltableSearchBy (p_boxid, colexpr, callback) : boolean |
---|
Reloads the contents of the SQL table. To do this, rerun the SQL set against the server asynchronously. Parameters:
Return:
Example:
Copy
sqltableSearchBy("CLIPOT", { 'cliente': getFieldValue('virtualtable.cliente'), 'articulo': getFieldValue('virtualtable.articulo') }); |
sqltableSelRow (p_boxid, rowid) |
---|
Select a row from the SQL table. Deprecated:
Parameters:
|
sqltableSetFieldError (p_boxid, colname, errmsg, rowid) |
---|
It allows to define the error of a field of a row of the SQL table. Antención, this function can only be called from the event validate of the field, which can be defined by the function sqltableAddFieldEvent. Parameters:
|
sqltableSetFieldValue (p_boxid, colname, data, rowid) |
---|
Modifies the value of a cell in the SQL table. Parameters:
|
sqltableToggleSelection (p_boxid) |
---|
Modifies the selection of all rows in the SQL table. Parameters:
|
sqltableToggleRowSelection (p_boxid, rowindex) |
---|
Modifies the selection of a row in the SQL table. Parameters:
|
sqltreeGetSelected (p_boxid) : JSONObject[] |
---|
Gets the data of the selected rows in a SQL tree. Deprecated:
Parameters:
Return:
Since:
|
sqltreeRefreshNode (p_boxid, p_parentnode, p_nodevaluesID, loadlcallback) : JSONObject[] |
---|
Refresh content of tree node. This function is asynchronous. Parameters:
Since:
|
sqltreeRefreshNodeByPath (p_boxid, p_path, loadlcallback) : JSONObject[] |
---|
Refresh content of tree node. This function is asynchronous. Parameters:
Since:
|
toFileAddTotalColumn (colname) |
---|
Parameters:
|
toFileMarkAll () |
---|
Select all visible rows of a multi-selection form. |
toFileUnmarkAll () |
---|
Deselects all visible rows of a multi-selection form. |
toFileSwitchLines () |
---|
Changes the selection of all visible rows of a multi-selection form. |
toFileVerifyMarks () : boolean |
---|
Check if there is a selected row in a multi-selection form. Return:
|