Risen Joe
01/12/2023, 12:58 PMgsr
01/15/2023, 5:34 PMSimone
01/18/2023, 5:24 PMgavinbaumanis
01/25/2023, 11:36 PMSimone
01/30/2023, 1:14 PMUmair Khan
01/31/2023, 4:21 PM<cfset objSpreadsheet = SpreadsheetNew("REGISTRO DE VENTAS") />
<cfset SpreadSheetSetActiveSheet(objSpreadsheet, "REGISTRO DE VENTAS")/>
<cfset SpreadsheetAddRow(objSpreadsheet,encabezadosMatrizVentas)>
<cfset SpreadsheetAddRows( objSpreadsheet, MatrizVentas) />
Instead of query I want to use html save content to export to excel in one of sheetsSimone
02/01/2023, 1:07 PMAnna
02/02/2023, 10:08 PM<cfset myObj = createObject('webservice', 'urltowsdl ', {authType = 'basic', username='abc@abc', password='abcd#456'})>
Anders Lars
02/03/2023, 5:53 PM<cfscript>
jTime = createObject( "java", "java.time.LocalTime" )
jEnum = createObject("java", "java.time.temporal.ChronoUnit");
variables.time1 = jTime.now();
variables.time2 = jTime.parse('17:28:51');
echo(variables.time1.until(variables.time2, jEnum.seconds));
</cfscript>
Method gets called pretty often, otw I would not be sweating it.
thanks!Simone
02/09/2023, 3:35 PMjohnbarrett
02/09/2023, 7:37 PMgsr
02/10/2023, 6:26 PMTheTable = HTMLDocument.select("##tableID");
TheTable.addClass("styled-table");
dateFields = TheTable.select('tr td:nth-child(4)');
dateFields.forEach( field => {
field.innerText.split(/\s/)[0]);
});
i am trying to remove the second value from the td of each row by looping over it which is seperated by or spacegsr
02/11/2023, 3:37 PMgsr
02/11/2023, 3:37 PMjohnbarrett
02/13/2023, 9:36 PM<cfquery name = "members" datasource = "cfhawaiiDBmain"> SELECT user_id,first_name,last_name, joining_date
FROM users
ORDER BY user_id
</cfquery>
<table>
<cfoutput query="members">
<tr>
<td>#members.first_name#</td>
<td>#members.last_name#</td>
<td>#members.date#</td>
</tr>
</cfoutput>
</table>
Michael Gillespie
02/15/2023, 10:54 PM<cfquery name="sortedQry" dbtype="query">
select *
from tmpQry
order by
<cfif arguments.sortBy eq 0>
volume
<cfelse>
length, width, height
</cfif>
</cfquery>
johnbarrett
02/15/2023, 11:01 PM<cfmail to="johnbarr@hawaii.edu"
from="john@cfhawaii.net"
subject="Hawaii ColdFusion User Group Message"
wraptext="75">
From: #form.demo_name# (#form.demo_email#)<br />
Comments: #form.demo_message# </cfmail>
Simone
02/17/2023, 3:04 PMgsr
02/18/2023, 5:14 PMwritedump(TheTable.select("tbody").before("#getHeaders#").toString()); abort;
to add thead before tbody but its not adding itSimone
02/21/2023, 3:20 PMGabriel Rodrigues
02/23/2023, 8:13 PMgsr
02/26/2023, 1:20 AMcomponent implements="IStringsFactory" {
the implements is in the same folder as component
interface {
public ILocalizedStrings function getStrings(required string directory, required string defaultLocale);
}
i am getting an error Could not find the ColdFusion component or interface com.IStringsFactory.
gsr
02/26/2023, 1:20 AM<cfset Application.factory = new appcfc.com.StringsFactory()>
Nick
03/01/2023, 8:46 PM<cfhttp url="#myURL#/processAction.cfm" timeout="10800" method="get" />
<cfquery name="insertLog" datasource="#myDSN#">
INSERT INTO ActionLog
(ActionName,
Complete)
VALUES
('Process Action',
1)
</cfquery>
In processAction.cfm
there's whole mess of logic ending with it's own INSERT into a DB log as the very last thing in the file.
The issue is that processAction.cfm
logs its final query around 30 minutes after being called, but the query above (right after the cfhttp
) is timestamped 3 hours after being called, which corresponds to the timeout="10800"
. What could cause processAction.cfm
to reach its last line and finish its work in 30 minutes but not return a response to the cfhttp
, causing the cfhttp
to wait and wait till its timeout? (Again, this is legacy and I could rewrite it, but just trying to understand this behavior.)Prashant S
03/03/2023, 11:11 AMSean Callahan
03/07/2023, 10:08 PMcfhttp
over an https protocol.
What I can't seem to wrap my head around is that when I run these scripts in the browser using the resolved URL (not localhost
, but that also works fine), all is right in the world. But when the scheduler runs them:
"Error","DefaultQuartzScheduler_Worker-1","03/07/23","13:55:27",,"Connection Failure: Status code unavailable "
coldfusion.tagext.net.HttpTag$HttpConnectionFailureException: Connection Failure: Status code unavailable
at coldfusion.tagext.net.HttpTag.connHelper(HttpTag.java:1311)
at coldfusion.tagext.net.HttpTag.runCall(HttpTag.java:1413)
at coldfusion.scheduling.CronTask.execute(CronTask.java:121)
at org.quartz.core.JobRunShell.run(JobRunShell.java:207)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:560)
I already imported the production server's cert into the castore
. Also the Root CA has been added to the castore
gsr
03/11/2023, 5:57 PMDetailThe files upload action requires forms to use enctype="multipart/form-data".
MessageInvalid content type: ''.
it seems its not picking up the file or something
coldfusion.tagext.io.FileUtils$CFFileNonMultipartException: Invalid content type: ''. at coldfusion.tagext.io.FileTag.uploadAll(FileTag.java:689) at coldfusion.tagext.io.FileTag.doStartTag(FileTag.java:411) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:3851) at
epipko
03/11/2023, 7:48 PMepipko
03/11/2023, 7:49 PM<cfset _PAYLOAD = serializeJSON(fulfillment_json)>
<cfoutput>#_PAYLOAD</cfoutput>
Payload: {"fulfillment":{"message":"Your package was shipped.","location_id":"30406673","tracking_info":{"number":"9405511206207180455478","url":"www.usps.com"},"notify_customer":false,"line_items_by_fulfillment_order":[{"fulfillment_order_id":5784060395699,"fulfillment_order_line_items":["{\"id\":12254030430387,\"quantity\":1},{\"id\":12254030463155,\"quantity\":1}"]}]}}epipko
03/11/2023, 7:51 PMepipko
03/11/2023, 7:51 PM