/t5/coldfusion-discussions/help-with-oracle-clob/td-p/98474Jan 27, 2009
Jan 27, 2009
Copy link to clipboard
Copied
I have CF8 and Oracle 10g. I am trying to write a cfc for use
by a Flex3 application over the AMF channel. What should the
ReturnType be for the retieve function? If I use Query, and return
the CLOB as a QueryObject, I can easily put the CLOB into a
datagrid. But I really want to put the CLOB into a RichTextEdit
control, allow the user to edit, and call an update function to put
it back in the CLOB. I'm just testing right now. the real
application will use a cfc to pull back a lot of data to populate a
form that will have seven or eight CLOBs for different remark
areas.
I have posted this question here because there isn't a
separate forum for questions from the intersection of CF and Flex.
Possibly Acrobat forms would be a better solution than Flex
for the UI, but I have no experience using Acrobat to do the data
retrieve and update.
Thank you for any advice.
Scott
I'm not sure what you are asking for here. As far as
ColdFusion and
Flex is concerned a CLOB is simply a large quantity of text.
As long as
the server, client and the bandwidth in between can handle
the text
size; there is nothing different with a CLOB string then the
string
"Hello World" and they would be handled the same.
/t5/coldfusion-discussions/help-with-oracle-clob/m-p/98475#M9640Jan 27, 2009
Jan 27, 2009
Copy link to clipboard
Copied
I'm not sure what you are asking for here. As far as
ColdFusion and
Flex is concerned a CLOB is simply a large quantity of text.
As long as
the server, client and the bandwidth in between can handle
the text
size; there is nothing different with a CLOB string then the
string
"Hello World" and they would be handled the same.
Ian,
So what you are saying is I should use String as the
cfFunction ReturnType?
I was just unsure if there was any other way I should be
returning it. Because I saw that, for the Update, I should use
cf_sql_CLOB as the datatype.
emerys wrote:
> Ian,
> So what you are saying is I should use String as the
cfFunction ReturnType?
> I was just unsure if there was any other way I should be
returning it. Because
> I saw that, for the Update, I should use cf_sql_CLOB as
the datatype.
>
As far as I know, while to a database it is a CLOB. But to
ColdFusion
and Flex it is just a really big string.
What confused me was that CF .cfcs are the middleman here,
and just like you said you either use the CLOB or don't depending
on which way you are facing. Here are two simple examples from my
.cfc that work. A Retrieve function and an Update function. The
description is the CLOB, but the .cfc only uses the CLOB type when
it is going back into ORACLE.