Coldfusion cfcs point to flex
I am working on a project where coldfusion(backend) and Flex(front end). I need to point Coldfusion CFCs to Flex application.
Can anybody please guide me how to do this.
Thanks in advance.
Best Regards
Anil
Hi Anil,
If you are using Flash Builder 4 or later, you can go to Data/Services view to configure ColdFusion CFCs in Flex applications.
Please follow the below url for configuring a CFC.
Adobe Flex 4 * Connecting to data services
Regards,
Hari
Similar Messages
-
Bad news if I can't debug cfcs in a flex project
I'm trying to debug a cfc in a flex project Coldfusion builder installed as a plugin is Flash builder 4
But I'm getting a message saying:
File does not belong to a coldfusion project. Apply Coldfusion nature to the project to which the file belongs.
This is bad news if I can't debug cfcs in a flex projectHere are the targets (simplified) that are specific to the cfml export. The real build.xml reads a build.properties file for the variables, and main runs the flex build first:
<!-- Refresh CFML -->
<property name="SVN.USERNAME" value="MY SVN USERNAME"/><!-- change to your svn username -->
<property name="SVN.PASSWORD" value="MY SVN PASSWORD"/><!-- change to your svn password -->
<property name="SVN.PROJECT_URL" value="http://mysvnproject.com/trunk"/><!-- change to your svn url -->
<property name="BUILD.EXPORT_DIR" value="c:/CFML/project/export/path"/><!-- change to your CFML project path -->
<property name="DEPLOY_DIR" value="c:/flex/project/deploy/path"/><!-- change to your Flex project path -->
<!-- runs the targets -->
<target name="main" depends="export-cfml, copy-cfml"/>
<target name="export-cfml" depends="find_revision, check-svn-build" unless="build.exists">
<echo>Lates SVN build did not exist, export it</echo>
<!-- export from svn -->
<exec executable="svn">
<arg line="export "${SVN.PROJECT_URL}" ${build.dir} -r ${revision.number} --username ${SVN.USERNAME} --password ${SVN.PASSWORD}"/>
</exec>
</target>
<!-- Get the latest revision number -->
<target name="find_revision" description="Sets property 'revision.number' to the head svn revision">
<!-- Use SVN to learn the latest revision number -->
<exec executable="svn" outputproperty="revision.number">
<arg line="info "${SVN.PROJECT_URL}""/>
<redirector>
<outputfilterchain>
<linecontainsregexp>
<regexp pattern='^Last Changed Rev' />
</linecontainsregexp>
<tokenfilter>
<replaceregex pattern='[\D]+([\d]+)' replace="\1" />
</tokenfilter>
</outputfilterchain>
</redirector>
</exec>
<echo message="Current SVN Revision: ${revision.number}"/>
</target>
<!-- we only export from svn if we haven't already for current revision.number -->
<target name="check-svn-build">
<!-- setup the build dir name based on the latest revision number -->
<property name="build.dir" value="${BUILD.EXPORT_DIR}/${revision.number}" />
<available file="${build.dir}" property="build.exists" value="true" type="dir" />
<echo>SVN build exists: ${build.exists}</echo>
</target>
<!-- we always copy from the latest svn export dir to the flex project -->
<target name="copy-cfml">
<echo>Copy CFML to Flex Project</echo>
<!-- copy cfml to flex project -->
<copy todir="${DEPLOY_DIR}/www">
<fileset dir="${build.dir}"/>
</copy>
</target>
Note: I quickly stripped out all "extra" stuff we do for our project, so this is untested and may contain typos. -
Revision: 3966
Author: [email protected]
Date: 2008-10-30 06:40:39 -0700 (Thu, 30 Oct 2008)
Log Message:
Fix incremental compile which broke at some point since Flex 3 due to compiler changes.
ResourceManager.fetch() assumes a local file and uses java.io.File to check if the file exists. Files within swcs such as framework.swc$Assets.swf and framework.swc$default.css will never exist so they triggered a recompile. For now, put the dependency on the swcArchive file itself since that does exist in the file system.
The dependency checking is still weak and could use some more work but at least now it doesn't recompile every time when there are no changes.
QE Notes: None
Doc Notes: None
Bugs: - SDK-17715
Reviewer: Paul
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-17715
Modified Paths:
flex/sdk/trunk/modules/webtier/j2ee/servlet/src/java/flex/webtier/server/j2ee/BaseCompile Filter.javaI enabled the settings in the labview.ini
I found some text files that looked like logs "LabVIEW_8.5_Matt_cur.txt" "LabVIEW_8.5_Matt_log.txt". Which contained some error logs and call after I tried to compile. I attached some logs from my attempts to compile. For the errors that referenced a vi and a statechart guard, I remade the vi and the referenced guard. The others all have
..... /drawmgr.cpp(3570) : DAbort: Couldn't create 24 pen Error ==0
in common and some had a
....../image.cpp(13927) : DWarn: could not get hdc error = 0
warning. I'm guesing these are related to the graphical problem I'm getting with explorer. But since I can't decode the call stack I'm not sure what the source is (assuming the cause is within the call stack).
It looks like LV 8.6 Beta is going to open soon. Does anyone know if Vision will work with it? And Is there any kind of obligation to use the beta regularly? Since if it doesn't help much, I'd probably just end up removing it.
Matt W
Attachments:
errors.zip 7 KB -
Issue modeling data from Coldfusion cfc
Problem: Configure return type in Flash Builder (using with Coldfusion) Mysql 5 driver (testing using localhost with CF also acting as the web server)
I have tried going thru the steps presented in the video presentations for hooking Flash Builder to Coldfusion query data. I provide a name for a Custom data type, provide variables (that are optionally required by the CFC), and then proceed. The operation comes back with the following message.
The operation returned a response of the type "Object"
You may either update server code to fix the return data or CLICK OK to set "Objecdt" as the returntype of this operation
In all of the videos I have watched, Flash Builder auto-magically introspected the table that was being called and knew the data types of each piece of the data returned by the query. In my case, I get the above message and cannot proceed.
CFM Testing
I have tested the query by calling the CFC method via a coldfusion page and dumping the result. Everything is works with that.
Action:
I would like to get past the problem and learn what if anything I am doing wrong with this. Your input is appreciated. I have been learning CF and am getting pretty comfortable with that product. I would like to move forward with Flash Builder. I have some basic knowledge of Flex 3.
Thanks for your help
Background:
CFC signature
<cffunction name="getJewels" access="remote" returntype="any">
<cfargument name="jType" type="string" required="no" />
<cfargument name="jActive" type="boolean" required="no" />
<cfargument name="jOrder" type="boolean" required="no" />
Server Settings > Settings Summary
Report generated on Jul 08, 2009 11:07 AM
This report shows the status of all ColdFusion configuration settings. To display the area of the ColdFusion Administrator where you can edit the group settings, click any of the groups in the report.
Version Information
Server Details
Server Product
ColdFusion
Version
8,0,0,176276
Edition
Developer
Serial Number
Operating System
Windows XP
OS Version
5.1
Adobe Driver Version
3.6 (Build 0017)
JVM Details
Java Version
1.6.0_01
Java Vendor
Sun Microsystems Inc.
Java Vendor URL
http://java.sun.com/
Java Home
C:\ColdFusion8\runtime\jre
Java File Encoding
Cp1252
Java Default Locale
en_US
File Separator
Path Separator
Line Separator
Chr(13)
User Name
SYSTEM
User Home
C:\
User Dir
C:\ColdFusion8\runtime\bin
Java VM Specification Version
1.0
Java VM Specification Vendor
Sun Microsystems Inc.
Java VM Specification Name
Java Virtual Machine Specification
Java VM Version
1.6.0_01-b06
Java VM Vendor
Sun Microsystems Inc.
Java VM Name
Java HotSpot(TM) Server VM
Java Specification Version
1.6
Java Specification Vendor
Sun Microsystems Inc.
Java Specification Name
Java Platform API Specification
Java Class Version
50.0
This is the dataset I am trying to get at.
dstones
CF data source name
dstones
Description
Dancing stones databases
Driver
MySQL5
JDBC URL
jdbc:mysql://localhost:3306/hmsollie?
Username
root
Login timeout
30 seconds
Long text buffer size
64000
Timeout
1200 seconds
Maintain connections
Yes
Interval
420 seconds
Restricted SQL operations
Disable connections
No
Data & Services > Flex Integration
Enable Flash Remoting support
Lets a Flash client connect to this ColdFusion server and invoke ColdFusion Components (CFCs). NOTE: Disabling this feature also disables ColdFusion server monitoring and multiserver monitoring.
Enable Remote Adobe LiveCycle Data Management access
Lets LiveCycle Data Services ES connect to this ColdFusion server through RMI and use CFCs to read and update data that supports a Flex application. If you are not using this feature, disable it. This does not affect LiveCycle Data Services ES integrated in to the ColdFusion installation.
Server Identity:
If you are running more than one instance of ColdFusion on this machine, you must configure each instance with a unique ID.
Enable RMI over SSL for Data Management
Lets you use Secure Socket Layer (SSL) encryption for the RMI communication between Flex and ColdFusion. This is not required unless you are transmitting authentication information or confidential data between Flex and ColdFusion over an unsecured network. You must provide a keystore file and keystore password. For instructions on how to create a keystore file, see the online Help.
Full path to keystore:
Keystore password:
Select IP addresses where LiveCycle Data Services are running
To secure the LiveCycle Data Services ES integration point, the hosts that are allowed to perform Data Management operations are restricted. If you are running LiveCycle Data Services ES on a different computer, specify its IP address here. By default, only the local computer can perform Data Management operations in ColdFusion.
IP Address
View or Remove selected IP addresses where LiveCycle Data Services ES are runningSunil,
I have found the problem. When initialy given the arguments list to fill in "Configure Return Type", I filled in a string argument as "E". This gives a return of object. To accurately use the Configure Return Type, I needed to just fill in a string as E.
See the Screen Prints on the error
I have tested the following functionality and it appears to work ok
1. I have tested with no parms to the CFC query method
2. I have tested using Dynamic SQL based on variables set before the query in a CFC method
3. I have tested passing one string argument in from Flash Builder to a CFC method
4. I have tested passing a string and boolean argument From Flash Builder to a CFC method
For 3 and 4, I had make some slight changes o set the arguments that were being sent to CFC in Flash Builder before the call
It all worked.
**** New Issue ***
I have another runtime issue involving states that I uncovered in my testing where buttons are the screen were being covered up when I used some of the DataGrid Controls. If I can repeat it, I will post it and then let you guys let me know how to work around this.
I am a Flex/AS Novice, so I may be mis-understanding something on this new issue.
Thanks. -
I have a CFC which simply calls the DB and returns the
results to the Flex app.
CFC:
<cfcomponent>
<cffunction name="runQuery" output="false"
access="public" returntype="Query">
<cfquery name="qry_login" datasource="EWPROJ">
SELECT *
FROM ROBERTTEST
</cfquery>
<cfreturn qry_login>
</cffunction>
</cfcomponent>
Simple enough.......
Here is my Flex file...
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" creationComplete="initApp();">
<mx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
import mx.collections.ArrayCollection;
[Bindable]
private var qry_result:ArrayCollection;
private function initApp():void //first thing to load
callCFC.runQuery()
private function resultHandler(event:ResultEvent):void
var qry_result:ArrayCollection = new ArrayCollection();
//New Array Object called p1
qry_result.source=event.result as Array;
trace(qry_result);
]]>
</mx:Script>
<mx:RemoteObject id="callCFC" destination="ColdFusion"
source="CFIDE.samples.FlexToCFC.CFC.myCFC"
result="resultHandler(event)"
showBusyCursor="true" />
</mx:Application>
my problem is within the [resultHandler] I want to simply
create a variable that will contain my results of the object I
passed so I can trace it to the screen.... I know that the object
is returning correctly, by tracing result.event. What am I doing
wrong here, cause it shows nothing.
I'm guessing that my problem is that I am not putting the
object into some sort of array or string where I can access it...
How do I do this correctly? Thanks everyone.Ahhh,,, yes, I appologize. I will make better headings next
time.. Okay, I tried your solution and it printed out what I wanted
and more. SWEET!! Now I think all I need to do is put it in an
associated array so I can reference things better. Not sure yet,
but I'll play with it. Thanks again... Genius! BTW, here is the
output when I ran it:
mx.collections::ArrayCollection)#0
filterFunction = (null)
length = 6
list = (mx.collections::ArrayList)#1
length = 6
source = (Array)#2
[0] (Object)#3
NAME = "Rob Capilli"
TYPE = "Male"
[1] (Object)#4
NAME = "Meatball"
TYPE = "Cat"
[2] (Object)#5
NAME = "Sanket"
TYPE = "male"
[3] (Object)#6
NAME = "Sarah"
TYPE = "Female"
[4] (Object)#7
NAME = "1"
TYPE = "1"
[5] (Object)#8
NAME = ""
TYPE = ""
uid = "21B5BECE-6A2E-6940-9543-E830E43DAAFA"
sort = (null)
source = (Array)#2 -
I've been nose down in numerous Flex resources and due to the
abundance of "options" hope those more experienced can provide
clarity (thanks in advance for all responses btw).
1.) Flex can connect in various ways to various data
providers -- but presumably should be most efficient to a CF8
server(?) due to non-XML conversions (via RDS?/AMF?/ec4x???).
2.) Per the above is Flex able to call cfc's (presumably the
best format) ONLY via:
<mx:RemoteObject id="helloWorld" destination="Coldfusion"
source="NewCFComponent">
<mx:method name="GetHello"
result="GetHello_handler(event)" />
</mx:RemoteObject>
and moreover, is this resulting error indicative of a problem
in the Flex application properties or in the Remote Object:
[RPC Fault faultString="[MessagingError message='Destination
'Coldfusion' either does not exist or the destination has no
channels defined (and the application does not define any default
channels.)']" faultCode="InvokeFailed" faultDetail="Couldn't
establish a connection to 'Coldfusion'"]
3.) Following up on Q2, when defining a new flex project with
ColdFusion, can someone please explain the
"Use remote object access service" checkbox and LiveCycle
DataServices/ColdFusion Flash Remoting choices? Livedocs is worse
than useless, every demo app seems based on using localhost rather
than a network devServer so this and the next (configure cf server)
page might as well be hieroglyphics IMHO (ie. difference between CF
root folder, Web root and Root URL ???????)
4) I understand(?) that LiveCycle Data Services provides
extra features like Instant messaging, however requires a
(separate?) installation with "an application server" (though I've
also recall reading that LCDS is built in CF8)??? If my current
DevServer is IIS and Coldfusion, is this either/or to installing
"an application server" on the same machine? And is the LCDS
installation supplementary to the CF server or does it replace it?
Again, thanks in advance, I realize I may be waaay out in
left field on some of these -- but that is why I'm posting after
all :)Oh also, I'm somewhat comfortable with DW CS3 (both HTML and
to create cfc's) and am just starting with Flex (Eclipse with FB3
and CF plugins installed) but would love suggestions on how to work
end to end so to speak.
Specifically, creating cfc's in DW, then presumably having to
import them into my Flex project seems less useful than say
incorporating the eclipse CF perspective but I cant seem to google
any results for such incorporating or even for using the cf-eclipse
perspective. Am I missing something ? -
Error in CFC - message to Flex
I am sending messages to a flex program via a CFC reading
messages off of a socket (gateway is called asocket - the flex
gateway is ows35_example4 via LCDM).
The messages are getting to the flex program but errors are
showing up in cfserver.log, eventgateway.log and exception.log that
says:
Error invoking CFC for gateway asocket: Unable to locate the
body entry in the outgoing message structure..
once for each message that is sent. The enclosed code shows
the CFC running the asocket gateway - which definitely has a "body"
entry.
How do I stop this error ? Is there something wrong with the
CFC ?
Using Coldfusion 8.0.0.1786276
-thank youUgh .... I figured this out.
I was using HTTP comments "<!-- -->" (that I did not
include in the source above) instead of the CF comments "<!---
--->".
What you don't see is that there is another
SendGatewayMessage that was (I thought) commented out using the
messageObject Struct for the message. It doesn't have a body part
so it makes sense that the error happened.
I changed the HTTP comments to CF comments and the errors
went away.
Note to self ... be careful of your comments. -
Problems with ColdFusion Extensions and CF/Flex Application Wizard
I have configured the Eclipse RDS according to the
instructions in the help documentation. The RDS Fileview and
Dataview work OK, but I haven’t had any luck with the
Services Browser: when I try to expand (+) the localhost item, the
only thing that appears is the message “Unable to get meta
data for cfc.”
The Dreamweaver 8 Components panel, which shows exactly the
same information, works fine.
Perhaps related to the above: when I create a Flex project
with the CF/Flex Application Wizard and look at the project
properties, in the Flex Server section, I get "Since this project
does not use a server, these setting do not apply". I find this
odd: a ColdFusion project that doesn’t use a server? Anyway,
using the wizard, I have not been able to create a simple project
that works.
If anyone has had similar problems and has been able to solve
them, I would appreciate some light on the subject.
CarlosWell I was able to resolve this problem by un-installing and
re-installing CF.
I did some further testing (un/re-install again) and it
appears that this problem occurs when CF is installed in devnet
version mode and not if in developer mode.
To check if CF is installed in devnet mode look in the CF
Administrator under "server settings->settings
summary->version information" You will see a notation for
devnet.
I also did a little poking around and this happens whenever
you install CF using a certain range license keys. The keys in this
range are valid keys for installation but they alter some critical
settings in CF (the flash paper/pdf watermark and apparently some
RDS stuff) The solution is to install with a non dev-net key or in
developer mode. -
Coldfusion CFC access with Flash Builder
Is it possible to access CFC's for development on a remote server without shared netword drive access?
ThanksYes. No need for local CF server or LAN.
All you need http access to your remote CF Server via the endpoint url in your remoteObject call http://www.yourdomain.com/flex2gateway/
When debugging or running Flex web or air app locally, you can still get data from your remote CF server.
<s:RemoteObject
id="cfdata" showBusyCursor="true"
destination="ColdFusion" endpoint="http://www.yourdomain.com/flex2gateway/"
source="mycfcpath.mycfc">
<s:method name="getPhotos" result="getPhotos_Result(event)" />
</s:RemoteObject>
Hope this helps.
Don -
Upgrading from Coldfusion 8 to 10, Flex won't work
Coldfusion 10
Flex 3
Existing Flash Application works with Coldfusion 8
Flex Integration is turned on.
Running latest update 12
Linux Machine
When I bring up the application I get the following error:
mx.messaging.channels::AMFChannel)#3
initialDestinationId = (null)
messageAgents = (Array)#8
[0] (mx.rpc::AsyncRequest)#9
authenticated = false
autoConnect = true
channelSet = (mx.messaging::ChannelSet)#5
clientId = (null)
connected = false
defaultHeaders = (null)
destination = "ColdFusion"
id = "2E20487A-B02C-CB91-E9B5-78116236D96C"
reconnectAttempts = 0
reconnectInterval = 0
requestTimeout = -1
subtopic = ""
connected = false
connectTimeout = -1
enableSmallMessages = true
endpoint = "http://192.168.0.17/flex2gateway/"
failoverURIs = (Array)#10
id = "my-cfamf"
mpiEnabled = false
netConnection = (flash.net::NetConnection)#11
client = (mx.messaging.channels::AMFChannel)#3
connected = false
objectEncoding = 3
proxyType = "none"
uri = "http://192.168.0.17/flex2gateway/"
piggybackingEnabled = false
polling = false
pollingEnabled = false
pollingInterval = 3000
protocol = "http"
reconnecting = false
recordMessageSizes = false
recordMessageTimes = false
requestTimeout = -1
uri =
etc...
I have done the following:
http://192.168.0.17/flashservices/gateway ---> Page Not found
http://192.168.0.17/flashservices/gateway/ ---> Page Not found
http://forums.adobe.com/message/5621721#5621721
BrianHi, I get the same issue with flex, you only need edit the "mod_jk.so" file.
here is a link with the solution
http://confusionblog.com/2013/04/apache-debian-coldfusion-10-flex2gateway-404/ -
Need to encrypt string in ColdFusion and Decrypt in Flex
My company is developing a standalone, offline Flex/AIR application. When users of the Flex/AIR app. want to activate the application, we will send them an activation file that contains an encrypted string. The string will hold the unique set-up data for the specific copy of the Flex/AIR app. The activation file will need to be generated on our central system which is written in ColdFusion. The Flex/AIR application must read the file and decrypt the string.
Are there any encryption/decryption options that are compatible with ColdFusion 8 and Flex 4?
Thanks.
P.S. The Flex/AIR app. runs offline, so I am not referring to encryption of communications between a ColdFusion server and Flex.srikanth n wrote:
> Can anybody help me to resolve this issue.
>
> Thanks in advance.
>
>
My first thought is CF's list functions. You can declare any
character(s) you want to be a list delimiter. In you example
I would
use '-' and 'x' as the delimiter. A couple of examples.
<cfset phoneString = '123-456-7890 x1234'>
<cfset delimList = '-x '>
<cfoutput>
Areacode: #listFirst(phoneString,delimList)#<br/>
Exchange: #listGetAt(phoneString,2,delimList)#<br/>
Number: #listGetAt(phoneString,3,delimList)#<br/>
Extension: #listLast(phoneString,delimList)#
</cfoutput> -
HELP please with CFC data into Flex
Hi all,
*EDIT*
New question. I have a dummy app set up that calls a CFC function via RemoteObject and returns my query. My query is then bound to a DataGrid and everything imports nicely. I simply just do acData = ArrayCollection(event.result); and the grid populates fine. However, if I try to access individual elements of my ArrayCollection, for instance acData[0].typename , it returns a blank value and/or undefined. Why can't I access individual pieces but it will attach to a datagrid no problem?
*Original Issue*
I currently have a flex app built calling a function from my CFC. The CFC simply calls the database and returns the query into flex (returntype="query"). In flex, I have it plugging these records into a comboBox. The comboBox has 4 objects in it, but not my data. It knows how many records are in the query but I can't get my data. If I try accessing the data it says it is undefined. What am I missing? I swear I had this working last week and now it doesn't. Driving me nuts and I'm about to lose my mind.
CFC function:
<cffunction name="getExceptionTypes" access="remote" returntype="query">
<cfquery name="getTypes" datasource="#xGIS#" username="#xIDGIS#" password="#xPWGIS#">
SELECT typename, xid
FROM #xToGIS#.ProfileExceptionTypes
WHERE DisplayInDropDown = 'Y'
</cfquery>
<cfdocument filename="exceptionTypes.pdf" format="pdf" overwrite="yes">
<cfdump var="#getTypes#">
</cfdocument>
<cfreturn getTypes>
</cffunction>
Flex code (relavent pieces only):
[Bindable] private var exceptionList:ArrayCollection = new ArrayCollection();
private function fillExceptionTypes(event:ResultEvent):void
var tempList:ArrayCollection = ArrayCollection(event.result);
for (var i:int = 0; i < tempList.length; i++)
exceptionList.addItem({ID: tempList[i].xid, Name: tempList[i].typename});
My comboBox is set up with the dataprovider as exceptionList and the labelName is "Name". This worked before but I'm not sure what happened or why it won't work now!
Thanks.Follow the instructions in iOS: How to back up your data and set up your device as a new device http://support.apple.com/kb/HT4137 to restore the device to factory settings.
Once you have setup the device as a new one, you can then sync it back with your iTunes account and all your music, apps, contacts and any other content sync'ed with iTunes will be loaded on the device. Any content that is stored only on the device and not sync'ed with iTunes, like app logins or data, will be lost during this process. Be forewarned that this is a long process and can take a couple of hours or more to complete. This can be painful, but it is necessarily so to prevent users from working around the security settings. After the restore is complete, you can setup a new Restrictions passcode. Make a note of the passcode to avoid this situation in future.
Cheers, Tom -
Extension Point for Flex Builder 3
Hi, found that Flex Builder has a lot of extension points, but I try to extend those extensions but i found only schema for the debug extension point, is there a way for me to extend the others extension point?
Tks,Adobe Flex Builder is an integrated development environment . is ok, very intuitive.
-
Updating a DB Table using ColdFusion(CFC)
I need help BAD... please
I have this app. most stuff works perfect. I just can seem to
append the form fields to each row that gets checked in the
Datagrid. I get errors with the dateField also. Can anyone help?
This is my source:
http://www.youngsmarket.com/youngsmarket/programs/national/nataccpro/bin/srcview/index.htm l
This is the App in its current state. The form fileds update
if a date is not selected. But I cant send the DataGrid or the date
form fields:
http://www.youngsmarket.com/youngsmarket/programs/national/nataccpro/bin/NatAccPro.cfm?Sup plierID=30
My CFC that I want to UPDATE the table (I know need a loop or
something) is like this:
<cffunction name="addData" access="remote" output="false"
hint="I insert data" returntype="void">
<cfargument name="user" type="struct" required="true"
/>
<CFQUERY DATASOURCE="NationalAccounts">
INSERT INTO Programs
(SupplierID, Supplier, DBA, ItemID, Item, StartDate, EndDate,
ProgramType, Status, Priority, Descrip, FollowUp, TrackComp,
PresLocal, TrackSales)
values
('#Session.SupID#', '#Session.Sup#', '#user.DBA#',
'#user.ItemID#', '#user.Item#', '#user.StartDate#',
'#user.EndDate#', '#user.ProgramType#', '#user.Status#',
'#user.Priority#', '#user.Descrip#', '#user.FollowUp#',
'#user.TrackComp#', '#user.PresLocal#', '#user.TrackSales#')
</CFQUERY>
</cffunction>
Thanks
GeorgeHi
If at all you are using any DOWNLOAD and UPLOAD related function modules you can't run the BDC program in the background.
If it is a Z table update you can create the table maintenance generator.
other wise you can do it.
You can run session in background.
Reward points if useful
Regards
Anji -
JRunServelt Error running coldfusion CFC
Hope someone can help! Just started using Coldfusion
Developer editon on OSX. Everything seems to work so far. My
problem is that I am getting a JRun Servlet Error 500 null error
message when I try to see if it's functiong correctly I get this
error.
Example:
http://localhost:8500/Simple.cfc?wsdlI think I saw someone mention that Mac Runs on 8300
so it would be
http://localhost:8300/folder/filename.cfm
Or it could be
http://localhost:8500/folder/filename.cfm
depending on the port you are running CF on.
You can also of course open the CF Administrator to
make sure CF is working if that's what you are doing.
Your file name appears to say that you are trying to open a
CFC. In that case, I think you are only going to see the
CFC code since it's not really a page with HTML on it.
Maybe you are looking for
-
Visual Studio Visual Basic 6.0 Professional - License
Hi, As per the information available online, Visual Basic 6.0 is not supported by Microsoft. Query: This product (Visual Basic 6.0 Professional) was being used with Windows XP and now as part of migration will be moved to Windows 7. Can you please c
-
Help required in additing custom attribute to Item list view
Hi Experts, I need to add custom attribute(defined in Customer_i) to BTADMIN_I (list type) context node. I have tried adding the attribute using the 'Create Attribute' wizard in the work bench making use of the BOL Model relationship. The attribute
-
Webservice called from inside of Workspace
Hi There, I have created a simple PDF which uses the LDAP service to lookup somebodies manager from their email address. For testing purposes I have put a script in the form-ready event of the field which contains the email address. This works perfec
-
Messages imported from other Mac Mail accounts are empty
I took great care in making sure my business mail over the past several years was preserved on my G4. A separate folder was created for incoming and sent messages for each year, and each year I kept the folders from the previous year online in Mail f
-
Cannot automount CDROM in GNOME (SOLVED)
I'm using GNOME with udev, hal and gnome-volume-manager and the CDROM worked perfectly (mount when disk inserted) until today. It just no longer work, and I cannot find any problem in the log file (messages, dmesg, ...). I can add the cdrom in fstab