http://coldfusion.com logo
Join Slack
Powered by
# cfml-general
  • j

    John Wilson

    09/15/2022, 1:44 PM
    @Mark Takata (Adobe) Is there any ETA on the vscode version of CFBuilder?
    j
    g
    +4
    • 7
    • 26
  • g

    gus_dancy

    09/15/2022, 6:35 PM
    Is there anyone here familiar with using <br style="mso-data-placement:same-cell;" /> to prevent formatting in the data from creating new rows when dumping data into excel?
    e
    • 2
    • 21
  • g

    gus_dancy

    09/15/2022, 6:47 PM
    I'm setting up a test case to make sure it is actually the <br> tags in the data, then try just replacing the <br> or <br /> with <br style="mso-data-placement:same-cell;" /> that should eliminate the superfluous ones.
  • a

    Adam Cameron

    09/15/2022, 6:51 PM
    Sorry for off-topic, but hoping to get some impressions from anyone here who happens to read my blog (which is still reasonably on-topic for CFML I guess). Q: For the ppl here that read my blog... how have the lengths of these Kotlin musings I've been doing? Long / short / shrug / ?
    e
    t
    r
    • 4
    • 12
  • t

    TEMann

    09/16/2022, 7:59 PM
    OK new question. When running CF Server in an enterprise, why not use the built-in web server? Our ops connect CF to Apache. What is the benefit of doing it this way? Doesn’t it just complicate the setup?
    a
    b
    +2
    • 5
    • 14
  • j

    John Wilson

    09/16/2022, 8:00 PM
    You should just use commandbox for the simplest setup
  • t

    TEMann

    09/16/2022, 8:01 PM
    @John Wilson Yes, but not an option here.
  • j

    John Wilson

    09/16/2022, 8:03 PM
    Care to explain? We have a number of commandbox servers running as services in both Linux and Windows. Fast, secure, stable and simple to setup and maintain
  • t

    TEMann

    09/16/2022, 8:03 PM
    Enterprise policy
    b
    e
    • 3
    • 11
  • j

    John Wilson

    09/16/2022, 8:04 PM
    https://www.ortussolutions.com/blog/screencast-running-commandbox-servers-behind-iis-with-boncode?
  • g

    gamesover

    09/19/2022, 3:22 PM
    I just ran a quick test using CF2021 connecting to UPS homepage (to a 302): CFX_HTTP5: 148ms; 91ms; 87ms CFHTTP: 497ms; 203ms; 189ms Microsoft homepage: 500 error using either method (weird) Accessing CFDOCS.org (200 OK): CFX: 81; 60; 27; 36; 24 CFHTTP: 73; 63; 75; 61; 55 It appears to still be faster. I like that it can ignore SSL errors and doesn't cache DNS lookups eternally. (This was causing a problem when using CFHTTP with cloud-based API servers with dynamic IP addresses.) Let me know if there's anything specific that you want compared.
  • w

    websolete

    09/19/2022, 5:54 PM
    haven't tried it yet and thought i'd ask in case anyone already tried, but what happens in a try/catch/finally if you rethrow the exception in the catch? will the finally code execute or be skipped? assuming skipped, but again haven't actually tried
    b
    • 2
    • 17
  • a

    aaronstoddard

    09/19/2022, 6:14 PM
    I think I found a bug in serializeJSON(). We have an MSSQL db table with BIT columns, when I populate a coldfusion object with a property type of numeric or boolean, then create a memento structure from the properties of the object, then run serializeJSON on that structure, the first record will convert the columns that were of BIT in the db (but numeric or boolean in the object) to a string. All records after the first in the array convert the BIT columns to a non-quoted number. If I do a CAST AS INT on the BIT columns, then they all serialize properly as numbers. Is there something different about a struct key with a value from a BIT column? Its got me all confused.
    b
    r
    • 3
    • 9
  • d

    Dave Merrill

    09/19/2022, 6:19 PM
    A colleague says this:
    Copy code
    I found a difference in CF2018 from CF9.
     
    ListFind will not find a match in a list where the value starts or ends with a space.
    
    CF9 : ListFind("A, B,C", "B") = true 
    CF2018 : ListFind("A, B,C", "B") = false
    (He doesn't really mean it returns true, just that it found the value in the list.) I thought listFind would only find exact matches, so leading or trailing spaces in either the find string or the list element that don't match would cause it not to be found, in every version. I don't have a cf9 server to verify that they used to be ignored. Does anyone? Or do you know about a change in this area?
    j
    t
    • 3
    • 11
  • d

    David Maggard

    09/19/2022, 6:46 PM
    This may not be a popular question but is there a version of the ColdFusion/Ajax Application wizard extension that works with CFBuilder 2018? or barring that an alternative that can create a skeleton CRUD admin based on a DB thru RDS?
    e
    • 2
    • 1
  • m

    mithlond

    09/20/2022, 10:29 PM
    writedump(xmlSearch(test, "allEnrollments/enrollment").map((enrollment) => enrollment.toString()).toList(""))
    gives me output like
    Copy code
    <?xml version="1.0" encoding="UTF-8"?><enrollment>...</enrollment><?xml version="1.0" encoding="UTF-8"?><enrollment>...</enrollment>
    How do I get the same output without the
    <?xml version="1.0" encoding="UTF-8"?>
    XML declaration for each one? I just want the node itself, not each node as a full xml object.
    g
    y
    m
    • 4
    • 5
  • p

    Pete Williamson

    09/21/2022, 4:01 PM
    Best CFML linting plugin for VSCode anyone?
    c
    r
    +2
    • 5
    • 5
  • s

    Scott Steinbeck

    09/21/2022, 6:31 PM
    Regex question: come all who are ready for a challenge! i need to be able to select this entire string skipping over escaped characters
    Copy code
    'select *, 1 as ''top'', testCol as "top2" from mytable'
    or
    Copy code
    "select *, 1 as ""top"", testCol as 'top2' from mytable"
    it also can have line breaks in it
    Copy code
    "select *, 
            1 as ""top"", 
            testCol as 'top2' 
     from mytable"
    I have tried googling it and creating a few additional solutions but none have proven to be the right solution. The reward for will be a new cfml vscode extension to format SQL syntax within cfc’s and cfm pages
    w
    r
    t
    • 4
    • 36
  • d

    Dave Merrill

    09/21/2022, 9:23 PM
    Odd question. What would you think the cachedwithin attribute would be on an insert or update query?
    r
    m
    • 3
    • 4
  • a

    Adam Cameron

    09/21/2022, 9:32 PM
    @abram the CF2021 instance of trycf.com seems to have been down for a coupla days now.
    a
    s
    +2
    • 5
    • 9
  • j

    Jim Partin

    09/22/2022, 2:16 PM
    Fun SAML issue. Everything is going swimmingly, until I use processSAMLResponse(). It throws an error The response was received at https://foo/SSO/index.cfm instead of https://foo/SSO/index.cfm?ssoid=12345. The IdP and SP are both configured properly, it's just that processSAMLResponse() is not taking the query string into account during verification. (apparently it uses getPageContext().getRequest().getRequestURL() ) Is there a way I can have it take the querystring into consideration? The query string is needed to determine which IdP/SP configurations to use.
    w
    b
    f
    • 4
    • 14
  • t

    Tim

    09/22/2022, 2:35 PM
    is there a way to check if coldfusion has write access to a directory without actually making a file and checking for an exception?
    r
    m
    f
    • 4
    • 7
  • a

    Adrian Lynch

    09/23/2022, 4:55 PM
    Hi all. Getting back into CFML after a long break. I left just before Lucee became a thing. Seeing some names I recognise from a while back!
    z
    s
    +3
    • 6
    • 13
  • s

    Scott Steinbeck

    09/26/2022, 8:02 PM
    Looking to make some workspace upgrades, any ideas on tech and/or software that has been a great addition to your workspace?
    g
    j
    e
    • 4
    • 3
  • a

    Anders Lars

    09/27/2022, 2:25 PM
    Hey - I have a CF caching question - I have a table with 500k records in MS SQL, each of which has an ID (int) and 2 other identifiers that are both 6 -20 character varchar strings. Different components in the app are constantly converting between these IDs for different purposes - maybe 5 - 20 times/second. FWIW there are multiple server nodes in the cluster. The lookups from SQL are fast, but wondering if there is anything in the CF/Lucee caching arsenal that is an obvious fit for this - or if it's just too large of a dataset to bother caching.
    z
    e
    • 3
    • 4
  • s

    Slackbot

    09/27/2022, 2:40 PM
    This message was deleted.
    m
    • 2
    • 1
  • p

    paolo79

    09/28/2022, 1:37 PM
    QoQ not identifiable in debugging service's event table when datasource is set in application I just opened this ticket https://tracker.adobe.com/#/view/CF-4215317
  • c

    Cavan Vannice

    09/28/2022, 2:42 PM
    Any suggestions for #Hacktoberfest this year? I was busy last year and didn't get a chance to join in.
    g
    z
    f
    • 4
    • 9
  • m

    Marc Funaro

    09/28/2022, 3:05 PM
    using
    EntityNew("name", struct)
    it is easy to populate a new object and save it. Is there a way to do the same to an object that's been retrieved, and pass it a struct to update all fields as well, instead of having to write out the
    set()
    commands for each field to be updated?
    c
    • 2
    • 4
  • s

    Simone

    09/28/2022, 3:07 PM
    i used the cfbuilder cfc generator for my tables but how should i use the bean, dao, gateway and service i need some guidance
    e
    a
    • 3
    • 7
1...181920...38Latest