Quantcast
Channel: Adobe Community : Popular Discussions - Getting Started
Viewing all 64538 articles
Browse latest View live

cfexecute and sqlldr problem

$
0
0

I use cfexecute to run sqlldr in windows seccessfully. I use the same technique to do it in unix and it failed. Have debugged the problem for almost one week with no result

Oracle client has been installed on the server, path to the control file, source file have been checked and all are good but once cfexecute is run, the error pop up. I don't know what else to do

Found similar problem on the web, followed it and still did not work:

http://www.justskins.com/forums/cfexecute-and-sqlldr-run-56805.html

 

Here is the only code to run sqlldr that's been giving me a headache:

 

<cfexecute name="sqlldr"arguments="DEMO@DEMO/pwd2011 control=/opt/coldfusion8/runtime/bin/my_ControlFile.ctl"timeout="500"></cfexecute>

 

Here is the error I got:

The following information is meant for the website developer for debugging purposes. Error Occurred While Processing Request

An exception occurred when invoking an external process.

The cause of this exception was that: java.io.IOException: Cannot run program "sqlldr": error=2, No such file or directory.
30 :       <CFFUNCTION name="RunSQLLDR">
31 :      32 :           <cfexecute name="sqlldr" arguments="DEMO@DEMO/pwd2011 control=/opt/coldfusion8/runtime/bin/my_ControlFile.ctl" timeout="500"></cfexecute>
33 :      
34 :       </CFFUNCTION>

 

  Can anyone who have successfully use cfexecute for running sql loader on Oracle 11 help me?

 

 

 

 

 


Element is undefined in url

$
0
0

Hi all

The cfif doesn't appear to be working, if I add sectorid=1 to the url it works but throws an error if there is no value. Why is this not working? Thank you

 

<cfquery name="qNames" datasource="sales">

    select * from COMPANY, sector

where COMPANY.sectorid = sector.sectorid

<cFIF IsDefined(url.sectorID)>

and sector.sectorid = #url.sectorid#

</cfif>

</cfquery>

how to loop to get value of all checked checkboxes?

$
0
0

I am a non-techic trying to fix something for work. Your help is really appreciated.

 

I have a form with checkboxes (4 check boxes). Everything sumbits fine. SQL db is updated perfectly and data is displayed on webpage w/o any problem. However when I go to edit an entry, on the edit form, (if more then one checkbox were selected oringally), non of the checkboxes are checked. If only one checkbox was selected orinally, that checkbox is selected. What am I missing? I know I am suppose to use loop to get all checked checkbox values, but I have no idea how.

Here is my code so far.


<input type="checkbox" name="colors" value="red" <cfif #getResultSet.colors# EQ "red">checked</cfif>>red
    <input type="checkbox" name="colors" value="blue" OR<cfif #getResultSet.colors# EQ "blue">checked</cfif>>blue
    <input type="checkbox" name="colors" value="green" OR<cfif #getResultSet.colors# EQ "green"></cfif>>green
    <input type="checkbox" name="colors" value="yellow" OR<cfif #getResultSet.colors# EQ "yellow">checked</cfif>>yellow

pass value from javascript into cfc

$
0
0

Hi,

I want to pass the value from the input field into mycfcwithout click on the submit button.  ? can you please help?

 

Thanks

You have attempted to dereference a scalar variable of type class java.lang.String as a structure wi

$
0
0

You  have  attempted to dereference a scalar variable of type class  java.lang.String as a  structure with members

Hi

 

 

I receive the error in the title bar as a result of the following code but I can't see what I'm doing wrong:

 

<cfcomponent hint="sets background colour to help users see where they are during booking">

 

<cffunction name="cellcolour" returntype="struct">
<cfargument name="progressstage" type="string" required="true">
<cfset var stagecol="StructNew()">

 

<cfset oncolour="red">
<cfset offcolour="white">

<cfswitch expression="#progressstage#">
<cfcase value="progressstage1">
<cfset stagecol.colour1="#oncolour#">
<cfset stagecol.colour2="#offcolour#">
<cfset stagecol.colour3="#offcolour#">
<cfset stagecol.colour4="#offcolour#">
<cfset stagecol.colour5="#offcolour#">
</cfcase>

 

........... etc

 

Thew line where the error occurs is <cfset stagecol.colour1="#oncolour#">.

 

Thanks in advance for any advice

 

Dave

After Installing CF9 Hotfix 2 on Lion single server, 500 Error

$
0
0

Before upgrading to OSX Lion, I uninstalled CF9. Then, I reinstalled CF9, and verified that it was working. Then, I installed the 9.01 Cumulative Hotfix 1, and finally, Cumulative Hotfix 2, following instructions from <kb2.adobe.com/cps/918/cpsid_91836.html>.  Now, when I go to 127.0.0.1/cfide/administrator/, I get this:

 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, you@example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

 

What could be causing the 500 error? I've made sure that the server is being properly shut down and restarted using ColdFusionLauncher.

CFMX 8.0.1 updater won't install!!

$
0
0
We are running Jrun 4(updater7) with a cfmx8 instance.. When I try to run the installer and point it to d:\Jrun4 It complains saying it is not a valid Jrun root directory..

Anypne else having this issue? I have multiple servers all giving the same problem.

- Alex

What is the default JRun login ID and password?

$
0
0
I installed the developer edition of ColdFusion MX7 on a Windows XP workstation. I selected the multi-server configuration with JRun. The installer asked for ColdFusion Administrator password as well as RDS Administrator password. However, it did not prompt for any ID/password for JRun4 Management Console. Is there a default user ID and password for JRun4?

Thanks.

CFFLUSH and IE

$
0
0
Hi all,

I'm having no luck with using a CFFLUSH statement to display a "please wait.." message in IE. The page still waits until the cfexecute returns a value before displaying anything.

Any ideas would be greatly appreciated. Thanks.


<CFOUTPUT>#RepeatString(" ",250)#</CFOUTPUT>

<div id="waiting">
<h3>Teleporting you now. Please wait...</h3>
</div>


<cfflush>

<cfif application.World is not "">
<cfset Bot = "c:\inetpub\zora-dev\#application.world#\bin\teleport.exe">
<cfelse>
<cfset Bot = "c:\inetpub\zora-dev\bin\teleport.exe">
</cfif>


<cfexecute
name = "#Bot#"
arguments = "#SessionId# #XCoord# #ZCoord# #CurrentHeading#"
variable = "rc"
timeout = "1000000">
</cfexecute>

Problem with Date Comparison

$
0
0
I have an input on a form set to default to todays date. I want to check to see if the date is less than todays date and if so just set it to todays date. I cannot figure out how to do this. Here is my code.

<body>
<cfset todayDate = now()>

<cfquery name="suidsearch" datasource="bldgaccess">
select * from SU_IDs
where EmpNumber = '#suid#'
</cfquery>


<table border="0" cellpadding="0" cellspacing="0" width="1109" leftmargin="0">



<tr>


<td width="84" height=21 class=pad5 style="BORDER-TOP: #ccc 1px dotted; font-weight:bold"><span class="pad5" style="BORDER-TOP: #ccc 1px dotted; font-weight:bold"><cfoutput>#form.suid#</cfoutput></span></td>

<td width="104" align="left" class=pad5 style="BORDER-TOP: #ccc 1px dotted; font-weight:bold"><span class="pad5" style="BORDER-TOP: #ccc 1px dotted; font-weight:bold"><cfoutput>#form.Name#</cfoutput></span></td>

<td width="161" height=21 align="left" class=pad5 style="BORDER-TOP: #ccc 1px dotted; font-weight:bold"><span class="pad5" style="BORDER-TOP: #ccc 1px dotted; font-weight:bold"><cfoutput>#form.bldgarea#</cfoutput></span></td>



<td width="760" align="left" class=pad5 style="BORDER-TOP: #ccc 1px dotted; font-weight:bold"><cfoutput>#form.schedule#</cfoutput></td>
</tr>

</table>

<table border="0" cellpadding="0" cellspacing="0" width="1109" leftmargin="0">
<tr>
<td width="89" class=pad5>Start Date </td>
<td width="104" class=pad5>Exiration Date </td>
<td width="916" colspan="2" class=pad5> </td>
</tr>

<tr>
<form name="form3" method="post" action="confirmation.cfm" target="_self"><td height=21 class=pad5 style="BORDER-TOP: #ccc 1px dotted">
<cfoutput>
<input type="text" name="startdate" style="width:60" value="#dateFormat( todayDate, "mm/dd/yyyy" )#">



</cfoutput>

If anyone has any ideas I would appreciate it. Thanks!

Attribute validation error for tag cfoutput

$
0
0
Ok,
I'm just setting up DW CS3 , CF8, and MySql5, and trying to getting things up and running.
Made a simple DB and used the DW Dynamic table insert but got this error. Whats up with this?
quote:


Attribute validation error for tag cfoutput.
The value of the attribute query, which is currently RS1, is invalid.

The error occurred in C:\ColdFusion8\wwwroot\mysqltest\memotest.cfm: line 6

4 : <td>description</td>
5 : </tr>
6 : <cfoutput query="RS1">
7 : <tr>
8 : <td>#RS1.ourid#</td>


Session problem (weird message from the server - CF 5)

$
0
0
When I start or end a session in ColdFusion 5 sometimes I get the following message in Mozilla (just in Mozilla):

HTTP/1.1 200 OK
Connection: close
Date: Wed, 21 Jun 2006 19:20:53 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Content-type: text/html
Page-Completion-Status: Normal

It's actually not exist in the source code but it's visible at the top of the page and also can be also viewed in DOM source-view. I think Mozilla did this but why? As I mentioned it not always happens just sometimes. In other browsers it works fine. It only happens when I redirect a page by CF after deleting the session:

logout.cfm
----------------
<cflock timeout="20" scope="Session" type="Exclusive">
<cfset structDelete(Session, "mysession")>
</cflock>

<cflocation url="welcome.cfm">
<cfabort>

Has anybody coped with a problem similar this?

Dedicated Hosting

$
0
0
Hi Guys

Just wondering what dedicated coldfusion hosting provider you guys prefer.

Cheers

Using a Forward Slash (/) in CFFILE Destination

$
0
0
Hi everyone,
I couldn't find this anywhere in the forums (at least not searching for "cffile forward slash", "cffile /", or "cffile destination") and hope I'm posting this in the correct place (please let me know if not). I need to use a forward slash (/) in the name of a file using cffile, but when I try to set destination = "c:\directory\file/name.txt" cf throws an exception and tells me that the system can't find the "c:\directory\file\" directory. Is there a way to froce ColdFusion to interpret the forward slash as part of the file name instead of a directory structure character? By the way I'm using ColdFusion 6.1 Standard Edition on a Windows box (obviously).

Drop down boxes

$
0
0
I have 2 database tables - one contains a list of categories and one contains a list of specific items. I want to have two drop down boxes. When you select the category from the first, it should automatically fill the second with all of the items from that category. Right now we are using JS to do this, but I was wondering if it could be done with CF? This is on a form that calls itself, so it is important to have the previously selected category already in the drop down box when the form calls itself. (It calls itself if you select "edit" rather than "submit")

There are over a hundred items in the second list, so a series of if statements would be impractical.

Need CF Shopping Cart

$
0
0
Any one know of CF Shopping Cart I could buy to set some stuff up quickly? Do not have the time to develop one now. Our gateway is Authorize.net.

Thanks

ISS not recognizing .cfm files

$
0
0
I recently installed MX7 with no updaters onto a laptop running IIS and WinXP SP2 and IIS 5.1

I can resolve an .htm and .html file in the root.

When I try to open a .cfm file, I am asked if I want to edit it or save it.

I used wsconfig and removed, then readded, IIS. I stopped and started the CF services as suggested by the WSconfig tool.

No dice.

Anyone have any suggestions besides RTFM?

ListFind does not collaborate

$
0
0
<cfset queryString = "Category=Music&type=BrowseNode&keywords=265640&page=1&moreparams=here">

<cfset pagePos = ListFind(queryString, "page=", "&")>
returns zero.

Please advise.

Setting up an Access Datasource

$
0
0
Hi,
I'm using CF7 and am running it on Debian Sarge intergrated with Apache 2.0. I need to set up an access database as a datasource, but when I try to add the datasource, I only have choices between "Mysql" or "Microsoft SQL server"
Is there anything I should do to enable Access?

dynamic image woes

$
0
0
I am trying to display anywhere from 1- 7 thumbnails that may or may not be available. The filename for each thumb is stored in the database. All i get is a placeholder instead of an image. I only want to display the image if a filename exists for it in the database. If it does not exist in the database , I do not want to display anything! (image place holder for example). Please see code-- I am novice but getting better - thanks to this forum.


<!---seems to work -a list of projects is generated by passing values in a hotspot's url--->
<cfquery name="cool" datasource="projects">

SELECT endDate, region, county, countyID, roadname, bmp, emp, proj, estcost, authfunds, paid, narrative, software, image1, image2, image3, image4, image5, image6, image7, thumb1, thumb2, thumb3, thumb4, thumb5, thumb6, thumb7

FROM completeTest, completeImagesRecent

WHERE completeTest.projectID=completeImagesRecent.projectID

</cfquery>

<!--- this query is used to pass values to the project details page when a user clicks on a project-- it works--->
<cfquery name="cool" datasource="projects">

SELECT * FROM completeTest,completeImagesRecent
where countyid=#url.countyid#
and completeTest.projectID=completeImagesRecent.projectID
</cfquery>

<!--- finally this code displays six image place holders an no images but does not generate an error--->

<cfoutput>
<cfif #thumb1# EQ " " >
<cfelse>
</cfif>
<img src="#thumb1#" /><br />


<cfif #thumb2# EQ " " >
<cfelse>
</cfif>
<img src="#thumb2#" /><br />


<cfif #thumb3# EQ " ">
<cfelse>
</cfif>
<img src="#thumb3#" /><br />


<cfif #thumb4# EQ " ">
<cfelse>
</cfif>

<img src="#thumb4#" /><br />



<cfif #thumb5# EQ " ">
<cfelse>
</cfif>
<img src="#thumb5#" /><br />


<cfif #thumb6# EQ " ">
<cfelse>
</cfif>

<img src="#thumb6#" /><br />

</cfoutput>

Viewing all 64538 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>