coldfusion

ColdFusion : create a wsdl without any complex type included

蓝咒 提交于 2019-12-12 22:12:58
问题 I have to create a wsdl webservice using ColdFusion to be used by an 'external' tool. The problem I am facing is that this external tool doesn't accept webservices that uses complex types (the wsdl should only get and return simple values as string or integer, but no array, structure or obect). Seems that coldfusion automatically adds some paart using complex types withing the wsdl. My question is : Is there a way to generate a wsdl webservice in ColdFusion that wouldn't include any complex

cfspreadsheet fails to read empty rows

拥有回忆 提交于 2019-12-12 22:06:34
问题 Given a spreadsheet with N logical rows Where one row is totally blank* cfspreadsheet action="read" will return a query with a RecordCount of N - 1. *A totally blank row is a row where every cell is actually blank. See CELL_TYPE_BLANK in the POI docs. Is it possible for cfspreadsheet to include empty rows? 回答1: No. Since spreadsheet data is not always contiguous, <cfspreadsheet action="read" query="queryName" ...> and <cfspreadsheet action="read" format="csv|html" ..> deliberately screen out

How can I get this kind of JSON file format from a SQL query? [closed]

…衆ロ難τιáo~ 提交于 2019-12-12 21:23:09
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . You see, this is my issue: I need to get a .json file from a SQL query. In order to do that, I use the following ColdFusion .cfm file: <cfsetting showdebugoutput="no"> <cfheader name="Content-Type" value=

Using jquery ajax json format, How do you output a query from a .cfm page to the calling html page?

假如想象 提交于 2019-12-12 20:25:59
问题 I have successfully done tutorials that return a single string and a cfdump. But I need help on the syntax returning a query with a list of items. Also a semi repost since it looks like my last question died out on responses. Problem: I am trying to output a query using jquery with json format from a .cfm page that is calling a cfc. Can someone tell me what I am dong wrong? I currently am getting an error. SyntaxError: JSON.parse: unexpected character. In my .html page I have <html> <head>

Coldfusion create array from dynamic form checkboxes

蓝咒 提交于 2019-12-12 20:17:09
问题 I have a dynamic form with multiple checkboxes and on submit I want to run a CFSTOREDPROC in another cfloop using only the checkbox values that changed status. So far below is a rough concept that I am trying to test but I am sure the way I am creating my array will have issues. If anyone can provide feedback on possible solutions I would appreciate it. HTML/CF FORM: <form action="self.cfm" method="post" name="permissions"> <input type="hidden" name="User_ID" value="<CFOUTPUT>#User_ID#<

SpreadsheetFormatRows format color ColdFusion

╄→гoц情女王★ 提交于 2019-12-12 20:15:42
问题 I'm creating Excel files using ColdFusion and the SpreadsheetNew, SpreadsheetAddRows, SpreadsheetFormatRows, etc. functions. According to the docs that I have read located here their is a propery for color, and fgcolor. I'm a bit confused as to what the difference between the two are. Is one the text color and the other the background color? I've been using fgcolor to set the background color of rows. // HEADER ROW FORMAT formatHeaderRow = StructNew(); formatHeaderRow.fgcolor="royal_blue"; My

ColdFusion & Java (docx4j library)

爷,独闯天下 提交于 2019-12-12 20:05:02
问题 I need to do docx manipulation (find/replace on placeholders and checking/unchecking checkboxes). Since ColdFusion 10 integrates well with Java, I decided to try and use the Java library docx4j, which basically mimics the OpenXML SDK (.net platform). I have the docx4j JAR inside a custom folder, which I have setup in my Application.cfc via JavaSettings (new in CF10, and I tried it with other JARS and it works): <cfcomponent output="false"> <cfset this.javaSettings = {LoadPaths = ["/myJava/lib

How to fix 'POST request Exceeded' error while we passed the number of parameters to the server using API call (POST request) in ColdFusion?

泄露秘密 提交于 2019-12-12 19:45:49
问题 In my Application, I have the 300 user permissions for user role 'admin'. As a super admin, added a new admin users means, need to enable the user permissions for this admin user. If I choose below 100 and sent it to the backend via API call POST method, I can able to get the success response. But, If I'm selecting more than 100 means, I couldn't able to get the success response. It's throwing error message like 'POST request Exceeded'. 回答1: I'm sure, ColdFusion has some settings for this. So

Global Variables in ColdFusion

烈酒焚心 提交于 2019-12-12 19:23:13
问题 2 Questions - In CF8 in the application.cfm I cold set a global variable like so <cfset DSN = "dej6_42"> I am now trying to adjust to the Application.cfc in CF10/Lucee and can not figure out how to set this same variable. Here is my current Application.cfc <cfcomponent output="false"> <cfset This.name = "My Application"> <cfset This.clientmanagement="True"> <cfset This.loginstorage="Session"> <cfset This.sessionmanagement="True"> <cfset This.sessiontimeout="#createtimespan(0,0,10,0)#"> <cfset

Convert Topaz Signature String (Hexadecimal) to Image

丶灬走出姿态 提交于 2019-12-12 19:19:16
问题 I am trying to integrate a topaz signature pad into my ColdFusion application. I would like to capture the signature from the pad, convert it to format that ColdFusion can show in the browser and save to the disk. Using their documentation, I am able to retrieve the captured signature in a Hexadecimal format (I think). I am following the documentation found on their site here: Basic Javascript Demo I have then tries to convert that Hexadecimal to Base64 so that I can write the image to the