Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't refresh CFC CF9 when using an application.cfm
    primarykey
    data
    text
    <p>I was charged with making some modification to an old application, and I created a new page which was being passed a URL parameter <code>page_name</code>, which is a you guessed it a name of a page with <code>.cfm</code> appended. So, in my haste, I continued using it, and was building out my CFC and using the <code>page_name</code> as the identifier for a record. Then I realized that there is a possibility of that name being duplicated in the table, and changed that url parameter to use the <code>page_id</code>, which is unique. I modified my CFC to use the new key, and nothing worked. So I started going through my code and figured I made a typo, started commenting things out, and finally dumped out my CFC object and voila, none of the edits I made were actually being used. This was fairly obvious, since <code>page_name</code> was a string, and <code>page_id</code> was numeric.</p> <p>So I started googling,The first thing I saw as adjust things in the CFAdmin. I don't have access to it, and restarting the server isn't an option since I'm using an RDS to live code. The next thing I tried was to add <code>applicationStop()</code>, <code>onApplicationStart()</code>, to my <code>Application.cfc</code>. Well the problem is that the Application.cfc, is actually an Application.cfm. So after fiddling with the <code>&lt;cfapplication ... &gt;</code> tag, and nothing being updated, I'm here asking for help.</p> <p>So is there a quick fix for this? Should I go ahead and create an application.cfc? I hope I explained myself, and sorry for all the text.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload