coldbox

How to populate a select list using a structure inside select HTML helper in ColdBox?

天涯浪子 提交于 2020-01-24 17:17:25
问题 I want to generate a select list that should look like the following- <select name="isActive"> <option value="True">Yes</option> <option value="False">No</option> </select> For this I am using select() HTML helper in ColdBox. #html.select( options=qActiveOptions, nameColumn="value", name="isActive", label="Active:", required="required", title="Active", )# Where qActiveOption is the query that I created using the code below- <cfset qActiveOptions=queryNew('name,value', "VarChar,VarChar")>

How to populate a select list using a structure inside select HTML helper in ColdBox?

丶灬走出姿态 提交于 2020-01-24 17:17:12
问题 I want to generate a select list that should look like the following- <select name="isActive"> <option value="True">Yes</option> <option value="False">No</option> </select> For this I am using select() HTML helper in ColdBox. #html.select( options=qActiveOptions, nameColumn="value", name="isActive", label="Active:", required="required", title="Active", )# Where qActiveOption is the query that I created using the code below- <cfset qActiveOptions=queryNew('name,value', "VarChar,VarChar")>

Iteration through url request collection variables by dynamic evaluation

我与影子孤独终老i 提交于 2019-12-25 04:14:33
问题 What i am trying todo in coldfusion cfscript is iterate through a request collection of variables and do some evaluation, which i can do easily in PHP, but am running into issue translating to coldfusion cfscript, because it seems i cannot build a dynamic if statement PHP for ( $i=0 ; $i<count($aColumns) ; $i++ ) { if ( $_GET['bSearchable_'.$i] == "true" && $_GET['sSearch_'.$i] != '' ) { //If there was no where clause if ( $sWhere == "" ) { $sWhere = "WHERE "; } else { $sWhere .= " AND "; } I

NullPointerExceptions in ColdFusion 9 and ColdBox on localhost

六眼飞鱼酱① 提交于 2019-12-13 02:29:42
问题 I'm running CF 9.0.1 Developer and Coldbox 3.0.0 on my local machine (64-bit Windows Vista running 32-bit CF9 on Apache). I'm working on an application that I've checked out from SVN and deployed locally. Everything seems to be working correctly, but my application log is filling up with entries like this: Apr 18, 2011 12:41 PM Error jrpp-7 exception.log has an extremely long stack trace for each exception, maybe 150 lines or so. It starts with this: "Error","jrpp-4","04/18/11","11:07:30",,""

What can CF10 RESTful API do that Coldbox RESTful API cannot do? And vise versa?

坚强是说给别人听的谎言 提交于 2019-12-06 04:39:26
问题 Just started looking at some MVC JS framework / library and most of them expect a RESTful API endpoint, which got me thinking... what can I do using CF10 that cannot be done using CF9 + ColdBox RESTful support, and vise versa? Thank you. 回答1: Restful webservices is a standard concept and all the implementation eventually adhere to those norms. There are already existing frameworks like Taffy, Powernap and frameworks like ColdBox 3, Mach II which can help create restful services in ColdFusion.

Coldfusion Populate form with dropdown selection using ajax

好久不见. 提交于 2019-12-04 02:22:13
问题 So I have a project that's using ColdFusion and it has a form with a dropdown. See example: http://jsfiddle.net/mwoods98/KXmNK/ What I need to happen once the dropdown is selected, is for an ajax call to call a ColdFusion cfc that returns information to fill in the form that's under the dropdown. Using the fiddle above as an example, if the user selected "2" then the name field would have Bob, 202 Fake Street and 111-555-1234. If they selected "3" they would get whatever else is returned from