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
// source https://www.ibm.com/developerworks/community/blogs/ideallyradical/entry/removing-invalid-characters-from-xml?lang=es | |
function cleanXML_Invalid(input) { | |
tab = "\u0009" | |
newline = "\u000A" | |
carriagereturn = "\u000D" | |
group1 = "\u0020-\uD7FF" | |
group2 = "\uE000-\uFFFD" | |
group3 = "\u10000-\u10FFFF" | |
input = input.replace("^[" + tab + newline + carriagereturn + group1 + group2 + group3 + "]", "") |
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
frappe.query_reports["Groups"] = { | |
"filters": [ | |
{ | |
"fieldname":"family", | |
"label": __("Family"), | |
"fieldtype": "Link", | |
"options": "Family", | |
"default": "" | |
} | |
], |
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
{ | |
"uuid":"b6db8bd0-44cc-4c47-9565-e202fe6a940e", | |
“runName”: “PRE_DIAGNOSTICO_AUTOM_SIGMA_VPN_MPLS”, | |
“logLevel”: “DEBUG”, | |
"inputs": | |
{ | |
"SigmaIncidencia" : "0241886", | |
"SigmaAdmin" : "20150102-SITEMPLS-0000392578", | |
"SigmaCode" : "3", | |
"SigmaCodeDescr" : "Avería en Linea de Respaldo", |
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
//In order for this to work, the Document type needs to have a link_title field | |
frappe.ui.form.ControlLink = frappe.ui.form.ControlData.extend({ | |
set_input: function(value) { | |
console.log("set_input") | |
this.value = value; | |
this.$input && this.$input.val(this.format_for_input(value)); | |
this.set_disp_area(); | |
this.last_value = value; | |
this.set_mandatory && this.set_mandatory(value); |
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
sdf |
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
void configInt(int gma, int sb){ | |
extern int Coefs[NUM_BANDAS][NUM_COEFS]; | |
if(sb==1){Coefs[gma][5]+=10;} | |
else if(sb==0){Coefs[gma][5]-=10;} | |
} |
NewerOlder