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

    Alan

    04/03/2023, 8:39 AM
    Have some odd behaviour since migrating from CF2018 > CF2021 (or correct behaviour?) either way, behavious seems different. Previously in our code we were setting a property in a cf component like so,
    Copy code
    component {
    	property type="string" name="numCarID" default="-1" ;
    and we were able to access that from a component that extends it via the VARIABLES scope.
    VARIABLES.numCarID
    that is now coming back as undefined
  • a

    Alan

    04/03/2023, 8:45 AM
    but if I run the getter,
    getNumCarID()
    it suddenly becomes available again. e.g.
    Copy code
    getNumCarId();
    writeOutput(VARIABLES.numCarID);
    doesn't error
    Copy code
    //getNumCarId();
    writeOutput(VARIABLES.numCarID);
    errors
    r
    s
    • 3
    • 4
  • s

    sneiland

    04/03/2023, 9:48 PM
    What has been peoples recent experience with hostek for cf hosting?
    j
    s
    +2
    • 5
    • 4
  • j

    Justin B

    04/04/2023, 4:19 PM
    I am a developer (not server administrator) and have been asked to lookin into migrating to an azure hosted cf instance. Any suggestions on good places to to start my research? I noticed that there seem to be some marketplace images. any tips or resources would be appreciated.
    f
    j
    e
    • 4
    • 11
  • b

    bfescoe

    04/06/2023, 7:17 PM
    Is it possible to export / import scheduled tasks? I have been using cfconfig but it is not including STs.
    b
    • 2
    • 4
  • b

    bfescoe

    04/06/2023, 7:41 PM
    Ah it seems they live in lucee_web/scheduler/scheduler.xml
  • j

    Jeff Stevens

    04/07/2023, 1:47 PM
    Hi CFMLers! Today I've been working with queries on CF2021, specifically the valueArray() function, as it's documented here: https://cfdocs.org/valuearray I've been running into some problems. I've supplied a query as the first argument and a string column name in the second argument, but I keep getting error messages along the lines of "Method valueArray() does not exist with the given parameters". Is this a known issue, or am I responsible for what may be going wrong here?
    ✅ 1
    w
    j
    +2
    • 5
    • 39
  • s

    Simone

    04/07/2023, 3:25 PM
    encountered a very old project they are using
    <cfset AjaxOnLoad('OpenReport')>
    and the OpenReport is using fancybox
    Copy code
    openReport = function() {
        $(".openReport").fancybox({
            'height': '90%',
            'width': '50%',
            'type': 'iframe',
            'scrolling': 'auto',
            'autoscale': true,
            'transitionIn': 'elastic',
            'transitionOut': 'elastic'
        });
    }
    i am given the task to change it tofancybox 5, and ajaxonLoad, eventually i forgot about the ajaxonload things, used it in 2011 and now ist 12 years any suggestions anyone how can i proceed ahead with this
    r
    • 2
    • 2
  • n

    nolanerck

    04/08/2023, 4:58 AM
    A quick write-up about yesterday's CF Summit East conference in Washington DC -- https://southofshasta.com/blog/coldfusion-summit-east-2023-recap/
    ⭐ 4
    👍 1
  • g

    gsr

    04/08/2023, 3:41 PM
    i am trying to get into js directory which is outside the admin folder
    Copy code
    <cfset request.thisUrl = getPageContext().getRequest().GetRequestUrl().toString()>
    	<cfset request.websitePath = left(request.thisUrl, len(request.thisUrl) - len(listLast(request.thisUrl,'/')))>
    	<cfset request.jsFolder = request.websitePath>
    http://localhost:9001/website1/project1/admin/ - this path is the request.websitePath admin Section http://localhost:9001/website1/project1/admin/admin-home.cfm - this is request.thisUrl i am going to go into JS directory like this, how should i get in there http://localhost:9001/website1/js
    a
    • 2
    • 5
  • a

    agentk

    04/10/2023, 5:22 AM
    Hey everyone. We’ve listed the first 19 confirmed sessions for CFCamp 2023: https://www.cfcamp.org/sessions.html And you can book tickets as well: https://www.cfcamp.org/tickets.html
    👍 4
    👍🏻 1
  • c

    Cory Howitz

    04/10/2023, 6:56 PM
    has anyone moved from the datadirect driver to the ms jdbc one for mssql?
    m
    d
    • 3
    • 9
  • r

    Ryan Albrecht

    04/10/2023, 9:17 PM
    PSA we are seeing attempts to exploit our servers using CVE-2023-26360
    👍 3
  • r

    Ryan Albrecht

    04/10/2023, 9:17 PM
    Patch your servers ladies and gentlemen!
  • a

    Alan

    04/11/2023, 10:42 AM
    how do you set the date/time in CF?
    timeformat()
    is an hour out, not accounting for BST
  • a

    Alan

    04/11/2023, 10:44 AM
    the server time is correct
    z
    a
    +2
    • 5
    • 35
  • g

    gsr

    04/11/2023, 5:50 PM
    here in this case, my logic seems going, even if its an error, its still doing an update, while i am trying to do a rollback
    Copy code
    <cftransaction>
    					<cftry>
    					<cftransaction action="begin"/>
    						<cfset delObject = 'delete the file'>
    						<cfif !delObject>
    							<cfthrow message="Unable to delete">
    						</cfif>	
    						<cfcatch type="any">
    							<cfthrow/>
    						</cfcatch>
    					</cftry>
    				
    
    					<cftry>
    						
    						<cfset uploader = 'upload a file'>
    						<cfif !isArray(uploader)>
    							<cfthrow message="uploader">
    						<cfelse>
    						<cfquery>
    								update query
    						</cfquery>
    						</cfif>  
    						<cftransaction action="commit/">
    						<cfcatch type="any">
    							<cftransaction action="rollback/">
    					</cftry>
    					</cftransaction>
    d
    a
    +5
    • 8
    • 53
  • v

    Vimlesh Parihar

    04/12/2023, 10:54 AM
    Does any one know why the image not display in pdf for ColdFusion server 2021. I need the solution for this problem.
    a
    c
    +5
    • 8
    • 49
  • d

    Dave Merrill

    04/12/2023, 1:59 PM
    Do I understand rightly that both CF 2018 and 2021 can and should use JAVA SE 11.0.18?
    b
    • 2
    • 1
  • n

    nickg

    04/13/2023, 7:06 PM
    Hi All. We'd like to be able to send email into a CF-based CRM system. Has anyone here done that before and if so, is there a best practice? We were thinking about sending the email to a dedicated mail account and then using <cfpop> to retrieve the email and insert it into the DB? Does that sounds like the modern coding way to handle a task like this?
    r
    m
    • 3
    • 9
  • s

    Scott Steinbeck

    04/14/2023, 12:34 AM
    In cfml how would someone match the string ‘false’ ?
    Copy code
    value = 0;
    value == 'false' //true
    this is ending up matching as a falsey value
    b
    m
    +3
    • 6
    • 38
  • r

    rickmason

    04/14/2023, 5:13 AM
    Randy Brown from Michigan State is going to show us the ins and outs of CFSetup at the next meeting of the Mid-Michigan ColdFusion Users Group on Tuesday, April 18th at 7 pm eastern time. CFSetup is a tool to assist administrators and DevOps with setting migration. Meeting URL: https://tinyurl.com/3ek34ww2 A recording will be available on our group’s YouTube channel in a few days at https://youtube.com/@cfml
    👍 1
  • j

    jesson diazz

    04/14/2023, 3:26 PM
    Hello, I hope all is well and I am wondering if you can help or guide me on the right path about the Gateway status changes to fail from time to time when there are transactions. Sorry I am still learning about the product. Anyway to monitor that gateway and get an email alert when changes to failed? Please let me know if you have any recommendations. Thank you,
    d
    a
    m
    • 4
    • 15
  • j

    jesson diazz

    04/14/2023, 3:27 PM
    sometimes changes to failed
  • d

    Dave Merrill

    04/14/2023, 4:58 PM
    UNOFFICIAL SURVEY: • Do you start testing ColdFusion updates immediately when they're released, or wait for feedback from the community? • Roughly how long do you test them before deploying them to production? • Is there an approval process that involves more than the dev team before you make changes to production servers? • How about Java updates, same questions? • Does any of this depend on the hotfix level, CF 2023 vs CF 2021 HF6? What I'm getting at is that narrowing the "not yet patched" window is clearly a good thing, but how do we balance that with possible breakage, and chain of responsibility? Thoughts?
    s
    c
    +4
    • 7
    • 7
  • g

    gsr

    04/14/2023, 5:19 PM
    Question, Working on an API which returns results like 25 in one call, and i want to fetch all records I want to know how should my approach be, I am planning to store the data returned by the api in database and also load the database in datable or grid, 1. Should i call api and load in grid and save it, 2. when next is clicked in grid, call the api again and fetch the data and display it again and save it but above approach, i am not think is right, because i am also saving it, so i will serve from db instead of api if i am saving but how should i get the data like should i do a schedule task which runs every hour and updates the data in backend until entire is saved in db
    i
    m
    e
    • 4
    • 11
  • a

    Adam Cameron

    04/17/2023, 12:12 PM
    https://blog.adamcameron.me/2023/04/cfml-into-box-2023.html
    👍 2
  • g

    gsr

    04/17/2023, 6:57 PM
    question, from an api, few of teh fields i am getting the data in array of srructts as: expirationdue: undefined i am inserting that code in the database, i am trying to use the null attribute but it keeps throwing error on this line i am using the cfqueryparam as: <cfqueryparam cfsqltype="timestamp" value="#data['expirationdate'])#" null="#!date(data['expirationdate']#">
    d
    • 2
    • 3
  • g

    gsr

    04/17/2023, 7:00 PM
    Element expirationdate is undefined in a CFML structure referenced as part of an expression.
    t
    • 2
    • 6
  • r

    Ryan Albrecht

    04/17/2023, 9:03 PM
    The ColdFusion 2021 server auto-lockdown tool 'Sets file system permissions for your web root'. Is there an option to skip this step? This size of our webroot is huge
    a
    • 2
    • 7
1...313233...38Latest