bdw429s
09/04/2022, 1:50 AMnickg
09/07/2022, 5:52 PMAdam Cameron
st = {
top = {
middle = {
bottom = "value I want"
}
}
}
And a path to a key held in a string, eg:
keyPath = "top.middle.bottom"
Is the CFML-idiomatic way of fetching the value I want gonna be something like:
valueIWant = structGet("st.#keyPath#")
Repro:
https://trycf.com/gist/ac86ec8b0166c0715e37ac1f74c87684/acf2021?theme=monokai
Note: I know this works, I'm just wondering whetherin CFML-current there's a better way? structGet
always seems so clunky to me. I feel I am forgetting something...Formiko
09/09/2022, 8:00 PMFormiko
09/13/2022, 6:16 PMMark Takata (Adobe)
09/13/2022, 6:31 PMErik Jespersen
09/13/2022, 7:29 PMViral
09/14/2022, 3:45 PM<url 1> (deleted) when called should go to <url a>(Not in CF)
<url 2> (deleted) when called should go to <url b>(In CF)
I checked the IIS redirect doc but there is no mention of URL to URL redirections
https://docs.microsoft.com/en-us/iis/configuration/system.webserver/httpredirect/
is there a simple way which I am missing ?Adam Cameron
Umair Khan
09/17/2022, 9:07 PMAdam Cameron
Andreas
09/20/2022, 2:10 PMSimone
09/20/2022, 6:19 PMepipko
09/21/2022, 11:13 PM<CFLOOP query = "ship_details">
<tr bgcolor="#IIf(CurrentRow Mod 2, DE('ffffff'), DE('f8f8f8'))#">
<TD class="TDC" align="right"><INPUT TYPE="CHECKBOX" name="MYCHECKBOX" value="#ship_details.cust_po_nbr#" ID="chkPo" checked></TD>
<TD class="TDC">#ship_details.cust_po_nbr#</TD>
<TD class="TDC">#ship_details.store_id#</TD>
<TD class="TDC">#ship_details.numb_of_cart#</TD>
<TD class="TDC">#ship_details.total_qty#</TD>
<TD class="TDC">#ship_details.weight#</TD>
<TD class="TDC">#ship_details.volume#</TD>
<cfif form.soldto EQ "AMAZON">
<TD class="TDC"><cfinput name="pallets" type="text" size="10"></TD>
</cfif>
</TR>
</CFLOOP>
When I try to do streight insert into a table, I am getting an error (too many values) because value for "pallets" comes across as "1,1,3,4,6"
How do I loop over checked lines?Nick
09/23/2022, 8:41 PMsomePdfUrl = "<https://mydocumentserver.com/pdfs/9FE4DB59-39FB-45ED-A0D0B0171D55EC33>";
pdfFilename = ???
I can bring the file in as a binary using fileReadBinary( somePdfUrl )
. Hoped maybe I could do something with it from there, but I think I'm not asking Google the right questions.gsr
09/26/2022, 9:30 PM<cfloop collection="#arrival#" item="idx">
<cfif isDefined('arrival[idx]') and arrival[idx] neq 'undefined'>
gsr
09/27/2022, 11:27 AMFormiko
09/28/2022, 3:59 PMFormiko
09/28/2022, 4:00 PMMarc Funaro
09/28/2022, 4:02 PMFormiko
09/28/2022, 4:05 PMAdam Palcich
09/28/2022, 4:06 PMMarc Funaro
09/28/2022, 4:06 PMMarc Funaro
09/28/2022, 4:07 PMAdam Palcich
09/28/2022, 4:08 PMFormiko
09/28/2022, 4:08 PMFormiko
09/28/2022, 4:10 PMFormiko
09/28/2022, 4:11 PMMarc Funaro
09/28/2022, 4:12 PMFormiko
09/28/2022, 4:23 PM