coldfusion

Error while creating large dropdown in excel using ColdFusion

荒凉一梦 提交于 2019-12-20 07:48:24
问题 This code I have written for creating large dropdown in ColdFusion, but it is not working on my end. Could any one please help me rectify my problem. The new code is <cfquery name="getPOP" datasource="l_webalc"> select distinct center_code from alc_pop </cfquery> <cfset countryName= ArrayNew(1)> <cfloop query="getPOP"> <cfset arrayappend(countryName, getPOP.center_code)> </cfloop> <script> workbook = new HSSFWorkbook(); realSheet = workbook.createSheet("Sheet xls"); hidden = workbook

Actual XML file location while dealing with CFchart

耗尽温柔 提交于 2019-12-20 07:44:06
问题 Could anyone tell me whether I need to place xml file in a separate directory while working with coldfusion? Right now I have kept my xml file in the same directory where I have .cfm file. When I run the file(cfm) it says, Could not locate the style file filename.xml Here is the error: Could not locate the style file VerticalXLabels.xml. Ensure that the file exists and is readable. The error occurred in C:\PATH\Testing_Connections.cfm: line 296 Called from C:\PATH\Testing_Connections.cfm:

Coldfusion mapping error

自作多情 提交于 2019-12-20 07:16:53
问题 Note: If you wish to use an absolute template path (for example, template="/mypath/index.cfm") with CFINCLUDE, you must create a mapping for the path using the ColdFusion Administrator. I went to the administration page but not sure what to put in here. I'm pretty new to coldfusion. anyone got any ideas why this would be happening. 回答1: CFINCLUDE uses relative paths in relation to the file where the cfinclude is, so if want to include a file in another directory, 1. it has to be inside your

CF 10 crashes on a large number of form fields

我们两清 提交于 2019-12-20 06:23:45
问题 When submitting a large number of form fields, ColdFusion 10 crashes even if ColdFusion 9 does not. 回答1: Earlier versions of ColdFusion 9 did not restrict the number of form fields that could be submitted. ColdFusion 10, be default limits the number of fields to 100. If you go to Server Settings -> Settings then the to Request Size Limits section. There is a setting called Maximum number of POST request parameters . It needs to be adjusted upward 回答2: As Leigh mentioned (I can personally

define a list of id's for grouped item

时光总嘲笑我的痴心妄想 提交于 2019-12-20 05:38:29
问题 i got a little question, i just can't understand, what is the problem and how do i solve it, i have a coldfusion variable, for example #account_code# , first of all, this code looks like this: 100.001.001 (there are bunch of them of cource) and i have some values for this variable, like sum(nettotal) and the cfquery i grouped by this #account_code# , all i want is to set the list of these codes, thus i define list, for example <cfset code_list='100.001.001,100.001.002'> and in query: account

Can I have 'friendly' url's without a URL rewriter in IIS?

蓝咒 提交于 2019-12-20 05:32:08
问题 Without having a url rewriter such as ISAPI_Rewrite available, is it possible to achieve the following: I would like a user to browse to http://www.jjj.com/directory where /directory does not actually exist. IIS transfers the user to not-found.cfm . At this point I can serve index.cfm i.e. http://www.jjj.com/directory/index.cfm . The url will display just fine and the page loads even though the directory or index.cfm doesn't exist. However I'd like to be able to not have index.cfm in the url.

Can I have 'friendly' url's without a URL rewriter in IIS?

做~自己de王妃 提交于 2019-12-20 05:31:13
问题 Without having a url rewriter such as ISAPI_Rewrite available, is it possible to achieve the following: I would like a user to browse to http://www.jjj.com/directory where /directory does not actually exist. IIS transfers the user to not-found.cfm . At this point I can serve index.cfm i.e. http://www.jjj.com/directory/index.cfm . The url will display just fine and the page loads even though the directory or index.cfm doesn't exist. However I'd like to be able to not have index.cfm in the url.

Add new AcroForm field to a PDF

时光总嘲笑我的痴心妄想 提交于 2019-12-20 05:30:06
问题 I have used iText to fill data into existing AcroForm fields in a PDF. I am now looking for a solution to add new AcroForm fields to a PDF. Is this possible with iText? If so, how can I do this? 回答1: This is documented in the official documentation, more specifically in the SubmitForm example. When using a tool such as iText, you should read the official documentation first ;-) Anyway, I've written you a simple example called AddField. It adds a button field at a specific position defined by

How do I return JSON from an action in FW/1?

孤者浪人 提交于 2019-12-20 05:13:14
问题 FW/1 seems to be oriented to returning complete web pages what if JSON data is needed? A typical layout looks like: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>User Manager</title> <link rel="stylesheet" type="text/css" href="assets/css/styles.css" /> </head> <body> <h1>User Manager</h1> <ul class="nav horizontal clear"> <li><a href="index.cfm">Home</a></li> <li><a href="index.cfm?action=user.list" title="View the list of users">Users</a></li> <li><a

ColdFusion: Can you pull out a unique record from a query using recordCount?

心已入冬 提交于 2019-12-20 04:50:44
问题 It's a bit of tricky question, however, my page for most rated bands displays the band logos in order of how high they have been rated. My only problem is i want to count through the records by using a cfloop from 1 to 10 and because it is split in to two columns, have one counting 1 through to 9 and the other 2 through to 10, each of them with steps of two. Can anybody help me with this? If i've confused just mention it and ill try to clarify exactly what i mean. <DIV class="community_middle