Posts by Daniel Silva • 13 points
4 posts
-
-1
votes1
answer40
viewsQ: How to remove part of a string to a certain point
Good morning everyone. I’m starting with Javascript and I’m having a hard time removing a part of a string up to a certain point. got the string: "21/07/2020 16:34:42 - Adriana gomes carneiro…
javascriptasked Daniel Silva 13 -
0
votes3
answers156
viewsQ: Return the first working day of the month
I have the following script and would like it to run only on the first working day of each month, as I can do? var ritm = new GlideRecord('sc_req_item'); ritm.addQuery('short_description', 'Rotina…
javascriptasked Daniel Silva 13 -
0
votes1
answer58
viewsQ: Keep zeroes after the point
Good morning to you all. I have the following code: var somaR = 0; var somaN = 0; var project = [ {part: 'Renault', partNumber: 1234, project: 'X19', gap: 15.000}, {part: 'Renault', partNumber:…
-
0
votes2
answers343
viewsQ: Check equal values in an Array and add them
Hello. I have the following senary: I have an array of objects as below. var project = [ {partNumber: 1234, project: X19, gap: 30}, {partNumber: 1234, project: X19, gap: 40}, {partNumber: 5678,…