id
int32
0
58k
repo
stringlengths
5
67
path
stringlengths
4
116
func_name
stringlengths
0
58
original_string
stringlengths
52
373k
language
stringclasses
1 value
code
stringlengths
52
373k
code_tokens
list
docstring
stringlengths
4
11.8k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
86
226
3,700
SAP/openui5
src/sap.ui.core/src/sap/ui/thirdparty/caja-html-sanitizer.js
htmlSplit
function htmlSplit(str) { // can't hoist this out of the function because of the re.exec loop. var re = /(<\/|<\!--|<[!?]|[&<>])/g; str += ''; if (splitWillCapture) { return str.split(re); } else { var parts = []; var lastPos = 0; var m; while ((m = re.exec(str)) !== nu...
javascript
function htmlSplit(str) { // can't hoist this out of the function because of the re.exec loop. var re = /(<\/|<\!--|<[!?]|[&<>])/g; str += ''; if (splitWillCapture) { return str.split(re); } else { var parts = []; var lastPos = 0; var m; while ((m = re.exec(str)) !== nu...
[ "function", "htmlSplit", "(", "str", ")", "{", "// can't hoist this out of the function because of the re.exec loop.", "var", "re", "=", "/", "(<\\/|<\\!--|<[!?]|[&<>])", "/", "g", ";", "str", "+=", "''", ";", "if", "(", "splitWillCapture", ")", "{", "return", "str"...
Split str into parts for the html parser.
[ "Split", "str", "into", "parts", "for", "the", "html", "parser", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/caja-html-sanitizer.js#L3152-L3170
3,701
SAP/openui5
src/sap.ui.core/src/sap/ui/thirdparty/caja-html-sanitizer.js
sanitize
function sanitize(inputHtml, opt_naiveUriRewriter, opt_nmTokenPolicy) { var tagPolicy = makeTagPolicy(opt_naiveUriRewriter, opt_nmTokenPolicy); return sanitizeWithPolicy(inputHtml, tagPolicy); }
javascript
function sanitize(inputHtml, opt_naiveUriRewriter, opt_nmTokenPolicy) { var tagPolicy = makeTagPolicy(opt_naiveUriRewriter, opt_nmTokenPolicy); return sanitizeWithPolicy(inputHtml, tagPolicy); }
[ "function", "sanitize", "(", "inputHtml", ",", "opt_naiveUriRewriter", ",", "opt_nmTokenPolicy", ")", "{", "var", "tagPolicy", "=", "makeTagPolicy", "(", "opt_naiveUriRewriter", ",", "opt_nmTokenPolicy", ")", ";", "return", "sanitizeWithPolicy", "(", "inputHtml", ",",...
Strips unsafe tags and attributes from HTML. @param {string} inputHtml The HTML to sanitize. @param {?function(?string): ?string} opt_naiveUriRewriter A transform to apply to URI attributes. If not given, URI attributes are deleted. @param {function(?string): ?string} opt_nmTokenPolicy A transform to apply to attribut...
[ "Strips", "unsafe", "tags", "and", "attributes", "from", "HTML", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/caja-html-sanitizer.js#L3552-L3555
3,702
SAP/openui5
src/sap.ui.core/src/sap/ui/performance/BeaconRequest.js
function (option) { option = option || {}; if (!BeaconRequest.isSupported()) { throw Error("Beacon API is not supported"); } if (typeof option.url !== "string") { throw Error("Beacon url must be valid"); } this._nMaxBufferLength = option.maxBufferLength || 10; this._aBuffer = []; this._sUrl = o...
javascript
function (option) { option = option || {}; if (!BeaconRequest.isSupported()) { throw Error("Beacon API is not supported"); } if (typeof option.url !== "string") { throw Error("Beacon url must be valid"); } this._nMaxBufferLength = option.maxBufferLength || 10; this._aBuffer = []; this._sUrl = o...
[ "function", "(", "option", ")", "{", "option", "=", "option", "||", "{", "}", ";", "if", "(", "!", "BeaconRequest", ".", "isSupported", "(", ")", ")", "{", "throw", "Error", "(", "\"Beacon API is not supported\"", ")", ";", "}", "if", "(", "typeof", "o...
A helper for buffering and sending BeaconRequests to a certain URL @param {object} option Options for beacon API initialization @param {string} option.url beacon URL @param {string} option.maxBufferLength Number of entries in the stack before the beacon is send @private @ui5-restricted sap.ui.core
[ "A", "helper", "for", "buffering", "and", "sending", "BeaconRequests", "to", "a", "certain", "URL" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/performance/BeaconRequest.js#L18-L33
3,703
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/ui/controllers/Analysis.controller.js
function (sRule, bAsync) { var sCheckFunction = this.model.getProperty(sRule + "/check"); if (!sCheckFunction) { return; } // Check if a function is found var oMatch = sCheckFunction.match(/function[^(]*\(([^)]*)\)/); if (!oMatch) { return; } // Get the parameters of the function fou...
javascript
function (sRule, bAsync) { var sCheckFunction = this.model.getProperty(sRule + "/check"); if (!sCheckFunction) { return; } // Check if a function is found var oMatch = sCheckFunction.match(/function[^(]*\(([^)]*)\)/); if (!oMatch) { return; } // Get the parameters of the function fou...
[ "function", "(", "sRule", ",", "bAsync", ")", "{", "var", "sCheckFunction", "=", "this", ".", "model", ".", "getProperty", "(", "sRule", "+", "\"/check\"", ")", ";", "if", "(", "!", "sCheckFunction", ")", "{", "return", ";", "}", "// Check if a function is...
Add fnResolve to the check function when async is set to true otherwise removes it. @private @param {string} sRule the model path to edit or new rule @param {bAsync} bAsync the async property of the rule
[ "Add", "fnResolve", "to", "the", "check", "function", "when", "async", "is", "set", "to", "true", "otherwise", "removes", "it", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/ui/controllers/Analysis.controller.js#L123-L155
3,704
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/ui/controllers/Analysis.controller.js
function (component, savedComponents) { for (var index = 0; index < savedComponents.length; index += 1) { if (savedComponents[index].text == component.text && savedComponents[index].selected) { return true; } } return false; }
javascript
function (component, savedComponents) { for (var index = 0; index < savedComponents.length; index += 1) { if (savedComponents[index].text == component.text && savedComponents[index].selected) { return true; } } return false; }
[ "function", "(", "component", ",", "savedComponents", ")", "{", "for", "(", "var", "index", "=", "0", ";", "index", "<", "savedComponents", ".", "length", ";", "index", "+=", "1", ")", "{", "if", "(", "savedComponents", "[", "index", "]", ".", "text", ...
Checks if given execution scope component is selected comparing against an array of settings @param {Object} component The current component object to be checked @param {Array} savedComponents The local storage settings for the checked execution scope components @returns {boolean} If the component is checked or not
[ "Checks", "if", "given", "execution", "scope", "component", "is", "selected", "comparing", "against", "an", "array", "of", "settings" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/ui/controllers/Analysis.controller.js#L348-L355
3,705
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/ui/controllers/Analysis.controller.js
function (oEvent) { var bShowRuleProperties = true, oSelectedRule = this.model.getProperty("/selectedRule"), bAdditionalRulesetsTab = oEvent.getParameter("selectedKey") === "additionalRulesets"; if (bAdditionalRulesetsTab || !oSelectedRule) { bShowRuleProperties = false; } // Ensure we don't m...
javascript
function (oEvent) { var bShowRuleProperties = true, oSelectedRule = this.model.getProperty("/selectedRule"), bAdditionalRulesetsTab = oEvent.getParameter("selectedKey") === "additionalRulesets"; if (bAdditionalRulesetsTab || !oSelectedRule) { bShowRuleProperties = false; } // Ensure we don't m...
[ "function", "(", "oEvent", ")", "{", "var", "bShowRuleProperties", "=", "true", ",", "oSelectedRule", "=", "this", ".", "model", ".", "getProperty", "(", "\"/selectedRule\"", ")", ",", "bAdditionalRulesetsTab", "=", "oEvent", ".", "getParameter", "(", "\"selecte...
On selecting "Additional RuleSet" tab, start loading Additional RuleSets by brute search. @param {Event} oEvent TreeTable event
[ "On", "selecting", "Additional", "RuleSet", "tab", "start", "loading", "Additional", "RuleSets", "by", "brute", "search", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/ui/controllers/Analysis.controller.js#L405-L425
3,706
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/ui/controllers/Analysis.controller.js
function (tempLib, treeTable) { var library, rule, oTempLibCopy, bSelected, aRules, iIndex, fnFilter = function (oRule) { return oRule.id === rule.id; }; for (var i in treeTable) { library = treeTable[i]; oTempLibCopy = treeTable[i].nodes; if (library.name !== Cons...
javascript
function (tempLib, treeTable) { var library, rule, oTempLibCopy, bSelected, aRules, iIndex, fnFilter = function (oRule) { return oRule.id === rule.id; }; for (var i in treeTable) { library = treeTable[i]; oTempLibCopy = treeTable[i].nodes; if (library.name !== Cons...
[ "function", "(", "tempLib", ",", "treeTable", ")", "{", "var", "library", ",", "rule", ",", "oTempLibCopy", ",", "bSelected", ",", "aRules", ",", "iIndex", ",", "fnFilter", "=", "function", "(", "oRule", ")", "{", "return", "oRule", ".", "id", "===", "...
Keeps in sync the TreeViewModel for temporary library that we use for visualisation of sap.m.TreeTable and the model that we use in the Suppport Assistant @param {Object} tempLib temporary library model from Support Assistant @param {Object} treeTable Model for sap.m.TreeTable visualization @returns {Object} The temp ...
[ "Keeps", "in", "sync", "the", "TreeViewModel", "for", "temporary", "library", "that", "we", "use", "for", "visualisation", "of", "sap", ".", "m", ".", "TreeTable", "and", "the", "model", "that", "we", "use", "in", "the", "Suppport", "Assistant" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/ui/controllers/Analysis.controller.js#L451-L514
3,707
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/ui/controllers/Analysis.controller.js
function (tempRule, treeTable) { var ruleSource = this.model.getProperty("/editRuleSource"); for (var i in treeTable) { if (treeTable[i].name === Constants.TEMP_RULESETS_NAME) { for (var innerIndex in treeTable[i].nodes) { if (treeTable[i].nodes[innerIndex].id === ruleSource.id) { treeTable[...
javascript
function (tempRule, treeTable) { var ruleSource = this.model.getProperty("/editRuleSource"); for (var i in treeTable) { if (treeTable[i].name === Constants.TEMP_RULESETS_NAME) { for (var innerIndex in treeTable[i].nodes) { if (treeTable[i].nodes[innerIndex].id === ruleSource.id) { treeTable[...
[ "function", "(", "tempRule", ",", "treeTable", ")", "{", "var", "ruleSource", "=", "this", ".", "model", ".", "getProperty", "(", "\"/editRuleSource\"", ")", ";", "for", "(", "var", "i", "in", "treeTable", ")", "{", "if", "(", "treeTable", "[", "i", "]...
Keeps in sync the TreeViewModel for temporary rules that we use for visualisation of sap.m.TreeTable and the model that we use in the SuppportAssistant @param {Object} tempRule Temporary rule @param {Object} treeTable Model for sap.m.TreeTable visualization
[ "Keeps", "in", "sync", "the", "TreeViewModel", "for", "temporary", "rules", "that", "we", "use", "for", "visualisation", "of", "sap", ".", "m", ".", "TreeTable", "and", "the", "model", "that", "we", "use", "in", "the", "SuppportAssistant" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/ui/controllers/Analysis.controller.js#L521-L544
3,708
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/ui/controllers/Analysis.controller.js
function () { var tempRules = Storage.getRules(), loadingFromAdditionalRuleSets = this.model.getProperty("/loadingAdditionalRuleSets"); if (tempRules && !loadingFromAdditionalRuleSets && !this.tempRulesLoaded) { this.tempRulesFromStorage = tempRules; this.tempRulesLoaded = true; tempRules.forEac...
javascript
function () { var tempRules = Storage.getRules(), loadingFromAdditionalRuleSets = this.model.getProperty("/loadingAdditionalRuleSets"); if (tempRules && !loadingFromAdditionalRuleSets && !this.tempRulesLoaded) { this.tempRulesFromStorage = tempRules; this.tempRulesLoaded = true; tempRules.forEac...
[ "function", "(", ")", "{", "var", "tempRules", "=", "Storage", ".", "getRules", "(", ")", ",", "loadingFromAdditionalRuleSets", "=", "this", ".", "model", ".", "getProperty", "(", "\"/loadingAdditionalRuleSets\"", ")", ";", "if", "(", "tempRules", "&&", "!", ...
Loads temporary rules from the local storage
[ "Loads", "temporary", "rules", "from", "the", "local", "storage" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/ui/controllers/Analysis.controller.js#L725-L739
3,709
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/ui/controllers/Analysis.controller.js
function (event) { var sPath = event.getSource().getBindingContext("treeModel").getPath(), sourceObject = this.treeTable.getBinding().getModel().getProperty(sPath), libs = this.model.getProperty("/libraries"); libs.forEach(function (lib, libIndex) { lib.rules.forEach(function (rule) { if (rule.i...
javascript
function (event) { var sPath = event.getSource().getBindingContext("treeModel").getPath(), sourceObject = this.treeTable.getBinding().getModel().getProperty(sPath), libs = this.model.getProperty("/libraries"); libs.forEach(function (lib, libIndex) { lib.rules.forEach(function (rule) { if (rule.i...
[ "function", "(", "event", ")", "{", "var", "sPath", "=", "event", ".", "getSource", "(", ")", ".", "getBindingContext", "(", "\"treeModel\"", ")", ".", "getPath", "(", ")", ",", "sourceObject", "=", "this", ".", "treeTable", ".", "getBinding", "(", ")", ...
Gets rule from selected row @param {Object} event Event @returns {Object} ISelected rule from row *
[ "Gets", "rule", "from", "selected", "row" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/ui/controllers/Analysis.controller.js#L966-L979
3,710
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/ui/controllers/Analysis.controller.js
function (aColumnsIds, bVisibilityValue) { var aColumns = this.treeTable.getColumns(); aColumns.forEach(function(oColumn) { oColumn.setVisible(!bVisibilityValue); aColumnsIds.forEach(function(sRuleId) { if (oColumn.sId.includes(sRuleId)) { oColumn.setVisible(bVisibilityValue); } }); ...
javascript
function (aColumnsIds, bVisibilityValue) { var aColumns = this.treeTable.getColumns(); aColumns.forEach(function(oColumn) { oColumn.setVisible(!bVisibilityValue); aColumnsIds.forEach(function(sRuleId) { if (oColumn.sId.includes(sRuleId)) { oColumn.setVisible(bVisibilityValue); } }); ...
[ "function", "(", "aColumnsIds", ",", "bVisibilityValue", ")", "{", "var", "aColumns", "=", "this", ".", "treeTable", ".", "getColumns", "(", ")", ";", "aColumns", ".", "forEach", "(", "function", "(", "oColumn", ")", "{", "oColumn", ".", "setVisible", "(",...
Sets visibility to columns. @param {Array} aColumnsIds Ids of columns @param {boolean} bVisibilityValue
[ "Sets", "visibility", "to", "columns", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/ui/controllers/Analysis.controller.js#L996-L1007
3,711
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/ui/controllers/Analysis.controller.js
function (oEvent) { var oColumn = oEvent.getParameter("column"), bNewVisibilityState = oEvent.getParameter("newVisible"); if (!this.model.getProperty("/persistingSettings")) { return; } oColumn.setVisible(bNewVisibilityState); this.persistVisibleColumns(); }
javascript
function (oEvent) { var oColumn = oEvent.getParameter("column"), bNewVisibilityState = oEvent.getParameter("newVisible"); if (!this.model.getProperty("/persistingSettings")) { return; } oColumn.setVisible(bNewVisibilityState); this.persistVisibleColumns(); }
[ "function", "(", "oEvent", ")", "{", "var", "oColumn", "=", "oEvent", ".", "getParameter", "(", "\"column\"", ")", ",", "bNewVisibilityState", "=", "oEvent", ".", "getParameter", "(", "\"newVisible\"", ")", ";", "if", "(", "!", "this", ".", "model", ".", ...
On column visibility change persist column visibility selection @param {object} oEvent event
[ "On", "column", "visibility", "change", "persist", "column", "visibility", "selection" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/ui/controllers/Analysis.controller.js#L1013-L1021
3,712
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(oModelReference, mParameter) { if (typeof mParameter == "string") { throw "Deprecated second argument: Adjust your invocation by passing an object with a property sAnnotationJSONDoc as a second argument instead"; } this._mParameter = mParameter; var that = this; /* * get access to OData...
javascript
function(oModelReference, mParameter) { if (typeof mParameter == "string") { throw "Deprecated second argument: Adjust your invocation by passing an object with a property sAnnotationJSONDoc as a second argument instead"; } this._mParameter = mParameter; var that = this; /* * get access to OData...
[ "function", "(", "oModelReference", ",", "mParameter", ")", "{", "if", "(", "typeof", "mParameter", "==", "\"string\"", ")", "{", "throw", "\"Deprecated second argument: Adjust your invocation by passing an object with a property sAnnotationJSONDoc as a second argument instead\"", ...
initialize a new object @private
[ "initialize", "a", "new", "object" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L245-L333
3,713
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
processMetadata
function processMetadata () { //only interprete the metadata if the analytics model was not initialised yet if (that.bIsInitialized) { return; } //mark analytics model as initialized that.bIsInitialized = true; /* * add extra annotations if provided */ if (mParameter && mPar...
javascript
function processMetadata () { //only interprete the metadata if the analytics model was not initialised yet if (that.bIsInitialized) { return; } //mark analytics model as initialized that.bIsInitialized = true; /* * add extra annotations if provided */ if (mParameter && mPar...
[ "function", "processMetadata", "(", ")", "{", "//only interprete the metadata if the analytics model was not initialised yet", "if", "(", "that", ".", "bIsInitialized", ")", "{", "return", ";", "}", "//mark analytics model as initialized", "that", ".", "bIsInitialized", "=", ...
Kickstart the interpretation of the metadata, either called directly if metadata is available, or deferred and then executed via callback by the model during the metadata loaded event.
[ "Kickstart", "the", "interpretation", "of", "the", "metadata", "either", "called", "directly", "if", "metadata", "is", "available", "or", "deferred", "and", "then", "executed", "via", "callback", "by", "the", "model", "during", "the", "metadata", "loaded", "even...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L314-L331
3,714
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(sName) { var oQueryResult = this._oQueryResultSet[sName]; // Everybody should have a second chance: // If the name was not fully qualified, check if it is in the default // container if (!oQueryResult && this._oDefaultEntityContainer) { var sQName = this._oDefaultEntityContainer.name + "." ...
javascript
function(sName) { var oQueryResult = this._oQueryResultSet[sName]; // Everybody should have a second chance: // If the name was not fully qualified, check if it is in the default // container if (!oQueryResult && this._oDefaultEntityContainer) { var sQName = this._oDefaultEntityContainer.name + "." ...
[ "function", "(", "sName", ")", "{", "var", "oQueryResult", "=", "this", ".", "_oQueryResultSet", "[", "sName", "]", ";", "// Everybody should have a second chance:", "// If the name was not fully qualified, check if it is in the default", "// container", "if", "(", "!", "oQ...
Find analytic query result by name @param {string} sName Fully qualified name of query result entity set @returns {sap.ui.model.analytics.odata4analytics.QueryResult} The query result object with this name or null if it does not exist @public @function @name sap.ui.model.analytics.odata4analytics.Model#findQueryResult...
[ "Find", "analytic", "query", "result", "by", "name" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L743-L755
3,715
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(oSchema, sQTypeName) { var aEntitySet = []; for (var i = -1, oEntityContainer; (oEntityContainer = oSchema.entityContainer[++i]) !== undefined;) { for (var j = -1, oEntitySet; (oEntitySet = oEntityContainer.entitySet[++j]) !== undefined;) { if (oEntitySet.entityType == sQTypeName) { aEnti...
javascript
function(oSchema, sQTypeName) { var aEntitySet = []; for (var i = -1, oEntityContainer; (oEntityContainer = oSchema.entityContainer[++i]) !== undefined;) { for (var j = -1, oEntitySet; (oEntitySet = oEntityContainer.entitySet[++j]) !== undefined;) { if (oEntitySet.entityType == sQTypeName) { aEnti...
[ "function", "(", "oSchema", ",", "sQTypeName", ")", "{", "var", "aEntitySet", "=", "[", "]", ";", "for", "(", "var", "i", "=", "-", "1", ",", "oEntityContainer", ";", "(", "oEntityContainer", "=", "oSchema", ".", "entityContainer", "[", "++", "i", "]",...
Private methods Find entity sets of a given type @private
[ "Private", "methods", "Find", "entity", "sets", "of", "a", "given", "type" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L815-L827
3,716
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(oModel, oEntityType, oEntitySet, oParameterization, oAssocFromParamsToResult) { this._oModel = oModel; this._oEntityType = oEntityType; this._oEntitySet = oEntitySet; this._oParameterization = oParameterization; this._oDimensionSet = {}; this._oMeasureSet = {}; // parse entity type for a...
javascript
function(oModel, oEntityType, oEntitySet, oParameterization, oAssocFromParamsToResult) { this._oModel = oModel; this._oEntityType = oEntityType; this._oEntitySet = oEntitySet; this._oParameterization = oParameterization; this._oDimensionSet = {}; this._oMeasureSet = {}; // parse entity type for a...
[ "function", "(", "oModel", ",", "oEntityType", ",", "oEntitySet", ",", "oParameterization", ",", "oAssocFromParamsToResult", ")", "{", "this", ".", "_oModel", "=", "oModel", ";", "this", ".", "_oEntityType", "=", "oEntityType", ";", "this", ".", "_oEntitySet", ...
initialize new object @private
[ "initialize", "new", "object" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L880-L971
3,717
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function() { if (this._aDimensionNames) { return this._aDimensionNames; } this._aDimensionNames = []; for ( var sName in this._oDimensionSet) { this._aDimensionNames.push(this._oDimensionSet[sName].getName()); } return this._aDimensionNames; }
javascript
function() { if (this._aDimensionNames) { return this._aDimensionNames; } this._aDimensionNames = []; for ( var sName in this._oDimensionSet) { this._aDimensionNames.push(this._oDimensionSet[sName].getName()); } return this._aDimensionNames; }
[ "function", "(", ")", "{", "if", "(", "this", ".", "_aDimensionNames", ")", "{", "return", "this", ".", "_aDimensionNames", ";", "}", "this", ".", "_aDimensionNames", "=", "[", "]", ";", "for", "(", "var", "sName", "in", "this", ".", "_oDimensionSet", ...
Get the names of all dimensions included in the query result @returns {string[]} List of all dimension names @public @function @name sap.ui.model.analytics.odata4analytics.QueryResult#getAllDimensionNames
[ "Get", "the", "names", "of", "all", "dimensions", "included", "in", "the", "query", "result" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L1009-L1021
3,718
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function() { if (this._aMeasureNames) { return this._aMeasureNames; } this._aMeasureNames = []; for ( var sName in this._oMeasureSet) { this._aMeasureNames.push(this._oMeasureSet[sName].getName()); } return this._aMeasureNames; }
javascript
function() { if (this._aMeasureNames) { return this._aMeasureNames; } this._aMeasureNames = []; for ( var sName in this._oMeasureSet) { this._aMeasureNames.push(this._oMeasureSet[sName].getName()); } return this._aMeasureNames; }
[ "function", "(", ")", "{", "if", "(", "this", ".", "_aMeasureNames", ")", "{", "return", "this", ".", "_aMeasureNames", ";", "}", "this", ".", "_aMeasureNames", "=", "[", "]", ";", "for", "(", "var", "sName", "in", "this", ".", "_oMeasureSet", ")", "...
Get the names of all measures included in the query result @returns {string[]} List of all measure names @public @function @name sap.ui.model.analytics.odata4analytics.QueryResult#getAllMeasureNames
[ "Get", "the", "names", "of", "all", "measures", "included", "in", "the", "query", "result" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L1047-L1059
3,719
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(sName) { if (this._oDimensionSet[sName]) { // the easy case return this._oDimensionSet[sName]; } for ( var sDimensionName in this._oDimensionSet) { var oDimension = this._oDimensionSet[sDimensionName]; var oTextProperty = oDimension.getTextProperty(); if (oTextProperty && oTextPropert...
javascript
function(sName) { if (this._oDimensionSet[sName]) { // the easy case return this._oDimensionSet[sName]; } for ( var sDimensionName in this._oDimensionSet) { var oDimension = this._oDimensionSet[sDimensionName]; var oTextProperty = oDimension.getTextProperty(); if (oTextProperty && oTextPropert...
[ "function", "(", "sName", ")", "{", "if", "(", "this", ".", "_oDimensionSet", "[", "sName", "]", ")", "{", "// the easy case", "return", "this", ".", "_oDimensionSet", "[", "sName", "]", ";", "}", "for", "(", "var", "sDimensionName", "in", "this", ".", ...
Find dimension by property name @param {string} sName Property name @returns {sap.ui.model.analytics.odata4analytics.Dimension} The dimension object to which the given property name is related, because the property holds the dimension key, its text, or is an attribute of this dimension. If no such dimension exists, nu...
[ "Find", "dimension", "by", "property", "name" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L1105-L1121
3,720
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(sName) { if (this._oMeasureSet[sName]) { // the easy case return this._oMeasureSet[sName]; } for ( var sMeasureName in this._oMeasureSet) { var oMeasure = this._oMeasureSet[sMeasureName]; var oFormattedValueProperty = oMeasure.getFormattedValueProperty(); if (oFormattedValueProperty &...
javascript
function(sName) { if (this._oMeasureSet[sName]) { // the easy case return this._oMeasureSet[sName]; } for ( var sMeasureName in this._oMeasureSet) { var oMeasure = this._oMeasureSet[sMeasureName]; var oFormattedValueProperty = oMeasure.getFormattedValueProperty(); if (oFormattedValueProperty &...
[ "function", "(", "sName", ")", "{", "if", "(", "this", ".", "_oMeasureSet", "[", "sName", "]", ")", "{", "// the easy case", "return", "this", ".", "_oMeasureSet", "[", "sName", "]", ";", "}", "for", "(", "var", "sMeasureName", "in", "this", ".", "_oMe...
Find measure by property name @param {string} sName Property name @returns {sap.ui.model.analytics.odata4analytics.Measure} The measure object to which the given property name is related, because the property holds the raw measure value or its formatted value. If no such measure exists, null is returned. @public @func...
[ "Find", "measure", "by", "property", "name" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L1163-L1176
3,721
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(oQueryResult, oAssociation) { this._oQueryResult = oQueryResult; var sQAssocName = this._oEntityType.getSchema().namespace + "." + oAssociation.name; var aNavProp = this._oEntityType.getTypeDescription().navigationProperty; if (!aNavProp) { throw "Invalid consumption model: Parameters entity ty...
javascript
function(oQueryResult, oAssociation) { this._oQueryResult = oQueryResult; var sQAssocName = this._oEntityType.getSchema().namespace + "." + oAssociation.name; var aNavProp = this._oEntityType.getTypeDescription().navigationProperty; if (!aNavProp) { throw "Invalid consumption model: Parameters entity ty...
[ "function", "(", "oQueryResult", ",", "oAssociation", ")", "{", "this", ".", "_oQueryResult", "=", "oQueryResult", ";", "var", "sQAssocName", "=", "this", ".", "_oEntityType", ".", "getSchema", "(", ")", ".", "namespace", "+", "\".\"", "+", "oAssociation", "...
to be called only by Model objects
[ "to", "be", "called", "only", "by", "Model", "objects" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L1291-L1306
3,722
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function() { if (this._aParameterNames) { return this._aParameterNames; } this._aParameterNames = []; for ( var sName in this._oParameterSet) { this._aParameterNames.push(this._oParameterSet[sName].getName()); } return this._aParameterNames; }
javascript
function() { if (this._aParameterNames) { return this._aParameterNames; } this._aParameterNames = []; for ( var sName in this._oParameterSet) { this._aParameterNames.push(this._oParameterSet[sName].getName()); } return this._aParameterNames; }
[ "function", "(", ")", "{", "if", "(", "this", ".", "_aParameterNames", ")", "{", "return", "this", ".", "_aParameterNames", ";", "}", "this", ".", "_aParameterNames", "=", "[", "]", ";", "for", "(", "var", "sName", "in", "this", ".", "_oParameterSet", ...
Get the names of all parameters part of the parameterization @returns {string[]} List of all parameter names @public @function @name sap.ui.model.analytics.odata4analytics.Parameterization#getAllParameterNames
[ "Get", "the", "names", "of", "all", "parameters", "part", "of", "the", "parameterization" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L1337-L1349
3,723
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function() { var sPeerParamPropName = null; if (this._oLowerIntervalBoundaryParameterProperty) { sPeerParamPropName = this._oLowerIntervalBoundaryParameterProperty.name; } else { sPeerParamPropName = this._oUpperIntervalBoundaryParameterProperty.name; } if (!sPeerParamPropName) { throw "Param...
javascript
function() { var sPeerParamPropName = null; if (this._oLowerIntervalBoundaryParameterProperty) { sPeerParamPropName = this._oLowerIntervalBoundaryParameterProperty.name; } else { sPeerParamPropName = this._oUpperIntervalBoundaryParameterProperty.name; } if (!sPeerParamPropName) { throw "Param...
[ "function", "(", ")", "{", "var", "sPeerParamPropName", "=", "null", ";", "if", "(", "this", ".", "_oLowerIntervalBoundaryParameterProperty", ")", "{", "sPeerParamPropName", "=", "this", ".", "_oLowerIntervalBoundaryParameterProperty", ".", "name", ";", "}", "else",...
Get property for the parameter representing the peer boundary of the same interval @returns {sap.ui.model.analytics.odata4analytics.Parameter} The parameter representing the peer boundary of the same interval. This means that if *this* parameter is a lower boundary, the returned object @public @function @name sap.ui.m...
[ "Get", "property", "for", "the", "parameter", "representing", "the", "peer", "boundary", "of", "the", "same", "interval" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L1589-L1600
3,724
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function() { if (!this._sSuperOrdinateDimension) { var oSuperOrdProperty = this._oQueryResult.getEntityType().getSuperOrdinatePropertyOfProperty(this.getName()); if (oSuperOrdProperty) { this._sSuperOrdinateDimension = this._oQueryResult.findDimensionByName(oSuperOrdProperty.name); } } return ...
javascript
function() { if (!this._sSuperOrdinateDimension) { var oSuperOrdProperty = this._oQueryResult.getEntityType().getSuperOrdinatePropertyOfProperty(this.getName()); if (oSuperOrdProperty) { this._sSuperOrdinateDimension = this._oQueryResult.findDimensionByName(oSuperOrdProperty.name); } } return ...
[ "function", "(", ")", "{", "if", "(", "!", "this", ".", "_sSuperOrdinateDimension", ")", "{", "var", "oSuperOrdProperty", "=", "this", ".", "_oQueryResult", ".", "getEntityType", "(", ")", ".", "getSuperOrdinatePropertyOfProperty", "(", "this", ".", "getName", ...
Get super-ordinate dimension @returns {object} The super-ordinate dimension or null if there is none @public @function @name sap.ui.model.analytics.odata4analytics.Dimension#getSuperOrdinateDimension
[ "Get", "super", "-", "ordinate", "dimension" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L1804-L1812
3,725
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function() { if (this._aAttributeNames) { return this._aAttributeNames; } this._aAttributeNames = []; for ( var sName in this._oAttributeSet) { this._aAttributeNames.push(this._oAttributeSet[sName].getName()); } return this._aAttributeNames; }
javascript
function() { if (this._aAttributeNames) { return this._aAttributeNames; } this._aAttributeNames = []; for ( var sName in this._oAttributeSet) { this._aAttributeNames.push(this._oAttributeSet[sName].getName()); } return this._aAttributeNames; }
[ "function", "(", ")", "{", "if", "(", "this", ".", "_aAttributeNames", ")", "{", "return", "this", ".", "_aAttributeNames", ";", "}", "this", ".", "_aAttributeNames", "=", "[", "]", ";", "for", "(", "var", "sName", "in", "this", ".", "_oAttributeSet", ...
Get the names of all attributes included in this dimension @returns {string[]} List of all attribute names @public @function @name sap.ui.model.analytics.odata4analytics.Dimension#getAllAttributeNames
[ "Get", "the", "names", "of", "all", "attributes", "included", "in", "this", "dimension" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L1843-L1855
3,726
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function() { if (this._bIsUpdatable != null) { return this._bIsUpdatable; } var oUpdatablePropertyNameSet = this._oQueryResult.getEntitySet().getUpdatablePropertyNameSet(); return (oUpdatablePropertyNameSet[this.getName()] != undefined); }
javascript
function() { if (this._bIsUpdatable != null) { return this._bIsUpdatable; } var oUpdatablePropertyNameSet = this._oQueryResult.getEntitySet().getUpdatablePropertyNameSet(); return (oUpdatablePropertyNameSet[this.getName()] != undefined); }
[ "function", "(", ")", "{", "if", "(", "this", ".", "_bIsUpdatable", "!=", "null", ")", "{", "return", "this", ".", "_bIsUpdatable", ";", "}", "var", "oUpdatablePropertyNameSet", "=", "this", ".", "_oQueryResult", ".", "getEntitySet", "(", ")", ".", "getUpd...
Get indicator whether or not the measure is updatable @returns {boolean} True iff the measure is updatable @public @function @name sap.ui.model.analytics.odata4analytics.Measure#isUpdatable
[ "Get", "indicator", "whether", "or", "not", "the", "measure", "is", "updatable" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L2211-L2218
3,727
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function() { if (this._oUpdatablePropertyNames) { return this._oUpdatablePropertyNames; } this._oUpdatablePropertyNames = {}; var bSetIsUpdatable = true; if (this._oEntitySet.extensions != undefined) { for (var j = -1, oExtension; (oExtension = this._oEntitySet.extensions[++j]) !== undefined;) {...
javascript
function() { if (this._oUpdatablePropertyNames) { return this._oUpdatablePropertyNames; } this._oUpdatablePropertyNames = {}; var bSetIsUpdatable = true; if (this._oEntitySet.extensions != undefined) { for (var j = -1, oExtension; (oExtension = this._oEntitySet.extensions[++j]) !== undefined;) {...
[ "function", "(", ")", "{", "if", "(", "this", ".", "_oUpdatablePropertyNames", ")", "{", "return", "this", ".", "_oUpdatablePropertyNames", ";", "}", "this", ".", "_oUpdatablePropertyNames", "=", "{", "}", ";", "var", "bSetIsUpdatable", "=", "true", ";", "if...
Get names of properties in this entity set that can be updated @returns {object} An object with individual JS properties for each updatable property. For testing whether propertyName is the name of an updatable property, use <code>getUpdatablePropertyNameSet()[propertyName]</code>. The included JS object properties ar...
[ "Get", "names", "of", "properties", "in", "this", "entity", "set", "that", "can", "be", "updated" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L2335-L2380
3,728
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
getOrCreateHierarchy
function getOrCreateHierarchy(sKey) { var oResult = oRecursiveHierarchies[sKey]; if (!oResult) { oResult = oRecursiveHierarchies[sKey] = {}; } return oResult; }
javascript
function getOrCreateHierarchy(sKey) { var oResult = oRecursiveHierarchies[sKey]; if (!oResult) { oResult = oRecursiveHierarchies[sKey] = {}; } return oResult; }
[ "function", "getOrCreateHierarchy", "(", "sKey", ")", "{", "var", "oResult", "=", "oRecursiveHierarchies", "[", "sKey", "]", ";", "if", "(", "!", "oResult", ")", "{", "oResult", "=", "oRecursiveHierarchies", "[", "sKey", "]", "=", "{", "}", ";", "}", "re...
temp for collecting all properties participating in hierarchies
[ "temp", "for", "collecting", "all", "properties", "participating", "in", "hierarchies" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L2449-L2456
3,729
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function() { if (this._aHierarchyPropertyNames) { return this._aHierarchyPropertyNames; } this._aHierarchyPropertyNames = []; for ( var sName in this._oRecursiveHierarchySet) { this._aHierarchyPropertyNames.push(this._oRecursiveHierarchySet[sName].getNodeValueProperty().name); } return this...
javascript
function() { if (this._aHierarchyPropertyNames) { return this._aHierarchyPropertyNames; } this._aHierarchyPropertyNames = []; for ( var sName in this._oRecursiveHierarchySet) { this._aHierarchyPropertyNames.push(this._oRecursiveHierarchySet[sName].getNodeValueProperty().name); } return this...
[ "function", "(", ")", "{", "if", "(", "this", ".", "_aHierarchyPropertyNames", ")", "{", "return", "this", ".", "_aHierarchyPropertyNames", ";", "}", "this", ".", "_aHierarchyPropertyNames", "=", "[", "]", ";", "for", "(", "var", "sName", "in", "this", "."...
Get the names of all properties with an associated hierarchy @returns {string[]} List of all property names @public @function @name sap.ui.model.analytics.odata4analytics.EntityType#getAllHierarchyPropertyNames
[ "Get", "the", "names", "of", "all", "properties", "with", "an", "associated", "hierarchy" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L2812-L2824
3,730
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(sPropertyName, sOperator, oValue, oValue2) { var oProperty = this._oEntityType.findPropertyByName(sPropertyName); if (oProperty == null) { throw "Cannot add filter condition for unknown property name " + sPropertyName; // TODO } var aFilterablePropertyNames = this._oEntityType.getFilterableProp...
javascript
function(sPropertyName, sOperator, oValue, oValue2) { var oProperty = this._oEntityType.findPropertyByName(sPropertyName); if (oProperty == null) { throw "Cannot add filter condition for unknown property name " + sPropertyName; // TODO } var aFilterablePropertyNames = this._oEntityType.getFilterableProp...
[ "function", "(", "sPropertyName", ",", "sOperator", ",", "oValue", ",", "oValue2", ")", "{", "var", "oProperty", "=", "this", ".", "_oEntityType", ".", "findPropertyByName", "(", "sPropertyName", ")", ";", "if", "(", "oProperty", "==", "null", ")", "{", "t...
Add a condition to the filter expression. Multiple conditions on the same property are combined with a logical OR first, and in a second step conditions for different properties are combined with a logical AND. @param {string} sPropertyName The name of the property bound in the condition @param {sap.ui.model.FilterOp...
[ "Add", "a", "condition", "to", "the", "filter", "expression", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L3153-L3164
3,731
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(sPropertyName) { var oProperty = this._oEntityType.findPropertyByName(sPropertyName); if (oProperty == null) { throw "Cannot remove filter conditions for unknown property name " + sPropertyName; // TODO } for (var i = 0; i < this._aConditionUI5Filter.length; i++) { var oUI5Filter = this._aC...
javascript
function(sPropertyName) { var oProperty = this._oEntityType.findPropertyByName(sPropertyName); if (oProperty == null) { throw "Cannot remove filter conditions for unknown property name " + sPropertyName; // TODO } for (var i = 0; i < this._aConditionUI5Filter.length; i++) { var oUI5Filter = this._aC...
[ "function", "(", "sPropertyName", ")", "{", "var", "oProperty", "=", "this", ".", "_oEntityType", ".", "findPropertyByName", "(", "sPropertyName", ")", ";", "if", "(", "oProperty", "==", "null", ")", "{", "throw", "\"Cannot remove filter conditions for unknown prope...
Remove all conditions for some property from the filter expression. All previously set conditions for some property are removed from the filter expression. @param {string} sPropertyName The name of the property bound in the condition @throws Exception if the property is unknown @returns {sap.ui.model.analytics.odata4...
[ "Remove", "all", "conditions", "for", "some", "property", "from", "the", "filter", "expression", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L3180-L3192
3,732
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(sPropertyName, aValues) { var oProperty = this._oEntityType.findPropertyByName(sPropertyName); if (oProperty == null) { throw "Cannot add filter condition for unknown property name " + sPropertyName; // TODO } var aFilterablePropertyNames = this._oEntityType.getFilterablePropertyNames(); if ...
javascript
function(sPropertyName, aValues) { var oProperty = this._oEntityType.findPropertyByName(sPropertyName); if (oProperty == null) { throw "Cannot add filter condition for unknown property name " + sPropertyName; // TODO } var aFilterablePropertyNames = this._oEntityType.getFilterablePropertyNames(); if ...
[ "function", "(", "sPropertyName", ",", "aValues", ")", "{", "var", "oProperty", "=", "this", ".", "_oEntityType", ".", "findPropertyByName", "(", "sPropertyName", ")", ";", "if", "(", "oProperty", "==", "null", ")", "{", "throw", "\"Cannot add filter condition f...
Add a set condition to the filter expression. A set condition tests if the value of a property is included in a set of given values. It is a convenience method for this particular use case eliminating the need for multiple API calls. @param {string} sPropertyName The name of the property bound in the condition @param...
[ "Add", "a", "set", "condition", "to", "the", "filter", "expression", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L3211-L3224
3,733
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(aUI5Filter) { if (!Array.isArray(aUI5Filter)) { throw "Argument is not an array"; } if (aUI5Filter.length == 0) { return this; } // check if a multi filter is included; otherwise every element simply represents a single condition var bHasMultiFilter = false; for (var i = 0; i < aU...
javascript
function(aUI5Filter) { if (!Array.isArray(aUI5Filter)) { throw "Argument is not an array"; } if (aUI5Filter.length == 0) { return this; } // check if a multi filter is included; otherwise every element simply represents a single condition var bHasMultiFilter = false; for (var i = 0; i < aU...
[ "function", "(", "aUI5Filter", ")", "{", "if", "(", "!", "Array", ".", "isArray", "(", "aUI5Filter", ")", ")", "{", "throw", "\"Argument is not an array\"", ";", "}", "if", "(", "aUI5Filter", ".", "length", "==", "0", ")", "{", "return", "this", ";", "...
Add an array of UI5 filter conditions to the filter expression. The UI5 filter condition is combined with the other given conditions using a logical AND. This method is particularly useful for passing forward already created UI5 filter arrays. @param {sap.ui.model.Filter[]} aUI5Filter Array of UI5 filter objects @ret...
[ "Add", "an", "array", "of", "UI5", "filter", "conditions", "to", "the", "filter", "expression", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L3239-L3263
3,734
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function() { var aFilterObjects = this._aConditionUI5Filter.concat([]); for ( var i = -1, aFilter; (aFilter = this._aUI5FilterArray[++i]) !== undefined;) { for ( var j = -1, oFilter; (oFilter = aFilter[++j]) !== undefined;) { aFilterObjects.push(oFilter); } } return aFilterObjects; }
javascript
function() { var aFilterObjects = this._aConditionUI5Filter.concat([]); for ( var i = -1, aFilter; (aFilter = this._aUI5FilterArray[++i]) !== undefined;) { for ( var j = -1, oFilter; (oFilter = aFilter[++j]) !== undefined;) { aFilterObjects.push(oFilter); } } return aFilterObjects; }
[ "function", "(", ")", "{", "var", "aFilterObjects", "=", "this", ".", "_aConditionUI5Filter", ".", "concat", "(", "[", "]", ")", ";", "for", "(", "var", "i", "=", "-", "1", ",", "aFilter", ";", "(", "aFilter", "=", "this", ".", "_aUI5FilterArray", "[...
Get an array of SAPUI5 Filter objects corresponding to this expression. @returns {sap.ui.model.Filter[]} List of filter objects representing this expression @public @function @name sap.ui.model.analytics.odata4analytics.FilterExpression#getExpressionAsUI5FilterArray
[ "Get", "an", "array", "of", "SAPUI5", "Filter", "objects", "corresponding", "to", "this", "expression", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L3274-L3283
3,735
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function() { var oReferencedProperties = {}; for ( var i = -1, oUI5Filter; (oUI5Filter = this._aConditionUI5Filter[++i]) !== undefined;) { if (oReferencedProperties[oUI5Filter.sPath] == undefined) { oReferencedProperties[oUI5Filter.sPath] = []; } oReferencedProperties[oUI5Filter.sPath].push(oUI5...
javascript
function() { var oReferencedProperties = {}; for ( var i = -1, oUI5Filter; (oUI5Filter = this._aConditionUI5Filter[++i]) !== undefined;) { if (oReferencedProperties[oUI5Filter.sPath] == undefined) { oReferencedProperties[oUI5Filter.sPath] = []; } oReferencedProperties[oUI5Filter.sPath].push(oUI5...
[ "function", "(", ")", "{", "var", "oReferencedProperties", "=", "{", "}", ";", "for", "(", "var", "i", "=", "-", "1", ",", "oUI5Filter", ";", "(", "oUI5Filter", "=", "this", ".", "_aConditionUI5Filter", "[", "++", "i", "]", ")", "!==", "undefined", "...
Get the properties referenced by the filter expression. @returns {object} Object containing (JavaScript) properties for all (OData entity type) properties referenced in the filter expression. The value for each of these properties is an array holding all used UI5 filters referencing them. @private
[ "Get", "the", "properties", "referenced", "by", "the", "filter", "expression", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L3310-L3324
3,736
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(oUI5Filter) { var sFilterExpression = null, oProperty = this._oEntityType.findPropertyByName(oUI5Filter.sPath); if (oProperty == null) { throw "Cannot add filter condition for unknown property name " + oUI5Filter.sPath; // TODO } switch (oUI5Filter.sOperator) { case FilterOperator.BT: ...
javascript
function(oUI5Filter) { var sFilterExpression = null, oProperty = this._oEntityType.findPropertyByName(oUI5Filter.sPath); if (oProperty == null) { throw "Cannot add filter condition for unknown property name " + oUI5Filter.sPath; // TODO } switch (oUI5Filter.sOperator) { case FilterOperator.BT: ...
[ "function", "(", "oUI5Filter", ")", "{", "var", "sFilterExpression", "=", "null", ",", "oProperty", "=", "this", ".", "_oEntityType", ".", "findPropertyByName", "(", "oUI5Filter", ".", "sPath", ")", ";", "if", "(", "oProperty", "==", "null", ")", "{", "thr...
Render a UI5 Filter as OData condition. @param {string} oUI5Filter The filter object to render (must not be a multi filter) @returns {string} The $filter value for the given UI5 filter @private
[ "Render", "a", "UI5", "Filter", "as", "OData", "condition", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L3333-L3376
3,737
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(sPropertyName) { var oResult = null; for (var i = -1, oCurrentSorter; (oCurrentSorter = this._aSortCondition[++i]) !== undefined;) { if (oCurrentSorter.property.name === sPropertyName) { oResult = { sorter : oCurrentSorter, index : i }; break; } } return oResult; ...
javascript
function(sPropertyName) { var oResult = null; for (var i = -1, oCurrentSorter; (oCurrentSorter = this._aSortCondition[++i]) !== undefined;) { if (oCurrentSorter.property.name === sPropertyName) { oResult = { sorter : oCurrentSorter, index : i }; break; } } return oResult; ...
[ "function", "(", "sPropertyName", ")", "{", "var", "oResult", "=", "null", ";", "for", "(", "var", "i", "=", "-", "1", ",", "oCurrentSorter", ";", "(", "oCurrentSorter", "=", "this", ".", "_aSortCondition", "[", "++", "i", "]", ")", "!==", "undefined",...
Checks if an order by expression for the given property is already defined and returns a reference to an object with property sorter and index of the object or null if the property is not yet defined in an order by expression. @private
[ "Checks", "if", "an", "order", "by", "expression", "for", "the", "given", "property", "is", "already", "defined", "and", "returns", "a", "reference", "to", "an", "object", "with", "property", "sorter", "and", "index", "of", "the", "object", "or", "null", "...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L3635-L3647
3,738
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(sPropertyName, sSortOrder) { var oProperty = this._oEntityType.findPropertyByName(sPropertyName); if (oProperty == null) { throw "Cannot add sort condition for unknown property name " + sPropertyName; // TODO } var oExistingSorterEntry = this._containsSorter(sPropertyName); if (oExistingSort...
javascript
function(sPropertyName, sSortOrder) { var oProperty = this._oEntityType.findPropertyByName(sPropertyName); if (oProperty == null) { throw "Cannot add sort condition for unknown property name " + sPropertyName; // TODO } var oExistingSorterEntry = this._containsSorter(sPropertyName); if (oExistingSort...
[ "function", "(", "sPropertyName", ",", "sSortOrder", ")", "{", "var", "oProperty", "=", "this", ".", "_oEntityType", ".", "findPropertyByName", "(", "sPropertyName", ")", ";", "if", "(", "oProperty", "==", "null", ")", "{", "throw", "\"Cannot add sort condition ...
Add a condition to the order by expression. It replaces any previously specified sort order for the property. @param {string} sPropertyName The name of the property bound in the condition @param {sap.ui.model.analytics.odata4analytics.SortOrder} sSortOrder sorting order used for the condition @throws Exception if the ...
[ "Add", "a", "condition", "to", "the", "order", "by", "expression", ".", "It", "replaces", "any", "previously", "specified", "sort", "order", "for", "the", "property", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L3688-L3708
3,739
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(sPropertyName) { if (!sPropertyName) { return; } var oSorter = this._containsSorter(sPropertyName); if (oSorter) { this._removeFromArray(this._aSortCondition, oSorter.index); } }
javascript
function(sPropertyName) { if (!sPropertyName) { return; } var oSorter = this._containsSorter(sPropertyName); if (oSorter) { this._removeFromArray(this._aSortCondition, oSorter.index); } }
[ "function", "(", "sPropertyName", ")", "{", "if", "(", "!", "sPropertyName", ")", "{", "return", ";", "}", "var", "oSorter", "=", "this", ".", "_containsSorter", "(", "sPropertyName", ")", ";", "if", "(", "oSorter", ")", "{", "this", ".", "_removeFromArr...
Removes the order by expression for the given property name from the list of order by expression. If no order by expression with this property name exists the method does nothing. @param {string} sPropertyName The name of the property to be removed from the condition @public @function @name sap.ui.model.analytics.odat...
[ "Removes", "the", "order", "by", "expression", "for", "the", "given", "property", "name", "from", "the", "list", "of", "order", "by", "expression", ".", "If", "no", "order", "by", "expression", "with", "this", "property", "name", "exists", "the", "method", ...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L3722-L3731
3,740
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function() { var aSorterObjects = []; for (var i = -1, oCondition; (oCondition = this._aSortCondition[++i]) !== undefined;) { aSorterObjects.push(new Sorter(oCondition.property.name, oCondition.order == odata4analytics.SortOrder.Descending)); } return aSorterObjects; }
javascript
function() { var aSorterObjects = []; for (var i = -1, oCondition; (oCondition = this._aSortCondition[++i]) !== undefined;) { aSorterObjects.push(new Sorter(oCondition.property.name, oCondition.order == odata4analytics.SortOrder.Descending)); } return aSorterObjects; }
[ "function", "(", ")", "{", "var", "aSorterObjects", "=", "[", "]", ";", "for", "(", "var", "i", "=", "-", "1", ",", "oCondition", ";", "(", "oCondition", "=", "this", ".", "_aSortCondition", "[", "++", "i", "]", ")", "!==", "undefined", ";", ")", ...
Get an array of SAPUI5 Sorter objects corresponding to this expression. @returns {sap.ui.model.Sorter[]} List of sorter objects representing this expression @public @function @name sap.ui.model.analytics.odata4analytics.SortExpression#getExpressionsAsUI5SorterArray
[ "Get", "an", "array", "of", "SAPUI5", "Sorter", "objects", "corresponding", "to", "this", "expression", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L3742-L3751
3,741
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(sParameterName, sValue, sToValue) { var oParameter = this._oParameterization.findParameterByName(sParameterName); if (!oParameter) { throw "Invalid parameter name " + sParameterName; // TODO improve } // error handling if (sToValue != null) { if (!oParameter.isIntervalBoundary()) { ...
javascript
function(sParameterName, sValue, sToValue) { var oParameter = this._oParameterization.findParameterByName(sParameterName); if (!oParameter) { throw "Invalid parameter name " + sParameterName; // TODO improve } // error handling if (sToValue != null) { if (!oParameter.isIntervalBoundary()) { ...
[ "function", "(", "sParameterName", ",", "sValue", ",", "sToValue", ")", "{", "var", "oParameter", "=", "this", ".", "_oParameterization", ".", "findParameterByName", "(", "sParameterName", ")", ";", "if", "(", "!", "oParameter", ")", "{", "throw", "\"Invalid p...
Assign a value to a parameter @param {String} sParameterName Name of the parameter. In case of a range value, provide the name of the lower boundary parameter. @param {String} sValue Assigned value. Pass null to remove a value assignment. @param {String} sToValue Omit it or set it to null for single values. If set, it...
[ "Assign", "a", "value", "to", "a", "parameter" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L3898-L3941
3,742
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(sServiceRootURI) { var oDefinedParameters = this._oParameterization.getAllParameters(); for ( var sDefinedParameterName in oDefinedParameters) { // check that all parameters have a value assigned. This is also // true for those marked as optional, because the // omitted value is conveyed by s...
javascript
function(sServiceRootURI) { var oDefinedParameters = this._oParameterization.getAllParameters(); for ( var sDefinedParameterName in oDefinedParameters) { // check that all parameters have a value assigned. This is also // true for those marked as optional, because the // omitted value is conveyed by s...
[ "function", "(", "sServiceRootURI", ")", "{", "var", "oDefinedParameters", "=", "this", ".", "_oParameterization", ".", "getAllParameters", "(", ")", ";", "for", "(", "var", "sDefinedParameterName", "in", "oDefinedParameters", ")", "{", "// check that all parameters h...
Get the URI to locate the parameterization entity for the values assigned to all parameters beforehand. Notice that a value must be supplied for every parameter including those marked as optional. For optional parameters, assign the special value that the service provider uses as an "omitted" value. For example, for se...
[ "Get", "the", "URI", "to", "locate", "the", "parameterization", "entity", "for", "the", "values", "assigned", "to", "all", "parameters", "beforehand", ".", "Notice", "that", "a", "value", "must", "be", "supplied", "for", "every", "parameter", "including", "tho...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L3978-L4001
3,743
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function (sHierarchyDimensionName, bIncludeExternalKey, bIncludeText) { var oDimension; if (!sHierarchyDimensionName) { return; } // sHierarchyDimensionName is the name of a dimension property (and not e.g. of a // dimension's text property), findDimensionByName can be used instead of // find...
javascript
function (sHierarchyDimensionName, bIncludeExternalKey, bIncludeText) { var oDimension; if (!sHierarchyDimensionName) { return; } // sHierarchyDimensionName is the name of a dimension property (and not e.g. of a // dimension's text property), findDimensionByName can be used instead of // find...
[ "function", "(", "sHierarchyDimensionName", ",", "bIncludeExternalKey", ",", "bIncludeText", ")", "{", "var", "oDimension", ";", "if", "(", "!", "sHierarchyDimensionName", ")", "{", "return", ";", "}", "// sHierarchyDimensionName is the name of a dimension property (and not...
Adds a recursive hierarchy to the aggregation level. @param {string} sHierarchyDimensionName Name of dimension whose hierarchy shall be part of the aggregation level @param {boolean} bIncludeExternalKey Indicator whether or not to include the external node key (if available) in the query result @param {boolean} bInclu...
[ "Adds", "a", "recursive", "hierarchy", "to", "the", "aggregation", "level", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L4065-L4091
3,744
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(sResourcePath) { this._sResourcePath = sResourcePath; if (this._sResourcePath.indexOf("/") != 0) { throw "Missing leading / (slash) for resource path"; } if (this._oQueryResult.getParameterization()) { var iLastPathSep = sResourcePath.lastIndexOf("/"); if (iLastPathSep == -1) { thr...
javascript
function(sResourcePath) { this._sResourcePath = sResourcePath; if (this._sResourcePath.indexOf("/") != 0) { throw "Missing leading / (slash) for resource path"; } if (this._oQueryResult.getParameterization()) { var iLastPathSep = sResourcePath.lastIndexOf("/"); if (iLastPathSep == -1) { thr...
[ "function", "(", "sResourcePath", ")", "{", "this", ".", "_sResourcePath", "=", "sResourcePath", ";", "if", "(", "this", ".", "_sResourcePath", ".", "indexOf", "(", "\"/\"", ")", "!=", "0", ")", "{", "throw", "\"Missing leading / (slash) for resource path\"", ";...
Set the resource path to be considered for the OData request URI of this query request object. This method provides an alternative way to assign a path comprising a parameterization. If a path is provided, it overwrites any parameterization object that might have been specified separately. @param {string} sResourcePat...
[ "Set", "the", "resource", "path", "to", "be", "considered", "for", "the", "OData", "request", "URI", "of", "this", "query", "request", "object", ".", "This", "method", "provides", "an", "alternative", "way", "to", "assign", "a", "path", "comprising", "a", ...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L4123-L4138
3,745
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(aDimensionName) { this._oAggregationLevel = {}; if (!aDimensionName) { aDimensionName = this._oQueryResult.getAllDimensionNames(); } this.addToAggregationLevel(aDimensionName); this._oSelectedPropertyNames = null; // reset previously compiled list of selected properties }
javascript
function(aDimensionName) { this._oAggregationLevel = {}; if (!aDimensionName) { aDimensionName = this._oQueryResult.getAllDimensionNames(); } this.addToAggregationLevel(aDimensionName); this._oSelectedPropertyNames = null; // reset previously compiled list of selected properties }
[ "function", "(", "aDimensionName", ")", "{", "this", ".", "_oAggregationLevel", "=", "{", "}", ";", "if", "(", "!", "aDimensionName", ")", "{", "aDimensionName", "=", "this", ".", "_oQueryResult", ".", "getAllDimensionNames", "(", ")", ";", "}", "this", "....
Set the aggregation level for the query result request. By default, the query result will include the properties holding the keys of the given dimensions. This setting can be changed using includeDimensionKeyTextAttributes. @param aDimensionName Array of dimension names to be part of the aggregation level. If null, th...
[ "Set", "the", "aggregation", "level", "for", "the", "query", "result", "request", ".", "By", "default", "the", "query", "result", "will", "include", "the", "properties", "holding", "the", "keys", "of", "the", "given", "dimensions", ".", "This", "setting", "c...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L4180-L4187
3,746
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(aDimensionName) { if (!aDimensionName) { return; } this._oSelectedPropertyNames = null; // reset previously compiled list of selected properties for (var i = -1, sDimName; (sDimName = aDimensionName[++i]) !== undefined;) { if (!this._oQueryResult.findDimensionByName(sDimName)) { thro...
javascript
function(aDimensionName) { if (!aDimensionName) { return; } this._oSelectedPropertyNames = null; // reset previously compiled list of selected properties for (var i = -1, sDimName; (sDimName = aDimensionName[++i]) !== undefined;) { if (!this._oQueryResult.findDimensionByName(sDimName)) { thro...
[ "function", "(", "aDimensionName", ")", "{", "if", "(", "!", "aDimensionName", ")", "{", "return", ";", "}", "this", ".", "_oSelectedPropertyNames", "=", "null", ";", "// reset previously compiled list of selected properties", "for", "(", "var", "i", "=", "-", "...
Add one or more dimensions to the aggregation level @param aDimensionName Array of dimension names to be added to the already defined aggregation level. @public @function @name sap.ui.model.analytics.odata4analytics.QueryResultRequest#addToAggregationLevel
[ "Add", "one", "or", "more", "dimensions", "to", "the", "aggregation", "level" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L4200-L4217
3,747
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(aDimensionName) { if (!aDimensionName) { return; } this._oSelectedPropertyNames = null; // reset previously compiled list of selected properties for (var i = -1, sDimName; (sDimName = aDimensionName[++i]) !== undefined;) { if (!this._oQueryResult.findDimensionByName(sDimName)) { throw...
javascript
function(aDimensionName) { if (!aDimensionName) { return; } this._oSelectedPropertyNames = null; // reset previously compiled list of selected properties for (var i = -1, sDimName; (sDimName = aDimensionName[++i]) !== undefined;) { if (!this._oQueryResult.findDimensionByName(sDimName)) { throw...
[ "function", "(", "aDimensionName", ")", "{", "if", "(", "!", "aDimensionName", ")", "{", "return", ";", "}", "this", ".", "_oSelectedPropertyNames", "=", "null", ";", "// reset previously compiled list of selected properties", "for", "(", "var", "i", "=", "-", "...
Remove one or more dimensions from the aggregation level. The method also removed a potential sort expression on the dimension. @param aDimensionName Array of dimension names to be removed from the already defined aggregation level. @public @function @name sap.ui.model.analytics.odata4analytics.QueryResultRequest#remo...
[ "Remove", "one", "or", "more", "dimensions", "from", "the", "aggregation", "level", ".", "The", "method", "also", "removed", "a", "potential", "sort", "expression", "on", "the", "dimension", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L4230-L4247
3,748
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(aMeasureName) { if (!aMeasureName) { aMeasureName = this._oQueryResult.getAllMeasureNames(); } this._oSelectedPropertyNames = null; // reset previously compiled list of selected properties this._oMeasures = {}; for (var i = -1, sMeasName; (sMeasName = aMeasureName[++i]) !== undefined;) { ...
javascript
function(aMeasureName) { if (!aMeasureName) { aMeasureName = this._oQueryResult.getAllMeasureNames(); } this._oSelectedPropertyNames = null; // reset previously compiled list of selected properties this._oMeasures = {}; for (var i = -1, sMeasName; (sMeasName = aMeasureName[++i]) !== undefined;) { ...
[ "function", "(", "aMeasureName", ")", "{", "if", "(", "!", "aMeasureName", ")", "{", "aMeasureName", "=", "this", ".", "_oQueryResult", ".", "getAllMeasureNames", "(", ")", ";", "}", "this", ".", "_oSelectedPropertyNames", "=", "null", ";", "// reset previousl...
Set the measures to be included in the query result request. By default, the query result will include the properties holding the raw values of the given measures. This setting can be changed using includeMeasureRawFormattedValueUnit. @param aMeasureName Array of measure names to be part of the query result request. I...
[ "Set", "the", "measures", "to", "be", "included", "in", "the", "query", "result", "request", ".", "By", "default", "the", "query", "result", "will", "include", "the", "properties", "holding", "the", "raw", "values", "of", "the", "given", "measures", ".", "...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L4302-L4320
3,749
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(sDimensionName, bIncludeKey, bIncludeText, aAttributeName) { this._oSelectedPropertyNames = null; // reset previously compiled list of selected properties var aDimName = []; if (sDimensionName) { if (this._oAggregationLevel[sDimensionName] == undefined) { throw sDimensionName + " is not incl...
javascript
function(sDimensionName, bIncludeKey, bIncludeText, aAttributeName) { this._oSelectedPropertyNames = null; // reset previously compiled list of selected properties var aDimName = []; if (sDimensionName) { if (this._oAggregationLevel[sDimensionName] == undefined) { throw sDimensionName + " is not incl...
[ "function", "(", "sDimensionName", ",", "bIncludeKey", ",", "bIncludeText", ",", "aAttributeName", ")", "{", "this", ".", "_oSelectedPropertyNames", "=", "null", ";", "// reset previously compiled list of selected properties", "var", "aDimName", "=", "[", "]", ";", "i...
Specify which dimension components shall be included in the query result. The settings get applied to the currently defined aggregation level. @param {string} sDimensionName Name of the dimension for which the settings get applied. Specify null to apply the settings to all dimensions in the aggregation level. @param {...
[ "Specify", "which", "dimension", "components", "shall", "be", "included", "in", "the", "query", "result", ".", "The", "settings", "get", "applied", "to", "the", "currently", "defined", "aggregation", "level", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L4361-L4387
3,750
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(sMeasureName, bIncludeRawValue, bIncludeFormattedValue, bIncludeUnit) { this._oSelectedPropertyNames = null; // reset previously compiled list of selected properties var aMeasName = []; if (sMeasureName) { if (this._oMeasures[sMeasureName] == undefined) { throw sMeasureName + " is not part o...
javascript
function(sMeasureName, bIncludeRawValue, bIncludeFormattedValue, bIncludeUnit) { this._oSelectedPropertyNames = null; // reset previously compiled list of selected properties var aMeasName = []; if (sMeasureName) { if (this._oMeasures[sMeasureName] == undefined) { throw sMeasureName + " is not part o...
[ "function", "(", "sMeasureName", ",", "bIncludeRawValue", ",", "bIncludeFormattedValue", ",", "bIncludeUnit", ")", "{", "this", ".", "_oSelectedPropertyNames", "=", "null", ";", "// reset previously compiled list of selected properties", "var", "aMeasName", "=", "[", "]",...
Specify which measure components shall be included in the query result. The settings get applied to the currently set measures. @param {string} sMeasureName Name of the measure for which the settings get applied. Specify null to apply the settings to all currently set measures. @param {boolean} bIncludeRawValue Indica...
[ "Specify", "which", "measure", "components", "shall", "be", "included", "in", "the", "query", "result", ".", "The", "settings", "get", "applied", "to", "the", "currently", "set", "measures", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L4411-L4436
3,751
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(bIncludeEntityKey, bIncludeCount, bReturnNoEntities) { if (bIncludeEntityKey != null) { this._bIncludeEntityKey = bIncludeEntityKey; } if (bIncludeCount != null) { this._bIncludeCount = bIncludeCount; } if (bReturnNoEntities != null) { this._bReturnNoEntities = bReturnNoEntities; ...
javascript
function(bIncludeEntityKey, bIncludeCount, bReturnNoEntities) { if (bIncludeEntityKey != null) { this._bIncludeEntityKey = bIncludeEntityKey; } if (bIncludeCount != null) { this._bIncludeCount = bIncludeCount; } if (bReturnNoEntities != null) { this._bReturnNoEntities = bReturnNoEntities; ...
[ "function", "(", "bIncludeEntityKey", ",", "bIncludeCount", ",", "bReturnNoEntities", ")", "{", "if", "(", "bIncludeEntityKey", "!=", "null", ")", "{", "this", ".", "_bIncludeEntityKey", "=", "bIncludeEntityKey", ";", "}", "if", "(", "bIncludeCount", "!=", "null...
Set further options to be applied for the OData request to fetch the query result @param {Boolean} bIncludeEntityKey Indicates whether or not the entity key should be returned for every entry in the query result. Default is not to include it. Pass null to keep current setting. @param {Boolean} bIncludeCount Indicates ...
[ "Set", "further", "options", "to", "be", "applied", "for", "the", "OData", "request", "to", "fetch", "the", "query", "result" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L4536-L4546
3,752
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(start, end) { if (start != null && typeof start !== "number") { throw "Start value must be null or numeric"; // TODO } if (end !== null && typeof end !== "number") { throw "End value must be null or numeric"; // TODO } if (start == null) { start = 1; } if (start < 1 || start ...
javascript
function(start, end) { if (start != null && typeof start !== "number") { throw "Start value must be null or numeric"; // TODO } if (end !== null && typeof end !== "number") { throw "End value must be null or numeric"; // TODO } if (start == null) { start = 1; } if (start < 1 || start ...
[ "function", "(", "start", ",", "end", ")", "{", "if", "(", "start", "!=", "null", "&&", "typeof", "start", "!==", "\"number\"", ")", "{", "throw", "\"Start value must be null or numeric\"", ";", "// TODO", "}", "if", "(", "end", "!==", "null", "&&", "typeo...
Specify that only a page of the query result shall be returned. A page is described by its boundaries, that are row numbers for the first and last rows in the query result to be returned. @param {Number} start The first row of the query result to be returned. Numbering starts at 1. Passing null is equivalent to start ...
[ "Specify", "that", "only", "a", "page", "of", "the", "query", "result", "shall", "be", "returned", ".", "A", "page", "is", "described", "by", "its", "boundaries", "that", "are", "row", "numbers", "for", "the", "first", "and", "last", "rows", "in", "the",...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L4565-L4583
3,753
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(sServiceRootURI) { var sURI = null; if (this._sResourcePath != null) { sURI = (sServiceRootURI ? sServiceRootURI : "") + this._sResourcePath; } else if (this._oQueryResult.getParameterization()) { if (!this._oParameterizationRequest) { throw "Missing parameterization request"; } else ...
javascript
function(sServiceRootURI) { var sURI = null; if (this._sResourcePath != null) { sURI = (sServiceRootURI ? sServiceRootURI : "") + this._sResourcePath; } else if (this._oQueryResult.getParameterization()) { if (!this._oParameterizationRequest) { throw "Missing parameterization request"; } else ...
[ "function", "(", "sServiceRootURI", ")", "{", "var", "sURI", "=", "null", ";", "if", "(", "this", ".", "_sResourcePath", "!=", "null", ")", "{", "sURI", "=", "(", "sServiceRootURI", "?", "sServiceRootURI", ":", "\"\"", ")", "+", "this", ".", "_sResourceP...
Get the URI to locate the entity set for the query result. @param {String} sServiceRootURI (optional) Identifies the root of the OData service @returns {String} The resource path of the URI pointing to the entity set. It is a relative URI unless a service root is given, which would then prefixed in order to return a ...
[ "Get", "the", "URI", "to", "locate", "the", "entity", "set", "for", "the", "query", "result", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L4624-L4639
3,754
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(sServiceRootURI) { // construct resource path var sResourcePath = null; sResourcePath = (sServiceRootURI ? sServiceRootURI : "") + "/" + this._oParameter.getContainingParameterization().getEntitySet().getQName(); // check if request is compliant with filter constraints expressed in // me...
javascript
function(sServiceRootURI) { // construct resource path var sResourcePath = null; sResourcePath = (sServiceRootURI ? sServiceRootURI : "") + "/" + this._oParameter.getContainingParameterization().getEntitySet().getQName(); // check if request is compliant with filter constraints expressed in // me...
[ "function", "(", "sServiceRootURI", ")", "{", "// construct resource path", "var", "sResourcePath", "=", "null", ";", "sResourcePath", "=", "(", "sServiceRootURI", "?", "sServiceRootURI", ":", "\"\"", ")", "+", "\"/\"", "+", "this", ".", "_oParameter", ".", "get...
Get the unescaped URI to fetch the parameter value set. @param {String} sServiceRootURI (optional) Identifies the root of the OData service @returns {String} The unescaped URI that contains the OData resource path and OData system query options to express the request for the parameter value set.. @public @function @na...
[ "Get", "the", "unescaped", "URI", "to", "fetch", "the", "parameter", "value", "set", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L5100-L5143
3,755
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(bIncludeText, bIncludeAttributes) { this._oValueSetResult.text = { text : false, attributes : false }; if (bIncludeText == true) { this._oValueSetResult.text = true; } if (bIncludeAttributes == true) { this._oValueSetResult.attributes = true; } }
javascript
function(bIncludeText, bIncludeAttributes) { this._oValueSetResult.text = { text : false, attributes : false }; if (bIncludeText == true) { this._oValueSetResult.text = true; } if (bIncludeAttributes == true) { this._oValueSetResult.attributes = true; } }
[ "function", "(", "bIncludeText", ",", "bIncludeAttributes", ")", "{", "this", ".", "_oValueSetResult", ".", "text", "=", "{", "text", ":", "false", ",", "attributes", ":", "false", "}", ";", "if", "(", "bIncludeText", "==", "true", ")", "{", "this", ".",...
Specify which components of the dimension shall be included in the value set. @param {boolean} bIncludeText Indicator whether or not to include the dimension text (if available) in the value set. @param {boolean} bIncludeAttributes Indicator whether or not to include all dimension attributes (if available) in the valu...
[ "Specify", "which", "components", "of", "the", "dimension", "shall", "be", "included", "in", "the", "value", "set", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L5238-L5249
3,756
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(sServiceRootURI) { var sResourcePath = null; if (!this._bUseMasterData && this._oParameterizationRequest) { sResourcePath = this._oParameterizationRequest.getURIToParameterizationEntry(sServiceRootURI) + "/" + this._oDimension.getContainingQueryResult().getParameterization().getNavigationProper...
javascript
function(sServiceRootURI) { var sResourcePath = null; if (!this._bUseMasterData && this._oParameterizationRequest) { sResourcePath = this._oParameterizationRequest.getURIToParameterizationEntry(sServiceRootURI) + "/" + this._oDimension.getContainingQueryResult().getParameterization().getNavigationProper...
[ "function", "(", "sServiceRootURI", ")", "{", "var", "sResourcePath", "=", "null", ";", "if", "(", "!", "this", ".", "_bUseMasterData", "&&", "this", ".", "_oParameterizationRequest", ")", "{", "sResourcePath", "=", "this", ".", "_oParameterizationRequest", ".",...
Get the URI to locate the entity set for the dimension memebers. @param {String} sServiceRootURI (optional) Identifies the root of the OData service @returns {String} The resource path of the URI pointing to the entity set. It is a relative URI unless a service root is given, which would then prefixed in order to retu...
[ "Get", "the", "URI", "to", "locate", "the", "entity", "set", "for", "the", "dimension", "memebers", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L5536-L5545
3,757
SAP/openui5
src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js
function(sServiceRootURI) { // construct resource path var sResourcePath = this.getURIToDimensionMemberEntitySet(sServiceRootURI); // check if request is compliant with filter constraints expressed in // metadata this.getFilterExpression().checkValidity(); // construct query options var sSelectO...
javascript
function(sServiceRootURI) { // construct resource path var sResourcePath = this.getURIToDimensionMemberEntitySet(sServiceRootURI); // check if request is compliant with filter constraints expressed in // metadata this.getFilterExpression().checkValidity(); // construct query options var sSelectO...
[ "function", "(", "sServiceRootURI", ")", "{", "// construct resource path", "var", "sResourcePath", "=", "this", ".", "getURIToDimensionMemberEntitySet", "(", "sServiceRootURI", ")", ";", "// check if request is compliant with filter constraints expressed in", "// metadata", "thi...
Get the unescaped URI to fetch the dimension members, optionally augmented by text and attributes. @param {String} sServiceRootURI (optional) Identifies the root of the OData service @returns {String} The unescaped URI that contains the OData resource path and OData system query options to express the request for the ...
[ "Get", "the", "unescaped", "URI", "to", "fetch", "the", "dimension", "members", "optionally", "augmented", "by", "text", "and", "attributes", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/analytics/odata4analytics.js#L5561-L5631
3,758
SAP/openui5
src/sap.ui.rta/src/sap/ui/rta/util/BindingsExtractor.js
flattenBindings
function flattenBindings(oBinding, oParentDefaultModel) { var aBindings = []; var sModelName = oBinding.getMetadata().getName(); if (sModelName === "sap.ui.model.CompositeBinding") { oBinding.getBindings().forEach(function (oBinding) { aBindings = aBindings.concat(flattenBindings(oBinding, oParentDefaultM...
javascript
function flattenBindings(oBinding, oParentDefaultModel) { var aBindings = []; var sModelName = oBinding.getMetadata().getName(); if (sModelName === "sap.ui.model.CompositeBinding") { oBinding.getBindings().forEach(function (oBinding) { aBindings = aBindings.concat(flattenBindings(oBinding, oParentDefaultM...
[ "function", "flattenBindings", "(", "oBinding", ",", "oParentDefaultModel", ")", "{", "var", "aBindings", "=", "[", "]", ";", "var", "sModelName", "=", "oBinding", ".", "getMetadata", "(", ")", ".", "getName", "(", ")", ";", "if", "(", "sModelName", "===",...
Fetches all bindings for a specified binding model @param {sap.ui.model.PropertyBinding} oBinding - Binding model to get paths from @param {sap.ui.model.odata.XX.ODataModel} oParentDefaultModel - Data model (XX = '', v2, v4...) @returns {Array} - Returns a flattened array of found bindings @private
[ "Fetches", "all", "bindings", "for", "a", "specified", "binding", "model" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.rta/src/sap/ui/rta/util/BindingsExtractor.js#L137-L163
3,759
SAP/openui5
src/sap.ui.rta/src/sap/ui/rta/util/BindingsExtractor.js
flattenBindingsFromTemplate
function flattenBindingsFromTemplate(mBinding) { var aBindings = []; var aParts = mBinding.parts; // TODO: check if we need to filter bindings by modelName, relative indicator ("/") aParts.forEach(function (mPart) { aBindings.push({ parts: [mPart] }); }); return aBindings; }
javascript
function flattenBindingsFromTemplate(mBinding) { var aBindings = []; var aParts = mBinding.parts; // TODO: check if we need to filter bindings by modelName, relative indicator ("/") aParts.forEach(function (mPart) { aBindings.push({ parts: [mPart] }); }); return aBindings; }
[ "function", "flattenBindingsFromTemplate", "(", "mBinding", ")", "{", "var", "aBindings", "=", "[", "]", ";", "var", "aParts", "=", "mBinding", ".", "parts", ";", "// TODO: check if we need to filter bindings by modelName, relative indicator (\"/\")", "aParts", ".", "forE...
Fetches all bindings from template @param {object} mBinding - map of bindings from Control (mBindingsInfo) @returns {Array} - Returns a flattened array of found bindings @private
[ "Fetches", "all", "bindings", "from", "template" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.rta/src/sap/ui/rta/util/BindingsExtractor.js#L172-L184
3,760
SAP/openui5
src/sap.ui.rta/src/sap/ui/rta/util/BindingsExtractor.js
getBindingsFromProperties
function getBindingsFromProperties(oElement, oParentDefaultModel) { var aPropertiesKeys = Object.keys(oElement.getMetadata().getAllProperties()); return aPropertiesKeys // filter properties which are not bound .filter(oElement.getBinding.bind(oElement)) .reduce(function (aBindings, sPropertyName) { re...
javascript
function getBindingsFromProperties(oElement, oParentDefaultModel) { var aPropertiesKeys = Object.keys(oElement.getMetadata().getAllProperties()); return aPropertiesKeys // filter properties which are not bound .filter(oElement.getBinding.bind(oElement)) .reduce(function (aBindings, sPropertyName) { re...
[ "function", "getBindingsFromProperties", "(", "oElement", ",", "oParentDefaultModel", ")", "{", "var", "aPropertiesKeys", "=", "Object", ".", "keys", "(", "oElement", ".", "getMetadata", "(", ")", ".", "getAllProperties", "(", ")", ")", ";", "return", "aProperti...
Retrieving all bindings from all available properties for a specified element @param {sap.ui.core.Control} oElement - element to get bindings from @param {sap.ui.model.Model} oParentDefaultModel - parent model to filter irrelevant bindings @return {Array} - returns found bindings @private
[ "Retrieving", "all", "bindings", "from", "all", "available", "properties", "for", "a", "specified", "element" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.rta/src/sap/ui/rta/util/BindingsExtractor.js#L196-L210
3,761
SAP/openui5
src/sap.ui.rta/src/sap/ui/rta/util/BindingsExtractor.js
getBindingsFromTemplateProperties
function getBindingsFromTemplateProperties(oElement) { var aPropertiesKeys = Object.keys(oElement.getMetadata().getAllProperties()); return aPropertiesKeys .filter(function (sPropertyName) { return sPropertyName in oElement.mBindingInfos; }) .reduce(function (aBindings, sPropertyName) { return aBi...
javascript
function getBindingsFromTemplateProperties(oElement) { var aPropertiesKeys = Object.keys(oElement.getMetadata().getAllProperties()); return aPropertiesKeys .filter(function (sPropertyName) { return sPropertyName in oElement.mBindingInfos; }) .reduce(function (aBindings, sPropertyName) { return aBi...
[ "function", "getBindingsFromTemplateProperties", "(", "oElement", ")", "{", "var", "aPropertiesKeys", "=", "Object", ".", "keys", "(", "oElement", ".", "getMetadata", "(", ")", ".", "getAllProperties", "(", ")", ")", ";", "return", "aPropertiesKeys", ".", "filte...
Retrieving all bindings from all available properties for a specified element of template @param {sap.ui.core.Control} oElement - element to get bindings from @return {Array} - returns found bindings @private
[ "Retrieving", "all", "bindings", "from", "all", "available", "properties", "for", "a", "specified", "element", "of", "template" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.rta/src/sap/ui/rta/util/BindingsExtractor.js#L219-L233
3,762
SAP/openui5
src/sap.ui.rta/src/sap/ui/rta/util/BindingsExtractor.js
getBindingContextPath
function getBindingContextPath(oElement) { if (oElement.getBindingContext() && oElement.getBindingContext().getPath) { return oElement.getBindingContext().getPath(); } return undefined; }
javascript
function getBindingContextPath(oElement) { if (oElement.getBindingContext() && oElement.getBindingContext().getPath) { return oElement.getBindingContext().getPath(); } return undefined; }
[ "function", "getBindingContextPath", "(", "oElement", ")", "{", "if", "(", "oElement", ".", "getBindingContext", "(", ")", "&&", "oElement", ".", "getBindingContext", "(", ")", ".", "getPath", ")", "{", "return", "oElement", ".", "getBindingContext", "(", ")",...
Retrieving context binding path from element @param {sap.ui.core.Control} oElement - element to get context binding paths from @return {boolean|string} - Returns the binding context path string from element. If not available <code>false</code> is returned. @private
[ "Retrieving", "context", "binding", "path", "from", "element" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.rta/src/sap/ui/rta/util/BindingsExtractor.js#L242-L247
3,763
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ReleaseNotes.controller.js
function (sVersionA, sVersionB) { var oVA = Version(sVersionA), oVB = Version(sVersionB); return (oVA.getMajor() + "." + oVA.getMinor()) === (oVB.getMajor() + "." + oVB.getMinor()); }
javascript
function (sVersionA, sVersionB) { var oVA = Version(sVersionA), oVB = Version(sVersionB); return (oVA.getMajor() + "." + oVA.getMinor()) === (oVB.getMajor() + "." + oVB.getMinor()); }
[ "function", "(", "sVersionA", ",", "sVersionB", ")", "{", "var", "oVA", "=", "Version", "(", "sVersionA", ")", ",", "oVB", "=", "Version", "(", "sVersionB", ")", ";", "return", "(", "oVA", ".", "getMajor", "(", ")", "+", "\".\"", "+", "oVA", ".", "...
Compares 2 UI5 version strings taking into account only major and minor version info @returns {boolean}
[ "Compares", "2", "UI5", "version", "strings", "taking", "into", "account", "only", "major", "and", "minor", "version", "info" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ReleaseNotes.controller.js#L139-L144
3,764
SAP/openui5
src/sap.ui.core/src/sap/ui/core/dnd/DragAndDrop.js
addStyleClass
function addStyleClass(oElement, sStyleClass) { if (!oElement) { return; } if (oElement.addStyleClass) { oElement.addStyleClass(sStyleClass); } else { oElement.$().addClass(sStyleClass); } }
javascript
function addStyleClass(oElement, sStyleClass) { if (!oElement) { return; } if (oElement.addStyleClass) { oElement.addStyleClass(sStyleClass); } else { oElement.$().addClass(sStyleClass); } }
[ "function", "addStyleClass", "(", "oElement", ",", "sStyleClass", ")", "{", "if", "(", "!", "oElement", ")", "{", "return", ";", "}", "if", "(", "oElement", ".", "addStyleClass", ")", "{", "oElement", ".", "addStyleClass", "(", "sStyleClass", ")", ";", "...
timestamp of drag enter
[ "timestamp", "of", "drag", "enter" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/dnd/DragAndDrop.js#L36-L46
3,765
SAP/openui5
src/sap.ui.dt/src/sap/ui/dt/enablement/report/Table.js
function(sFilter) { var oModel = this._getTable().getModel(); if (oModel) { if (sFilter.length > 0) { // As UI5 does not support filtering on first level, we have to do it on our own var aData = this.getData(); var aFilteredData = aData.children.filter(function(oEntry) { if (sFilter.inde...
javascript
function(sFilter) { var oModel = this._getTable().getModel(); if (oModel) { if (sFilter.length > 0) { // As UI5 does not support filtering on first level, we have to do it on our own var aData = this.getData(); var aFilteredData = aData.children.filter(function(oEntry) { if (sFilter.inde...
[ "function", "(", "sFilter", ")", "{", "var", "oModel", "=", "this", ".", "_getTable", "(", ")", ".", "getModel", "(", ")", ";", "if", "(", "oModel", ")", "{", "if", "(", "sFilter", ".", "length", ">", "0", ")", "{", "// As UI5 does not support filterin...
Filters the table. @param {sString} sFilter The filter string. @public
[ "Filters", "the", "table", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.dt/src/sap/ui/dt/enablement/report/Table.js#L124-L143
3,766
SAP/openui5
src/sap.ui.core/src/sap/ui/thirdparty/less.js
function(isRule) { var elements, e, index = i, option, extendList, extend; if (!(isRule ? $re(/^&:extend\(/) : $re(/^:extend\(/))) { return; } do { option = null; elements = null; while (! (option = $re(/^(all)...
javascript
function(isRule) { var elements, e, index = i, option, extendList, extend; if (!(isRule ? $re(/^&:extend\(/) : $re(/^:extend\(/))) { return; } do { option = null; elements = null; while (! (option = $re(/^(all)...
[ "function", "(", "isRule", ")", "{", "var", "elements", ",", "e", ",", "index", "=", "i", ",", "option", ",", "extendList", ",", "extend", ";", "if", "(", "!", "(", "isRule", "?", "$re", "(", "/", "^&:extend\\(", "/", ")", ":", "$re", "(", "/", ...
extend syntax - used to extend selectors
[ "extend", "syntax", "-", "used", "to", "extend", "selectors" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/less.js#L1060-L1088
3,767
SAP/openui5
src/sap.ui.core/src/sap/ui/thirdparty/less.js
function () { var entities = [], e, delim; do { e = this.addition() || this.entity(); if (e) { entities.push(e); // operations do not allow keyword "/" dimension (e.g. small/20px) so we support that ...
javascript
function () { var entities = [], e, delim; do { e = this.addition() || this.entity(); if (e) { entities.push(e); // operations do not allow keyword "/" dimension (e.g. small/20px) so we support that ...
[ "function", "(", ")", "{", "var", "entities", "=", "[", "]", ",", "e", ",", "delim", ";", "do", "{", "e", "=", "this", ".", "addition", "(", ")", "||", "this", ".", "entity", "(", ")", ";", "if", "(", "e", ")", "{", "entities", ".", "push", ...
Expressions either represent mathematical operations, or white-space delimited Entities. 1px solid black @var * 2
[ "Expressions", "either", "represent", "mathematical", "operations", "or", "white", "-", "space", "delimited", "Entities", ".", "1px", "solid", "black" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/less.js#L1933-L1952
3,768
SAP/openui5
src/sap.ui.core/src/sap/ui/thirdparty/less.js
function (env, op, other) { /*jshint noempty:false */ var value = tree.operate(env, op, this.value, other.value), unit = this.unit.clone(); if (op === '+' || op === '-') { if (unit.numerator.length === 0 && unit.denominator.length === 0) { unit.numerator ...
javascript
function (env, op, other) { /*jshint noempty:false */ var value = tree.operate(env, op, this.value, other.value), unit = this.unit.clone(); if (op === '+' || op === '-') { if (unit.numerator.length === 0 && unit.denominator.length === 0) { unit.numerator ...
[ "function", "(", "env", ",", "op", ",", "other", ")", "{", "/*jshint noempty:false */", "var", "value", "=", "tree", ".", "operate", "(", "env", ",", "op", ",", "this", ".", "value", ",", "other", ".", "value", ")", ",", "unit", "=", "this", ".", "...
In an operation between two Dimensions, we default to the first Dimension's unit, so `1px + 2` will yield `3px`.
[ "In", "an", "operation", "between", "two", "Dimensions", "we", "default", "to", "the", "first", "Dimension", "s", "unit", "so", "1px", "+", "2", "will", "yield", "3px", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/less.js#L3480-L3511
3,769
SAP/openui5
src/sap.ui.core/src/sap/ui/thirdparty/less.js
function (args, env) { var lastSelector = this.selectors[this.selectors.length-1]; if (!lastSelector.evaldCondition) { return false; } if (lastSelector.condition && !lastSelector.condition.eval( new(tree.evalEnv)(env, env.frames...
javascript
function (args, env) { var lastSelector = this.selectors[this.selectors.length-1]; if (!lastSelector.evaldCondition) { return false; } if (lastSelector.condition && !lastSelector.condition.eval( new(tree.evalEnv)(env, env.frames...
[ "function", "(", "args", ",", "env", ")", "{", "var", "lastSelector", "=", "this", ".", "selectors", "[", "this", ".", "selectors", ".", "length", "-", "1", "]", ";", "if", "(", "!", "lastSelector", ".", "evaldCondition", ")", "{", "return", "false", ...
lets you call a css selector with a guard
[ "lets", "you", "call", "a", "css", "selector", "with", "a", "guard" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/less.js#L5089-L5101
3,770
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/type/Time.js
getErrorMessage
function getErrorMessage(oType) { return sap.ui.getCore().getLibraryResourceBundle().getText("EnterTime", [oType.formatValue(oDemoTime, "string")]); }
javascript
function getErrorMessage(oType) { return sap.ui.getCore().getLibraryResourceBundle().getText("EnterTime", [oType.formatValue(oDemoTime, "string")]); }
[ "function", "getErrorMessage", "(", "oType", ")", "{", "return", "sap", ".", "ui", ".", "getCore", "(", ")", ".", "getLibraryResourceBundle", "(", ")", ".", "getText", "(", "\"EnterTime\"", ",", "[", "oType", ".", "formatValue", "(", "oDemoTime", ",", "\"s...
Returns the locale-dependent error message. @param {sap.ui.model.odata.type.Time} oType the type @returns {string} the locale-dependent error message @private
[ "Returns", "the", "locale", "-", "dependent", "error", "message", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/type/Time.js#L36-L39
3,771
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/type/Time.js
toDate
function toDate(oTime) { if (!isTime(oTime)) { throw new FormatException("Illegal sap.ui.model.odata.type.Time value: " + toString(oTime)); } return new Date(oTime.ms); }
javascript
function toDate(oTime) { if (!isTime(oTime)) { throw new FormatException("Illegal sap.ui.model.odata.type.Time value: " + toString(oTime)); } return new Date(oTime.ms); }
[ "function", "toDate", "(", "oTime", ")", "{", "if", "(", "!", "isTime", "(", "oTime", ")", ")", "{", "throw", "new", "FormatException", "(", "\"Illegal sap.ui.model.odata.type.Time value: \"", "+", "toString", "(", "oTime", ")", ")", ";", "}", "return", "new...
Converts the given time object to a Date. @param {object} oTime the <code>Time</code> object @returns {Date} a Date with hour, minute, second and milliseconds set according to the time object. @throws FormatException if the time object's format does not match
[ "Converts", "the", "given", "time", "object", "to", "a", "Date", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/type/Time.js#L100-L106
3,772
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/type/Time.js
toModel
function toModel(oDate) { return { __edmType : "Edm.Time", ms : ((oDate.getUTCHours() * 60 + oDate.getUTCMinutes()) * 60 + oDate.getUTCSeconds()) * 1000 + oDate.getUTCMilliseconds() }; }
javascript
function toModel(oDate) { return { __edmType : "Edm.Time", ms : ((oDate.getUTCHours() * 60 + oDate.getUTCMinutes()) * 60 + oDate.getUTCSeconds()) * 1000 + oDate.getUTCMilliseconds() }; }
[ "function", "toModel", "(", "oDate", ")", "{", "return", "{", "__edmType", ":", "\"Edm.Time\"", ",", "ms", ":", "(", "(", "oDate", ".", "getUTCHours", "(", ")", "*", "60", "+", "oDate", ".", "getUTCMinutes", "(", ")", ")", "*", "60", "+", "oDate", ...
Converts the given Date to a time object. @param {Date} oDate the date (day, month and year are ignored) @returns {object} a time object with __edmType and ms
[ "Converts", "the", "given", "Date", "to", "a", "time", "object", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/type/Time.js#L115-L121
3,773
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js
function() { this._oDialog.close(); this._oDialog.destroy(); this._oDialog = null; if (this._oAssistantPopover) { this._oAssistantPopover.destroy(); this._oAssistantPopover = null; } if (this._oDebugPopover) { this._oDebugPopover.destroy(); this._oDebugPopover = null; } }
javascript
function() { this._oDialog.close(); this._oDialog.destroy(); this._oDialog = null; if (this._oAssistantPopover) { this._oAssistantPopover.destroy(); this._oAssistantPopover = null; } if (this._oDebugPopover) { this._oDebugPopover.destroy(); this._oDebugPopover = null; } }
[ "function", "(", ")", "{", "this", ".", "_oDialog", ".", "close", "(", ")", ";", "this", ".", "_oDialog", ".", "destroy", "(", ")", ";", "this", ".", "_oDialog", "=", "null", ";", "if", "(", "this", ".", "_oAssistantPopover", ")", "{", "this", ".",...
Closes the technical information dialog
[ "Closes", "the", "technical", "information", "dialog" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js#L90-L104
3,774
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js
function () { var oModel = this._oDialog.getModel("view"), oTree = oModel.getProperty("/DebugModules")[0], sString = "sap-ui-debug=" + this._treeHelper.toDebugInfo(oTree); this._copyToClipboard(sString, "TechInfo.DebugModulesCopyToClipboard"); }
javascript
function () { var oModel = this._oDialog.getModel("view"), oTree = oModel.getProperty("/DebugModules")[0], sString = "sap-ui-debug=" + this._treeHelper.toDebugInfo(oTree); this._copyToClipboard(sString, "TechInfo.DebugModulesCopyToClipboard"); }
[ "function", "(", ")", "{", "var", "oModel", "=", "this", ".", "_oDialog", ".", "getModel", "(", "\"view\"", ")", ",", "oTree", "=", "oModel", ".", "getProperty", "(", "\"/DebugModules\"", ")", "[", "0", "]", ",", "sString", "=", "\"sap-ui-debug=\"", "+",...
Copies the custom sap-ui-debug value to the clipboard
[ "Copies", "the", "custom", "sap", "-", "ui", "-", "debug", "value", "to", "the", "clipboard" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js#L146-L152
3,775
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js
function () { var oModel = this._oDialog.getModel("view"), oTreeResults; // early out if already open if (this._oDebugPopover && this._oDebugPopover.isOpen()) { return; } // fill and bind the tree structure from the currently loaded modules oTreeResults = this._treeHelper.toTreeModel(this._o...
javascript
function () { var oModel = this._oDialog.getModel("view"), oTreeResults; // early out if already open if (this._oDebugPopover && this._oDebugPopover.isOpen()) { return; } // fill and bind the tree structure from the currently loaded modules oTreeResults = this._treeHelper.toTreeModel(this._o...
[ "function", "(", ")", "{", "var", "oModel", "=", "this", ".", "_oDialog", ".", "getModel", "(", "\"view\"", ")", ",", "oTreeResults", ";", "// early out if already open", "if", "(", "this", ".", "_oDebugPopover", "&&", "this", ".", "_oDebugPopover", ".", "is...
Opens a dialog with debug package selection options
[ "Opens", "a", "dialog", "with", "debug", "package", "selection", "options" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js#L171-L204
3,776
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js
function () { var oModel = this._oDialog.getModel("view"), oControl = this._getControl("customDebugValue", this._DEBUG_MODULES_ID), oTreeResults; try { this._validateCustomDebugValue(oControl.getValue()); } catch (oException) { this._showError(oControl, oException.message); return; } ...
javascript
function () { var oModel = this._oDialog.getModel("view"), oControl = this._getControl("customDebugValue", this._DEBUG_MODULES_ID), oTreeResults; try { this._validateCustomDebugValue(oControl.getValue()); } catch (oException) { this._showError(oControl, oException.message); return; } ...
[ "function", "(", ")", "{", "var", "oModel", "=", "this", ".", "_oDialog", ".", "getModel", "(", "\"view\"", ")", ",", "oControl", "=", "this", ".", "_getControl", "(", "\"customDebugValue\"", ",", "this", ".", "_DEBUG_MODULES_ID", ")", ",", "oTreeResults", ...
Sets the validated value from the input field and re-evaluates the module tree according to the input
[ "Sets", "the", "validated", "value", "from", "the", "input", "field", "and", "re", "-", "evaluates", "the", "module", "tree", "according", "to", "the", "input" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js#L245-L274
3,777
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js
function () { var oModel = this._oDialog.getModel("view"), oTreeData = oModel.getProperty("/DebugModules")[0]; this._treeHelper.recursiveSelect(oTreeData, false); this._updateTreeInfos(); }
javascript
function () { var oModel = this._oDialog.getModel("view"), oTreeData = oModel.getProperty("/DebugModules")[0]; this._treeHelper.recursiveSelect(oTreeData, false); this._updateTreeInfos(); }
[ "function", "(", ")", "{", "var", "oModel", "=", "this", ".", "_oDialog", ".", "getModel", "(", "\"view\"", ")", ",", "oTreeData", "=", "oModel", ".", "getProperty", "(", "\"/DebugModules\"", ")", "[", "0", "]", ";", "this", ".", "_treeHelper", ".", "r...
Resets the debug module tree
[ "Resets", "the", "debug", "module", "tree" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js#L279-L285
3,778
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js
function () { var oSupport = Support.getStub(); if (oSupport.getType() != Support.StubType.APPLICATION) { return; } oSupport.openSupportTool(); this.close(); }
javascript
function () { var oSupport = Support.getStub(); if (oSupport.getType() != Support.StubType.APPLICATION) { return; } oSupport.openSupportTool(); this.close(); }
[ "function", "(", ")", "{", "var", "oSupport", "=", "Support", ".", "getStub", "(", ")", ";", "if", "(", "oSupport", ".", "getType", "(", ")", "!=", "Support", ".", "StubType", ".", "APPLICATION", ")", "{", "return", ";", "}", "oSupport", ".", "openSu...
Opens the diagnostics window
[ "Opens", "the", "diagnostics", "window" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js#L290-L297
3,779
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js
function () { var oModel = this._oDialog.getModel("view"), sSelectedLocation = oModel.getProperty("/SelectedLocation"), sStandardUrl = oModel.getProperty("/StandardBootstrapURL"), sCustomUrl = oModel.getProperty("/CustomBootstrapURL"), aSupportedUrls = [], sBootstrapURL; oModel.getProperty("/...
javascript
function () { var oModel = this._oDialog.getModel("view"), sSelectedLocation = oModel.getProperty("/SelectedLocation"), sStandardUrl = oModel.getProperty("/StandardBootstrapURL"), sCustomUrl = oModel.getProperty("/CustomBootstrapURL"), aSupportedUrls = [], sBootstrapURL; oModel.getProperty("/...
[ "function", "(", ")", "{", "var", "oModel", "=", "this", ".", "_oDialog", ".", "getModel", "(", "\"view\"", ")", ",", "sSelectedLocation", "=", "oModel", ".", "getProperty", "(", "\"/SelectedLocation\"", ")", ",", "sStandardUrl", "=", "oModel", ".", "getProp...
Opens the support assistant with the given configuration
[ "Opens", "the", "support", "assistant", "with", "the", "given", "configuration" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js#L302-L335
3,780
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js
function (oEvent) { var sValue = oEvent.getParameter("selectedItem").getKey(), oControl = oEvent.getSource(); this._storage.put(this._LOCAL_STORAGE_KEYS.STANDARD_URL, sValue); this._resetValueState(oControl); this._pingUrl(sValue, oControl) .then(function success() { oControl.setValueState("Suc...
javascript
function (oEvent) { var sValue = oEvent.getParameter("selectedItem").getKey(), oControl = oEvent.getSource(); this._storage.put(this._LOCAL_STORAGE_KEYS.STANDARD_URL, sValue); this._resetValueState(oControl); this._pingUrl(sValue, oControl) .then(function success() { oControl.setValueState("Suc...
[ "function", "(", "oEvent", ")", "{", "var", "sValue", "=", "oEvent", ".", "getParameter", "(", "\"selectedItem\"", ")", ".", "getKey", "(", ")", ",", "oControl", "=", "oEvent", ".", "getSource", "(", ")", ";", "this", ".", "_storage", ".", "put", "(", ...
Writes the custom bootstrap URL to local storage @param {sap.ui.base.Event} oEvent The select change event
[ "Writes", "the", "custom", "bootstrap", "URL", "to", "local", "storage" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js#L350-L363
3,781
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js
function (oEvent) { var sValue = oEvent.getParameter("value"), oControl = oEvent.getSource(); this._storage.put(this._LOCAL_STORAGE_KEYS.CUSTOM_URL, sValue); try { this._validateValue(oControl.getValue()); this._resetValueState(oControl); } catch (oException) { this._showError(oControl, oExc...
javascript
function (oEvent) { var sValue = oEvent.getParameter("value"), oControl = oEvent.getSource(); this._storage.put(this._LOCAL_STORAGE_KEYS.CUSTOM_URL, sValue); try { this._validateValue(oControl.getValue()); this._resetValueState(oControl); } catch (oException) { this._showError(oControl, oExc...
[ "function", "(", "oEvent", ")", "{", "var", "sValue", "=", "oEvent", ".", "getParameter", "(", "\"value\"", ")", ",", "oControl", "=", "oEvent", ".", "getSource", "(", ")", ";", "this", ".", "_storage", ".", "put", "(", "this", ".", "_LOCAL_STORAGE_KEYS"...
Handler for liveChange event fired by custom bootstrap URL. @param oEvent
[ "Handler", "for", "liveChange", "event", "fired", "by", "custom", "bootstrap", "URL", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js#L369-L379
3,782
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js
function (oEvent) { // early out if already open if (this._oAssistantPopover && this._oAssistantPopover.isOpen()) { return; } // create dialog lazily if (!this._oAssistantPopover) { this._oAssistantPopover = sap.ui.xmlfragment(this._SUPPORT_ASSISTANT_POPOVER_ID, "sap.ui.core.support.techinfo.Tech...
javascript
function (oEvent) { // early out if already open if (this._oAssistantPopover && this._oAssistantPopover.isOpen()) { return; } // create dialog lazily if (!this._oAssistantPopover) { this._oAssistantPopover = sap.ui.xmlfragment(this._SUPPORT_ASSISTANT_POPOVER_ID, "sap.ui.core.support.techinfo.Tech...
[ "function", "(", "oEvent", ")", "{", "// early out if already open", "if", "(", "this", ".", "_oAssistantPopover", "&&", "this", ".", "_oAssistantPopover", ".", "isOpen", "(", ")", ")", "{", "return", ";", "}", "// create dialog lazily", "if", "(", "!", "this"...
Opens a popover with extended configuration options @param {sap.ui.base.Event} oEvent The button press event
[ "Opens", "a", "popover", "with", "extended", "configuration", "options" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js#L394-L430
3,783
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js
function (sBootstrapURL) { var oModel = this._oDialog.getModel("view"), oSettings = { // start the application in support mode support: "true", // open in new window window: oModel.getProperty("/OpenSupportAssistantInNewWindow") }; this._loadAssistant(sBootstrapURL, oSettings); }
javascript
function (sBootstrapURL) { var oModel = this._oDialog.getModel("view"), oSettings = { // start the application in support mode support: "true", // open in new window window: oModel.getProperty("/OpenSupportAssistantInNewWindow") }; this._loadAssistant(sBootstrapURL, oSettings); }
[ "function", "(", "sBootstrapURL", ")", "{", "var", "oModel", "=", "this", ".", "_oDialog", ".", "getModel", "(", "\"view\"", ")", ",", "oSettings", "=", "{", "// start the application in support mode", "support", ":", "\"true\"", ",", "// open in new window", "win...
Start the support assistant with the given bootstrap URL By default, it is started with the current version for >=1.48 release or SAPUI5 CDN version for lower releases. This behavior can be overridden by specifying a custom bootstrap URL where the support assistant is loaded from @param {string} [sBootstrapURL] If spec...
[ "Start", "the", "support", "assistant", "with", "the", "given", "bootstrap", "URL", "By", "default", "it", "is", "started", "with", "the", "current", "version", "for", ">", "=", "1", ".", "48", "release", "or", "SAPUI5", "CDN", "version", "for", "lower", ...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js#L511-L521
3,784
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js
function (sUrl, oSettings) { this._pingUrl(sUrl) .then(function success() { this.close(); var aSettings = [oSettings.support]; sap.ui.getCore().loadLibrary("sap.ui.support", { async: true, url: sUrl }) .then(function () { if (oSettings.window) { aSettings.push("window"); ...
javascript
function (sUrl, oSettings) { this._pingUrl(sUrl) .then(function success() { this.close(); var aSettings = [oSettings.support]; sap.ui.getCore().loadLibrary("sap.ui.support", { async: true, url: sUrl }) .then(function () { if (oSettings.window) { aSettings.push("window"); ...
[ "function", "(", "sUrl", ",", "oSettings", ")", "{", "this", ".", "_pingUrl", "(", "sUrl", ")", ".", "then", "(", "function", "success", "(", ")", "{", "this", ".", "close", "(", ")", ";", "var", "aSettings", "=", "[", "oSettings", ".", "support", ...
Try to load Support Assistant with passed sUrl and aParams by making ajax request to Bootstrap.js. If Bootsrap.js is missing error occurs in the console otherwise starts Support Assistant. @param {string} sUrl Url where to load Support Assistant from. @param {object} oSettings Parameters that needs to be passed to Supp...
[ "Try", "to", "load", "Support", "Assistant", "with", "passed", "sUrl", "and", "aParams", "by", "making", "ajax", "request", "to", "Bootstrap", ".", "js", ".", "If", "Bootsrap", ".", "js", "is", "missing", "error", "occurs", "in", "the", "console", "otherwi...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js#L530-L568
3,785
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js
function () { // create i18n model var oI18nModel = new ResourceModel({ bundleName: "sap.ui.core.messagebundle" }); this._oDialog.setModel(oI18nModel, "i18n"); this._oDialog.setModel(this._createViewModel(), "view"); // set compact/cozy style class this._oDialog.addStyleClass(this._getContentD...
javascript
function () { // create i18n model var oI18nModel = new ResourceModel({ bundleName: "sap.ui.core.messagebundle" }); this._oDialog.setModel(oI18nModel, "i18n"); this._oDialog.setModel(this._createViewModel(), "view"); // set compact/cozy style class this._oDialog.addStyleClass(this._getContentD...
[ "function", "(", ")", "{", "// create i18n model", "var", "oI18nModel", "=", "new", "ResourceModel", "(", "{", "bundleName", ":", "\"sap.ui.core.messagebundle\"", "}", ")", ";", "this", ".", "_oDialog", ".", "setModel", "(", "oI18nModel", ",", "\"i18n\"", ")", ...
Initalizes the technical information dialog @private
[ "Initalizes", "the", "technical", "information", "dialog" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js#L574-L584
3,786
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js
function () { var oVersion = sap.ui.getCore().getConfiguration().getVersion(); if (oVersion && oVersion.compareTo(this._MIN_UI5VERSION_SUPPORT_ASSISTANT) >= 0) { return true; } return false; }
javascript
function () { var oVersion = sap.ui.getCore().getConfiguration().getVersion(); if (oVersion && oVersion.compareTo(this._MIN_UI5VERSION_SUPPORT_ASSISTANT) >= 0) { return true; } return false; }
[ "function", "(", ")", "{", "var", "oVersion", "=", "sap", ".", "ui", ".", "getCore", "(", ")", ".", "getConfiguration", "(", ")", ".", "getVersion", "(", ")", ";", "if", "(", "oVersion", "&&", "oVersion", ".", "compareTo", "(", "this", ".", "_MIN_UI5...
Checks if current version of UI5 is equal or higher than minimum UI5 version that Support Assistant is available at. @returns {boolean} @private
[ "Checks", "if", "current", "version", "of", "UI5", "is", "equal", "or", "higher", "than", "minimum", "UI5", "version", "that", "Support", "Assistant", "is", "available", "at", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js#L703-L709
3,787
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js
function (sBuildTimestamp) { var oDateFormat = sap.ui.core.format.DateFormat.getDateInstance({pattern: "dd.MM.yyyy HH:mm:ss"}), sBuildDate = oDateFormat.format(this._convertBuildDate(sBuildTimestamp)); return this._getText("TechInfo.VersionBuildTime.Text", sBuildDate); }
javascript
function (sBuildTimestamp) { var oDateFormat = sap.ui.core.format.DateFormat.getDateInstance({pattern: "dd.MM.yyyy HH:mm:ss"}), sBuildDate = oDateFormat.format(this._convertBuildDate(sBuildTimestamp)); return this._getText("TechInfo.VersionBuildTime.Text", sBuildDate); }
[ "function", "(", "sBuildTimestamp", ")", "{", "var", "oDateFormat", "=", "sap", ".", "ui", ".", "core", ".", "format", ".", "DateFormat", ".", "getDateInstance", "(", "{", "pattern", ":", "\"dd.MM.yyyy HH:mm:ss\"", "}", ")", ",", "sBuildDate", "=", "oDateFor...
Generates formatted and localized text from passed timestamp @param {string} sBuildTimestamp Timestamp as string @private
[ "Generates", "formatted", "and", "localized", "text", "from", "passed", "timestamp" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js#L716-L721
3,788
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js
function (sValue) { var oModel = this._oDialog.getModel("view"), oRadioBtnStandart = this._getControl("standard", this._SUPPORT_ASSISTANT_POPOVER_ID), oRadioBtnCustom = this._getControl("custom", this._SUPPORT_ASSISTANT_POPOVER_ID), oCustom = this._getControl("customBootstrapURL", this._SUPPORT_ASSISTANT...
javascript
function (sValue) { var oModel = this._oDialog.getModel("view"), oRadioBtnStandart = this._getControl("standard", this._SUPPORT_ASSISTANT_POPOVER_ID), oRadioBtnCustom = this._getControl("custom", this._SUPPORT_ASSISTANT_POPOVER_ID), oCustom = this._getControl("customBootstrapURL", this._SUPPORT_ASSISTANT...
[ "function", "(", "sValue", ")", "{", "var", "oModel", "=", "this", ".", "_oDialog", ".", "getModel", "(", "\"view\"", ")", ",", "oRadioBtnStandart", "=", "this", ".", "_getControl", "(", "\"standard\"", ",", "this", ".", "_SUPPORT_ASSISTANT_POPOVER_ID", ")", ...
Sets active location and toggle between "standard" and "custom" locations. Saves last active location. @param {string} sValue Possible values "standard" or "custom" @private
[ "Sets", "active", "location", "and", "toggle", "between", "standard", "and", "custom", "locations", ".", "Saves", "last", "active", "location", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js#L729-L755
3,789
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js
function (fnConfirm, fnCancel) { MessageBox.confirm( this._getText("TechInfo.DebugSources.ConfirmMessage"), { title: this._getText("TechInfo.DebugSources.ConfirmTitle"), onClose: function (oAction) { if (oAction === MessageBox.Action.OK) { fnConfirm(); } else if (fnCancel) { f...
javascript
function (fnConfirm, fnCancel) { MessageBox.confirm( this._getText("TechInfo.DebugSources.ConfirmMessage"), { title: this._getText("TechInfo.DebugSources.ConfirmTitle"), onClose: function (oAction) { if (oAction === MessageBox.Action.OK) { fnConfirm(); } else if (fnCancel) { f...
[ "function", "(", "fnConfirm", ",", "fnCancel", ")", "{", "MessageBox", ".", "confirm", "(", "this", ".", "_getText", "(", "\"TechInfo.DebugSources.ConfirmMessage\"", ")", ",", "{", "title", ":", "this", ".", "_getText", "(", "\"TechInfo.DebugSources.ConfirmTitle\"",...
Called after CANCEL action is triggered @name cancelActionCallback @function @private Displays a confirmation message to reload the current page @param {confirmActionCallback} fnConfirm Callback function to be executed after the "ok" action is triggered @param {cancelActionCallback} [fnCancel] Callback function to be...
[ "Called", "after", "CANCEL", "action", "is", "triggered" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js#L777-L790
3,790
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js
function () { var oModel = this._oDialog.getModel("view"), sSelectedLocation = oModel.getProperty("/SelectedLocation"), oControl; if (sSelectedLocation === "custom") { oControl = this._getControl("customBootstrapURL",this._SUPPORT_ASSISTANT_POPOVER_ID); var sValue = oControl.getValue(); try {...
javascript
function () { var oModel = this._oDialog.getModel("view"), sSelectedLocation = oModel.getProperty("/SelectedLocation"), oControl; if (sSelectedLocation === "custom") { oControl = this._getControl("customBootstrapURL",this._SUPPORT_ASSISTANT_POPOVER_ID); var sValue = oControl.getValue(); try {...
[ "function", "(", ")", "{", "var", "oModel", "=", "this", ".", "_oDialog", ".", "getModel", "(", "\"view\"", ")", ",", "sSelectedLocation", "=", "oModel", ".", "getProperty", "(", "\"/SelectedLocation\"", ")", ",", "oControl", ";", "if", "(", "sSelectedLocati...
Handler for onAfterOpen event from popover @private
[ "Handler", "for", "onAfterOpen", "event", "from", "popover" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js#L795-L820
3,791
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js
function (sControlId, sFragmentId) { if (sFragmentId) { return sap.ui.getCore().byId(sFragmentId + "--" + sControlId); } return sap.ui.getCore().byId(sControlId); }
javascript
function (sControlId, sFragmentId) { if (sFragmentId) { return sap.ui.getCore().byId(sFragmentId + "--" + sControlId); } return sap.ui.getCore().byId(sControlId); }
[ "function", "(", "sControlId", ",", "sFragmentId", ")", "{", "if", "(", "sFragmentId", ")", "{", "return", "sap", ".", "ui", ".", "getCore", "(", ")", ".", "byId", "(", "sFragmentId", "+", "\"--\"", "+", "sControlId", ")", ";", "}", "return", "sap", ...
Gets the instance of the control. If context such as fragment is provided the function will search for id in provided context. If context is not provided the standard @param {string} sControlId The id of the searched control. @param {string} sFragmentId The id of the context where the searched control is located. @priv...
[ "Gets", "the", "instance", "of", "the", "control", ".", "If", "context", "such", "as", "fragment", "is", "provided", "the", "function", "will", "search", "for", "id", "in", "provided", "context", ".", "If", "context", "is", "not", "provided", "the", "stand...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js#L863-L868
3,792
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js
function(sParameter, vValue) { // fetch current parameters from URL var sSearch = window.location.search, sURLParameter = sParameter + "=" + vValue; /// replace or append the new URL parameter if (sSearch && sSearch !== "?") { var oRegExp = new RegExp("(?:^|\\?|&)" + sParameter + "=[^&]+"); if ...
javascript
function(sParameter, vValue) { // fetch current parameters from URL var sSearch = window.location.search, sURLParameter = sParameter + "=" + vValue; /// replace or append the new URL parameter if (sSearch && sSearch !== "?") { var oRegExp = new RegExp("(?:^|\\?|&)" + sParameter + "=[^&]+"); if ...
[ "function", "(", "sParameter", ",", "vValue", ")", "{", "// fetch current parameters from URL", "var", "sSearch", "=", "window", ".", "location", ".", "search", ",", "sURLParameter", "=", "sParameter", "+", "\"=\"", "+", "vValue", ";", "/// replace or append the new...
Replaces the URL parameter and triggers a reload of the current page @param {string} sParameter Parameter name @param {any} vValue Parameter value @private
[ "Replaces", "the", "URL", "parameter", "and", "triggers", "a", "reload", "of", "the", "current", "page" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js#L876-L895
3,793
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js
function () { var oModel = this._oDialog.getModel("view"), oTreeData = oModel.getProperty("/DebugModules")[0], sDisplayCount; oModel.setProperty("/CustomDebugMode", this._treeHelper.toDebugInfo(oTreeData)); oModel.setProperty("/DebugModuleSelectionCount", this._treeHelper.getSelectionCount(oTreeData));...
javascript
function () { var oModel = this._oDialog.getModel("view"), oTreeData = oModel.getProperty("/DebugModules")[0], sDisplayCount; oModel.setProperty("/CustomDebugMode", this._treeHelper.toDebugInfo(oTreeData)); oModel.setProperty("/DebugModuleSelectionCount", this._treeHelper.getSelectionCount(oTreeData));...
[ "function", "(", ")", "{", "var", "oModel", "=", "this", ".", "_oDialog", ".", "getModel", "(", "\"view\"", ")", ",", "oTreeData", "=", "oModel", ".", "getProperty", "(", "\"/DebugModules\"", ")", "[", "0", "]", ",", "sDisplayCount", ";", "oModel", ".", ...
Updates the debug mode input field and the number of selected debug modules @private
[ "Updates", "the", "debug", "mode", "input", "field", "and", "the", "number", "of", "selected", "debug", "modules" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/TechnicalInfo.js#L921-L929
3,794
SAP/openui5
src/sap.ui.layout/src/sap/ui/layout/Splitter.js
_preventTextSelection
function _preventTextSelection(bTouch) { var fnPreventSelection = function(oEvent) { oEvent.preventDefault(); }; var fnAllowSelection = null; fnAllowSelection = function() { document.removeEventListener("touchend", fnAllowSelection); document.removeEventListener("touchmove", fnPreventSelection); do...
javascript
function _preventTextSelection(bTouch) { var fnPreventSelection = function(oEvent) { oEvent.preventDefault(); }; var fnAllowSelection = null; fnAllowSelection = function() { document.removeEventListener("touchend", fnAllowSelection); document.removeEventListener("touchmove", fnPreventSelection); do...
[ "function", "_preventTextSelection", "(", "bTouch", ")", "{", "var", "fnPreventSelection", "=", "function", "(", "oEvent", ")", "{", "oEvent", ".", "preventDefault", "(", ")", ";", "}", ";", "var", "fnAllowSelection", "=", "null", ";", "fnAllowSelection", "=",...
Prevents the selection of text while the mouse is moving when pressed @param {boolean} [bTouch] If set to true, touch events instead of mouse events are captured
[ "Prevents", "the", "selection", "of", "text", "while", "the", "mouse", "is", "moving", "when", "pressed" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.layout/src/sap/ui/layout/Splitter.js#L1076-L1096
3,795
SAP/openui5
src/sap.ui.layout/src/sap/ui/layout/Splitter.js
_ensureLayoutData
function _ensureLayoutData(oContent) { var oLd = oContent.getLayoutData(); // Make sure LayoutData is set on the content // But this approach has the advantage that "compatible" LayoutData can be used. if (oLd && (!oLd.getResizable || !oLd.getSize || !oLd.getMinSize)) { Log.warning( "Content \"" + oConte...
javascript
function _ensureLayoutData(oContent) { var oLd = oContent.getLayoutData(); // Make sure LayoutData is set on the content // But this approach has the advantage that "compatible" LayoutData can be used. if (oLd && (!oLd.getResizable || !oLd.getSize || !oLd.getMinSize)) { Log.warning( "Content \"" + oConte...
[ "function", "_ensureLayoutData", "(", "oContent", ")", "{", "var", "oLd", "=", "oContent", ".", "getLayoutData", "(", ")", ";", "// Make sure LayoutData is set on the content", "// But this approach has the advantage that \"compatible\" LayoutData can be used.", "if", "(", "oLd...
Makes sure the LayoutData for the given control is set and compatible. In case nothing is set, a default sap.ui.layout.SplitterLayoutData is set on the Element @param {sap.ui.core.Element} [oContent] The Element for which the existance of LayoutData should be ensured @private
[ "Makes", "sure", "the", "LayoutData", "for", "the", "given", "control", "is", "set", "and", "compatible", ".", "In", "case", "nothing", "is", "set", "a", "default", "sap", ".", "ui", ".", "layout", ".", "SplitterLayoutData", "is", "set", "on", "the", "El...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.layout/src/sap/ui/layout/Splitter.js#L1105-L1119
3,796
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/ODataUtils.js
function (vValue1, vValue2, vEdmType) { if (vEdmType === true || vEdmType === "Decimal") { return BaseODataUtils.compare(vValue1, vValue2, true); } if (vEdmType === "DateTime") { return BaseODataUtils.compare( ODataUtils.parseDateTimeOffset(vValue1), ODataUtils.parseDateTimeOffset(vV...
javascript
function (vValue1, vValue2, vEdmType) { if (vEdmType === true || vEdmType === "Decimal") { return BaseODataUtils.compare(vValue1, vValue2, true); } if (vEdmType === "DateTime") { return BaseODataUtils.compare( ODataUtils.parseDateTimeOffset(vValue1), ODataUtils.parseDateTimeOffset(vV...
[ "function", "(", "vValue1", ",", "vValue2", ",", "vEdmType", ")", "{", "if", "(", "vEdmType", "===", "true", "||", "vEdmType", "===", "\"Decimal\"", ")", "{", "return", "BaseODataUtils", ".", "compare", "(", "vValue1", ",", "vValue2", ",", "true", ")", "...
Compares the given OData values. @param {any} vValue1 The first value to compare @param {any} vValue2 The second value to compare @param {boolean|string} [vEdmType] If <code>true</code> or "Decimal", the string values <code>vValue1</code> and <code>vValue2</code> are assumed to be valid "Edm.Decimal" or "Edm.Int64" va...
[ "Compares", "the", "given", "OData", "values", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/ODataUtils.js#L55-L65
3,797
SAP/openui5
src/sap.m/src/sap/m/IconTabBarDragAndDropUtil.js
function (context, sDropPosition, oDraggedControl, oDroppedControl, bIgnoreRTL) { var iBeginDragIndex = context.indexOfItem(oDraggedControl), iDropIndex = context.indexOfItem(oDroppedControl), $DraggedControl = oDraggedControl.$(), $DroppedControl = oDroppedControl.$(), iAggregationDropIndex = 0...
javascript
function (context, sDropPosition, oDraggedControl, oDroppedControl, bIgnoreRTL) { var iBeginDragIndex = context.indexOfItem(oDraggedControl), iDropIndex = context.indexOfItem(oDroppedControl), $DraggedControl = oDraggedControl.$(), $DroppedControl = oDroppedControl.$(), iAggregationDropIndex = 0...
[ "function", "(", "context", ",", "sDropPosition", ",", "oDraggedControl", ",", "oDroppedControl", ",", "bIgnoreRTL", ")", "{", "var", "iBeginDragIndex", "=", "context", ".", "indexOfItem", "(", "oDraggedControl", ")", ",", "iDropIndex", "=", "context", ".", "ind...
Handles drop event. @param {object} context from which context function is called (sap.m.IconTabHeader or sap.m.IconTabSelectList) @param {String} sDropPosition comes from drop event, it can be "Before" or "After" @param {object} oDraggedControl control that is being dragged @param {object} oDroppedControl control that...
[ "Handles", "drop", "event", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/IconTabBarDragAndDropUtil.js#L47-L76
3,798
SAP/openui5
src/sap.m/src/sap/m/IconTabBarDragAndDropUtil.js
function () { var oIconTabHeaderItems = this.getItems(), iAriaPointSet = 1, oItemDom; oIconTabHeaderItems.forEach(function (oItem) { oItemDom = oItem.getDomRef(); if (oItemDom && oItemDom.getAttribute("aria-posinset") !== null) { oItemDom.setAttribute("aria-posinset", iAriaPointSet++)...
javascript
function () { var oIconTabHeaderItems = this.getItems(), iAriaPointSet = 1, oItemDom; oIconTabHeaderItems.forEach(function (oItem) { oItemDom = oItem.getDomRef(); if (oItemDom && oItemDom.getAttribute("aria-posinset") !== null) { oItemDom.setAttribute("aria-posinset", iAriaPointSet++)...
[ "function", "(", ")", "{", "var", "oIconTabHeaderItems", "=", "this", ".", "getItems", "(", ")", ",", "iAriaPointSet", "=", "1", ",", "oItemDom", ";", "oIconTabHeaderItems", ".", "forEach", "(", "function", "(", "oItem", ")", "{", "oItemDom", "=", "oItem",...
Recalculates and sets the correct aria-posinset attribute value. @private
[ "Recalculates", "and", "sets", "the", "correct", "aria", "-", "posinset", "attribute", "value", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/IconTabBarDragAndDropUtil.js#L82-L93
3,799
SAP/openui5
src/sap.m/src/sap/m/IconTabBarDragAndDropUtil.js
function (oDraggedControl, iDropIndex) { this.removeAggregation('items', oDraggedControl, true); this.insertAggregation('items', oDraggedControl, iDropIndex, true); IconTabBarDragAndDropUtil._updateAccessibilityInfo.call(this); }
javascript
function (oDraggedControl, iDropIndex) { this.removeAggregation('items', oDraggedControl, true); this.insertAggregation('items', oDraggedControl, iDropIndex, true); IconTabBarDragAndDropUtil._updateAccessibilityInfo.call(this); }
[ "function", "(", "oDraggedControl", ",", "iDropIndex", ")", "{", "this", ".", "removeAggregation", "(", "'items'", ",", "oDraggedControl", ",", "true", ")", ";", "this", ".", "insertAggregation", "(", "'items'", ",", "oDraggedControl", ",", "iDropIndex", ",", ...
Handles aggregation of control after drag and drop. @param {object} oDraggedControl Dragged control @param {number} iDropIndex Drop index @private
[ "Handles", "aggregation", "of", "control", "after", "drag", "and", "drop", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/IconTabBarDragAndDropUtil.js#L101-L105