Formiko
04/24/2022, 9:03 PMFormiko
04/26/2022, 10:52 PMepipko
04/27/2022, 6:17 PM04/26/2022 00:00:01
to 04/26/2022 23:59:59
.
I can do it in sql (Oracle), but wonder if/how it can be done in CF.
Oracle:
select to_char( trunc(sysdate-1) + (1/(24*60*60)), 'MM/DD/YYYY HH24:MI:SS') from dual;
select to_char( trunc(sysdate) - (1/(24*60*60)), 'MM/DD/YYYY HH24:MI:SS') from dual;
Formiko
05/01/2022, 8:14 PMgsr
05/01/2022, 10:59 PMFormiko
05/02/2022, 11:01 PMFormiko
05/04/2022, 3:11 AMjumpmaster
05/09/2022, 7:21 PMFabio Barbalace
05/10/2022, 8:27 AMbdw429s
05/13/2022, 2:55 PMepipko
05/27/2022, 4:28 PM<cfquery name="q1" datasource="#REQUEST.PROD#">
select return_id
from ecomm_returnly_temp
where return_id NOT IN (select return_id from ecomm_returnly)
order by return_id
</cfquery>
<cfif #q1.RecordCount# GT "0">
<cfloop query="q1">
<cfset return_id = #q1.return_id#>
<cfinclude template="returnly_api_get_return_by_id.cfm">
</cfloop>
</cfif>
If I convert query data into a list, it works just fine:
<cfset returns_list = "">
<cfquery name="q1" datasource="#REQUEST.PROD#">
select return_id
from ecomm_returnly_temp
where return_id NOT IN (select return_id from ecomm_returnly)
order by return_id
</cfquery>
<cfset returns_list = ValueList(q1.return_id,",")>
<cfif ListLen(returns_list)>
<cfloop list="#ListSort(returns_list,"Numeric","asc",",")#" index="return_id">
<cfinclude template="returnly_api_get_return_by_id.cfm">
</cfloop>
</cfif>
Adam Cameron
Thanks, I am always confused when to use/not use # signs.https://blog.adamcameron.me/2013/09/when-to-use-pound-signs.html
Simone
05/31/2022, 3:11 PMVictor B Vieira
06/04/2022, 4:38 PMVictor B Vieira
06/04/2022, 11:16 PMMark Takata (Adobe)
06/20/2022, 5:30 PMgsr
06/20/2022, 5:46 PM<cfselect class="Select" style="width: 75%" name="Sales" query="qry" value="SaleID" display="Title" selected="#SelectedValue#" />
<script>
$('.Select').select2({
placeholder: 'Select Sales',
allowClear: true
});
</script>
So my plan is to replace cfselect with normal select and use it, but should i convert this into a custom tag or cffunction so i can reuse it all the places i neededgsr
06/23/2022, 3:39 PMdick
06/23/2022, 4:20 PMgsr
06/24/2022, 2:26 PMepipko
06/29/2022, 7:50 PM<td><cfinclude template="../EP/CurrentWeekEcommOrders.cfm"></td>
Is there a way to make it refresh periodically?Scott Steinbeck
06/29/2022, 8:07 PMgsr
06/29/2022, 9:46 PMgsr
06/29/2022, 9:46 PMOokma-Kyi
06/30/2022, 2:11 AMOokma-Kyi
06/30/2022, 2:55 PMCommandBox:Ookma-Kyi> start
β | Starting Server
| β | Setting Server Profile to [development]
| β | Loading CFConfig into server
CommandBox:Ookma-Kyi>
Do i need to connect my Mysql Database to start a basic server? Not using any databases yet...Ookma-Kyi
07/05/2022, 4:32 PMSlackbot
07/07/2022, 6:39 PMAdam Cameron
Nick
07/11/2022, 3:09 PMWHERE SomeBitCol = <cfqueryparam cfsqltype="bit" value="true">
or
Option 2: WHERE SomeBitCol = 1
(To be clear, this is not a variable. 1/true would be passed as a hard-coded value. If it was a variable, I'd definitely use <cfqueryparam>
)