This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App.api.call(‘create’, App.api.buildURL(null, ‘bulk’) , | |
{ | |
requests : | |
[{ | |
url: “/v10/Accounts”, method: “GET” | |
}] | |
}, | |
{ | |
success: function (data) { console.log(data)} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
initDashlet: function (options) { | |
this.context.on('eventoPersonalizado', function (link) { | |
console.log("Mensaje desde dashlet uno"); | |
console.log(link); | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setButtonStates:function(state){ | |
this._super("setButtonStates",[state]); | |
var $saveButtonEl=this.buttons[this.saveButtonName]; | |
if($saveButtonEl){ | |
switch(state){ | |
case this.STATE.CREATE: | |
case this.STATE.SELECT: | |
$saveButtonEl.getFieldElement().text(app.lang.get('LBL_SAVE_BUTTON_LABEL',this.module)); | |
break; | |
case this.STATE.DUPLICATE: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var queryToObject = function(q) { | |
var col, i, r, _i, _len, _ref, _ref2, _results; | |
_results = []; | |
for (i = 0, _ref = q.ROWCOUNT; 0 <= _ref ? i < _ref : i > _ref; 0 <= _ref ? i++ : i--) { | |
r = {}; | |
_ref2 = q.COLUMNS; | |
for (_i = 0, _len = _ref2.length; _i < _len; _i++) { | |
col = _ref2[_i]; | |
r[col.toLowerCase()] = q.DATA[col][i]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- Read data from two datasource tables. ---> | |
<cfquery | |
name="iae1" datasource="escolar_db13"> | |
select * from v_rc_iae_pr1 | |
</cfquery> | |
<cfscript> | |
//Use an absolute path for the files. ---> | |
theDir=GetDirectoryFromPath(GetCurrentTemplatePath()); | |
theFile=theDir & "exportData.xls"; | |
//Create two empty ColdFusion spreadsheet objects. ---> |