Quantcast
Channel: Adobe Community : All Content - ColdFusion
Viewing all 5979 articles
Browse latest View live

QoQ crostab data

$
0
0

Hi All, still working on QoQ.

How can I pivot or unpivot the data from a QoQ? I know I can do this before the QoQ, but I have a complex collection of data and I want to use the QoQ result.

I am thinking on looping thru the query and create a new query.

Does anyone know any generic function? Any ideas?

Thanks in advanced.


i cant open uploaded documents

$
0
0

i am running CF10 on w2k8r2 with Oracle 11g backend. hf-018 installed.

Our documents are uploaded into oracle as bfiles,  up til a week or so ago we had no problems with uploading or opening  these files. Now when i try to open an uploaded document it hangs.

 

is anyone else running into this?

referencing dynamic field names

$
0
0

I'm having an issue testing a form field for a null condition.  The field names on the form are created dynamically as the form is created based on a query that returns a list of documents uploaded by a user. Each row will contain the document ID, document title and file name. As I loop through the query I create the form field name for each row by attaching the document ID to a string. Here is the code that creates the form:

<cfformaction="ec_process_attachment_upld.cfm"  method="post"enctype="multipart/form-data">  

<cfoutput>

<cfif #get_attachment_list.RecordCount# GT0>

       <tableborder="1">

       <cfloopquery="get_attachment_list">

             <cfsetf_name = "upld_attachment_file"& #attachment_id#>

             <tr>

                    <td>#attachment_name#</td>

           <td><input type="file" name="#f_name#" value=""></td>

           <td>Delete</td>

       </tr>

       </cfloop>

       </table>

</cfif>

</cfoutput>


So, the field names generated will be upld_attachment_file1, upld_attachment_file2, etc.

 

Here is the code that does the processing of the form:

<cfloopquery="get_attachment_info">         

       <cfsetf_name = "upld_attachment_file"& #attachment_id#>

       <cfsett_var = "form."& "#f_name#">

                   

       <cfiflen(#t_var#) GT0>

             Do stuff

       </cfif>

  </cfloop>

 

The query here is the same and the one that created form. As I loop through it, I'm again creating the field name on the fly. The problem comes in the CFIF statement when I try to test to see if the field is null or not. The test ends up testing the variable that hold the form field name rather than the form field itself. How can I test the form field?

 

Thanks

 

DW

Quality Fake Passport ,Visa,Driving License,ID CARDS,etc ?

$
0
0

we produce best Quality Novelty documents IDs and Passports, and Drivers license etc buy now high quality-We have the best

HOLOGRAMS AND DUPLICATING MACHINES With over 13million of out documents

circulating over the world.

-IDs Scan-yes...

-HOLOGRAMS: IDENTICAL

-BAR CODES: IDS SCAN

-UV: YES

FAKE and Real IDS WITH FAST SHIPPING - EMAIL SUPPORT

 

 

 

WhatsApp::::+237690914969

SKYPE: .....................( douglaswilliam411)

Tel/ ..............+237 690914969

Contact e-mails: (milleralexander366@gmail.com ).

CF 11 Adobe ColdFusion Launcher Application- Maxing out CPU memory

$
0
0

I have installed the Coldfusion 11 Standard Edition in Windows Server 2012 R2 with 2GB RAM and IIS 8.5. “Adobe ColdFusion Launcher Application” exe consumes more CPU memory in the process say around 86% and slows down or stops running the Application. The Application services goes down and URL throws Service unavailable error. Please help.

Process - Copy.jpg

Coldfusion2016 service wouldn't start

$
0
0

I am working on Coldfusion2016 installation. ColdFusion service would not start. I ran coldfusion.exe. There is an error indicating that " Error occurred during initialization of VM. Cold not reserve enough space for 1048576KB object heap".

How to load JSON file or CSV file into oracle database using ColdFusion ? Please tell me ASAP

$
0
0

Hi ColdFusion Team,

 

How to load JSON file or CSV file into oracle database using ColdFusion ? Please tell me ASAP

 

Thanks in Advance

How to load JSON file data to database using ColdFusin scripts

$
0
0

Hi Team,

 

How to load JSON file data to database using ColdFusin scripts? Could you please reply me with code or realted links to my mail bkchaitanya@gmail.com

Hope you do well waiting for your response


Thanks in Advance


cfchart yaxis2 title

$
0
0

Hello,

 

how do I set the title of a second yaxis?

There is no attribute like yaxis2title in <cfchart>  tag.

 

I'm working on ColdFusion 11  Standard.

regards

Claudia

How to detect if the page is a reload or not?

$
0
0

I have a form in the cfm page that if the user submit the form, I do not want to go to a different page. I want it to reload the page and I'll capture all the values and send the data that way. However, I need to hide the form once the user submitted the form. So, how do I detect if the page is a reload (after it's been submitted) or it's the first time it's been loaded?

How to fix 2016 Cold Fusion Admin screen white blank page ?

$
0
0

We install ColdFusion 2016 on Window 2012 server with IIS 8.5. It works fine for couple days, then the admin screen login in screen return blank white page.

After play with security and IIS setting, we re-installed ColdFusion and it comes back. After a week, it happens again. What could cause that ?

 

Thanks

How to submit a form to itself?

$
0
0

I have a cfform on the page. When I submit the form, I want to submit it to self. Another word, I do not want to submit to another .cfm page. So, how do I do it?

Why isn't there a Syntax Highlight for ColdFusion?

$
0
0

This is a Adobe ColdFusion support community. Why is there no Syntax Highlight for even ColdFusion? There are other but NOT ColdFusion? Is ColdFusion language just not that popular anymore to even provide a code syntax highlighter? Or am I missing something here?

coldFusion-highlighter.png

Coldbox İnstall Help.

$
0
0

Hellofusebox or coldbox framework, wewant to help.I couldn't finda detailedlectureon the website.

I want to learnthe logic ofthe framework.

Please help

XML to query with inner join

$
0
0

I have a CF page that reads an XML file into a query using <cffile>, XMLParse, and QueryAddrow.

 

I then do a QoQ on the result, and voila! I have my page.  I cache the query for 8 hours and the XML file is only re-read when that cache expires.  It works well.

 

My problem now is that the file contains data from three database tables instead of one, so I need to do an inner join on the tables.  But I can't do a QoQ with an inner join.

 

Does anyone know a way for me to do this?


Weird ColdFusion 2016 error

$
0
0

I installed CF 2016 last night and will randomly start getting "java.lang.NullPointerException" on every page.  Also, I'm getting CF errors on pages when I don't include the "www." in the URL.  For instance, if you go to

 

http://wrestlinginc.com/temp/test2.cfm

 

You will get an error, details are below. It's the exact same file as if you add the "www.", which comes up fine:

 

http://www.wrestlinginc.com/temp/test2.cfm

 

Here is the error from the error log:

 

"Error","ajp-nio-8016-exec-4","03/18/16","14:45:49","www_wrestlinginc_prod","'' The specific sequence of files included or processed is: XXXXXXXXXXXXXXXXXX\test2.cfm'' "

java.lang.NullPointerException

 

Any help would be greatly appreciated. I'm getting close to going back to CF10

Coldfusion hosting

$
0
0

I'm looking for the best Coldfusion hosting.  My recent experience with IX hasn't been very good and I'm looking to switch.  Any advice you can give would be appreciated!

Why does EntityLoadByExample() ignore relationships?

$
0
0

I've been using ORM for a while, but just started getting into using EntityLoadByExample(). I thought this would be great, but I've run into an issue. Say I have an object "Art" and it has a many-to-one relationship to "Artist" (many arts may have the same artist).

 

So my sample Art object would be like:

 

component displayname = 'Art' {

     property name='artID' fieldtype='id' generator='identity';

     property name='title' type='string';

     property name='Artist' fieldtype='many-to-one' CFC='Artist' fkcolumn='ArtistID'

}

 

My sample Artist Object would be like:

 

component displayname = 'Artist' {

     property name='ArtistID' fieldtype='id' generator='identity';

     property name='Name' type='string';

}

 

So, lets say I have an artist in my DB:

ArtistIDName
1Monet
2Rembrandt

 

And let's say I have some "Art" in my DB:

ArtIDtitleArtID
1The Water Lily Pond1
2Woman with a Parasol1
3Poppies1
4The Night Watch2
5The Jewish Bride2

 

So, I will get the Monet Object:

monet = EntityLoad( 'Artist' , 1 , true );

 

Then I will create a "new" Art and add in monet as the artist:

myBlankArt = EntityNew( 'Art' , { Artist = monet } );

 

So, my expectations is that I would be able to run the following code and ONLY get the Art Objects with ArtIDs 1, 2, and 3 (because they have ArtistID 1).

 

artSearch = EntityLoadByExample( 'Art' , myBlankArt );

 

However, what happens is I get ALL the Art Objects because it IGNORES the Artist object in my example entity.

 

Am I complete crazy for expecting this to work? I understand that it might be a limitation of Hibernate, but it is quite frustrating!

 

I have found a work around by adding the following property to the Art Object:

 

property name='ArtistID' forumula='select ArtistID';

 

then adding using the ID in the entity using some somewhat complex code to dynamically pull the objects, then grab their ids,

    public function loadByExample( example ) {

          local.metaData = getMetaData( arguments.example );

          for( local.property in local.metaData.properties ) {

               if( structKeyExists( local.property , 'fieldtype' ) && listFind( 'many-to-one,one-to-one' , local.property.fieldType , ',' ) ) {

                    if( structKeyExists( local.property , 'fkcolumn' ) ) {

                         local.innerObject = arguments.example.getProperty( local.property.name , arguments.example );

                         if( !isNull( local.innerObject ) )

                         {

                              local.id = local.innerObject.getPrimaryKey();

                              if( !isNull( local.id ) )

                              {

                                   arguments.example.setProperty( local.property.fkcolumn , local.id , local.newObject );

                              }

                         }

                    }

               }

          }

          return EntityLoadByExample( arguments.example );

     }

 

(note: getProperty and setProperty are methods in my base object that all my ORM objects extend that allow me to send in the name of a property and set/retrieve it instead of using the setter/getter. This is helpful when I am dynamically pulling the objects name)

 

It just seems like a hassle when the "...ByExample" I feel should do this for you.

CF10 Flash Remoting

$
0
0

Hi all,

 

upgraded to CF10 from 9 this week and just realised that Flash Remoting is no longer working.  Any idea how I enable it within CF10?

 

Thanks

ColdFusion 11 Fresh Install Administrator Login Not Working

$
0
0

Am shifting from a machine that had CF9 on it, then the Splendor Beta, now with CF11 and though I've re-installed CF11 multiple times and have tried various methods I've seen in other threads (including the passwordreset.bat and using localhost) no matter what when I go to the Configuration and Settings Migration Wizard after install to get things going I get "Invalid Password. Please try again." Very aggravating as I'm eager to get rolling with CF11 fully and this is such a goofy roadblock.

Viewing all 5979 articles
Browse latest View live


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