using advanced for a graph Query Builder

I'm trying to insert a chart based on a query in my report model. However, the data comes from a text file; so I create the object of the request for the chart of the analysis of the text file. However, the "query.name" and "query.number" fields do not change for each record in the original report query - only the first record is used. So the first card on the first page is correct, but the map never changes for all other pages (each page represents one record in the query). That's what I put in the advanced query designer:

< cfset ThisQuery = QueryNew ("ItemColumn, ValueColumn") >
("< FileExists("D:\charts\#query.name#_#query.number#.txt ") cfif >
< cfset ThisDataItem = 0 >
"< cfloop file="D:\charts\#query.name#_#query.number#.txt "index ="$thisline">
< IsNumeric ($thisline) cfif >
< cfset ThisDataItem += 1 >
< cfset QueryAddRow (ThisQuery) >
< cfset QuerySetCell (ThisQuery, "ItemColumn", ThisDataItem) >
< cfset QuerySetCell (ThisQuery, "ValueColumn", $thisline) >
< / cfif >
< / cfloop >
< / cfif >

So basically the file name is set according to the first row (result) of the report query, but then the file name (and thus the graph) never change even if all other fields based on a query on my page change correctly (all other queries. BlahBlah fields to update correctly). Is this a bug? I don't think I was doing anything too crazy.

Phew! I found a really great solution, which has a ton of uses.

First of all, like I should have made, ANY variable in a coldfusion tag will be figured out when the report is called, not for each query result. In other words, the query.xxx or report.xxx or anything that's NEVER going to work properly inside a tag, not even in a report feature or Advanced Query Builder.

However, there is a simple way around this. Simply make a function in relation to the arguments and in the editor of your field expressions calling the function, and pass query variables or State:
#report.yourFunction (query.field1, query.field2) #.
You can do all sorts of magic of Coldfusion function and return any shape desired result.

For my particular example (creating a query object for a chart to insert dynamically), I had to add a step is not so obvious: create the object of my application with a shared (in this case, the scope of the request) scope, otherwise the variable is trapped in the scope of the function. So it was my solution: I had a chart with the option 'Print when' my function call "getChartQuery" (from query variables, of course). The function built "Request.ThisChartQuery" and returns True if there's something in there (the logic of "Print when" uses the Boolean value of whether to display the graph or not). My card is always based on a query, but the Advanced Query builder has NOTHING in it, with the exception of the variable that contains the query object ("Request.ThisChartQuery").

There is another solution, I found where the report function makes all of the chart (using cfchart tags, etc.) and saves to a PNG file and then returns the path to the image. Then, you simply add an image field to the report, and you use the expression builder to call the function. Well, hope this has helped someone!

"EDIT: the references are" " http://www.adobe.com/go/ee54cc6" and " http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:40786"

Tags: ColdFusion

Similar Questions

  • I have XP I have down loaded the update for Kodak printer 5300 now will not work. It is said to use advance dot placement mode size of paper by a select line

    I down loaded the 5300 Kodak down load nd now the printer works well not. It is said, to use advanced point positioning mode select a paper size by a line and the paper tray

    Hello Forrestar,

    Thank you for your message.  We will try to remove the software that you have installed, and then reinstall the latest version of the software for your device.  Did this update also includes a new driver?  If so, you could try to restore your driver to the previous version.  Please let us know so that we can help you more to get this problem is resolved.
    See you soon

    Engineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • How to send email with vista wwhen he does not support HTTP? Should I use POP3? If Yes, how can I get this info? ___Thanks in advance for your assistance__

    How to configure VISTA to send emails? I understand that I need to use POP3, but don't know hoe to get and apply the necessary information?  Please can someone help?

    Thanks in advance for all your help.

    shikosay
    E-mail address is removed from the privacy *.

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-Windows-Mail

    E-mail account:

     

    http://www.SimpleHelp.NET/2007/02/07/a-beginners-guide-to-setting-up-Windows-Mail/

    Link above has an easy to follow Guide to set up Windows Mail.

    Contact your ISP (Internet Service Provider).

    They offer your broad band/Dial-up connection.

    Ask them to:

    username
    password for your service account to wide band/Dial-Up with them

    Server of incoming POP3 mail
    outgoing mail SMTP server

    The above information is required to set up Windows Mail.

    ISPS are usually happy to help you set up your email account.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://support.Microsoft.com/kb/926374

    "You can not configure Windows Mail to use an e-mail account on the Web (HTTP) on a computer that is running Windows Vista"

    Windows Mail supports more HTTP servers that are used by Hotmail and other e-mail providers such as AOL mail, Google mail, Yahoo! mail Web.

    Read the info on the link above to Microsoft re HTTP and Hotmail.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Here is the workaround from MS:

    Use Windows Live Mail instead of Windows Mail

    Windows Live Mail is an e-mail program that you install on your computer. Windows Live Mail stores messages on your computer. This means that you can access, read, and compose e-mail messages even if you are not connected to the Internet.

    Windows Live Mail works with popular Web-based e-mail services such as Hotmail, AOL mail, Google mail, and Yahoo! mail. Windows Live Mail is designed to configure automatically many popular e-mail services.

    To install Windows Live Mail, see the Microsoft Web site at the following address.

    Mick Murphy - Microsoft partner

  • Hi all, I have been using adobe CS 5.1 software. What do you recommend to upgrade my CS? or get the subscription on an annual basis, thank you in advance for your comments here

    Hi all, I have been using adobe CS 5.1 software. What do you recommend to upgrade my CS? or get the subscription on an annual basis, thank you in advance for your comments here

    The decision is yours as a last resort.  You must take into account your preferences and reasons for use.

    If you use the software mainly for personal projects, and then have a suite may be all you need, and the one you now could suffice for that as well.  If you are a professional who needs to be on the cutting edge, you probably want to have the subscription works for you.

    Upgrading to a new CS means get CS6, which is likely to be the last of the CS of releases.  If you don't have that you pay for it once and what do you get when you pay, it's what you'll get until the it becomes obsolete somewhere off the coast in the future, with the exception of the corrective updates that may be provided.  It should contain up to to be useful for a number of years.

    If you purchase a plan of cloud, you pay for it many times over - essentially a monthly fee - time, but you get the updates and new features as they become available.  There is always a chance that the latest updates could out-spec finally the machine you own, requiring an update of material to continue with new versions.

  • Unable to load the query in Crystal Designer: error "Could not load the Query builder compenent."

    Hi all
    I am using Crystal report 10 which was an upgrade of crystal 7 and 8.5
    I can open the crystal report and can do everything but I could not display the SQL query option
    It gives me an error message
    "Failed to load the Query builder compenent."
    I also reinstalled the application twice as a sysadmin even then I get this message
    Please, can someone suggest me what should I do?

    Contact technical support for Crystal Reports or watch in their forums. This is not a product of MS and is not related to the installation, upgrade and activation of Windows XP.

  • Query Builder: Error Message 'Unexpected token "over" '

    Hello

    I use Version 4.1.3.20 of the SQLDev.

    I have a SQL query that contains

    count (*) over (partition of...)

    and

    listagg (col1, ',') within the Group (order in...) more than (partition of...)

    It works well in my spreadsheet calculation, but when I switch to the Query Builder, I get the following message is displayed:

    Text contains unsupported syntax.

    Parse error:

    Cannot parse the SQL query.

    Invalid SELECT statement.

    Unexpected token 'over' at line 19, pos 25.

    Ask people with disabilities Builder.

    Is this a bug or just feature which is not yet converted?

    Best regards

    Sabine

    I doubt that the Query Builder supports little advanced SQL

  • PL Sql Query Builder Tool

    Hello

    Is there any Pl/Sql Query Builder tool / software that can make your life easier.

    best regards

    Sandy

    SPathak wrote:

    Hello

    I agree, that oracle Pl/Sql is powerful and gives a correct result.

    little time to create a complex query with assistant was looking for easy way.

    Sandy

    You will not learn using a GUI like TOAD tool (and I LOVE TOAD).  I always write by hand in the editor, instead of drag / drop regardless of what type of gui tool.  Only, I do not use the constructors unless you are a business analyst who has no experience of SQL.

  • Micro-Navigation (using advanced Actions) behaves badly in published project

    I have build in Captivate 9 and must give the user the possibility to jump back to specific "scenes" in a slide.  These scenes have no specific markers - they are just subsections of the lesson on the slide.

    I followed some excellent tips gleaned from Lilybiriblog articles to create my own front and rear buttons, jump on the next breakpoint.

    To achieve this, I created a tip with 9 decisions (one for each scene) Action, and every decision said "If currentFrame is between x and y, go to openingFrame + z..  I used the property to enter the slide to set the openingFrame variable in the slide.  In this way, when the button is engaged (front or back), the lesson goes directly at the beginning or at the end of the current 'scene '.

    Well, I spent a good 2-3 hours previewing the slide and refine the Action advanced to what it worked exactly as you want, and then I wrote...

    To my great disappointment, by clicking on the next button since the beginning of the slide, the lesson jumped right to the end of the slide (which is the action for decision 9 and should only enable if the currentFrame > 2041)

    When I then click on the back button on the end of the slide, it would take me back to frame 2030 (where it should bring back me at the beginning of the slide, by progressive clicks).

    I then tried the preview of the whole project and got the same result.

    It seems that the tip Action works as it should if I get a preview of the slide, but as soon as the other slides are published, all but the last decision of the tip Action are ignored!

    I'm writing this, I give account of a workaround would be to break up the blade in a number of slides-, each holding a scene. This means a lot of extra work and give a very messy result. As much as I plan a number of similar sections of lesson and want to end up with a long list of slides that are actually part of the same section of the lesson.

    The other alternative is to learn Javascript and use it to create the nested IF statement - that sounds like a lot of overhead and puzzle to make something that looks like it was designed to operate within 9 Captivate.

    I hope that logical - you would be very grateful if anyone can shed some light?

    How and when did the variable 'openingframe' gets its value? The event that is used to assign a value to this var?

    The event that triggers this conditional action? You have other interactive objects on the slide to this event? Maybe post a screenshot of the timeline.

    I suspect that this could be done in another way, less complicated. But I need more information. Last jump is more 2063 frames, which means little more than a minute: who is the duration of a slide? Navigation Frame is never very says, that personally I wouldn't use it for these big jumps, but try to split this slide in multiple slides, which would mean you will have more than one frame of departure and you won't have that many. Is - that follow you the action by inserting the two variables 'openingframe' and 'cpInfoCurrentFrame' in a text container?  Just a couple of ideas, because I suspect that the value of "openingframe" is not correct. Where my first questions.

  • Use ACFS for CFS is good idea?

    Hello Experts.

    Plans to build a CAR on the following environment.

    Oracle Database worm. : 11.2.0.3
    OS: Linux RHEL 6.1 - 64 Bit
    Servers: HP

    ASM and ACFS for storage.

    Here need advice: use ACFS for CFS is good idea or anything else better than that?

    Thank you in advance:

    Ajazjn76.

    ajaz76 wrote:
    Is ACFS as Veritas, HP tru64, OCFS2 or even we need none of these CFS at the top of the ACF. Please advice. Thank you.

    Nothing necessary at the top of the ACF. He will manage by oracle itself as ASM.

  • Query Builder session parameters as a resolve to ORA-01843 (not a month valid)

    Hi all! I am new to Oracle and RDBMS, sorry for a fake question.
    I'm doing a few queries to a tutorial (10 g XE) database with Query request Builder Express 2.1000039.
    I ask the column with id, order date and order status. in a column of the date as a condition command 'where' I've wrote:
     >= to_date('23-JUN-2006', 'DD-MON-RRRR') 
    and got an error "ORA-01843: not one month valid."

    Then I edited the line filter condition:
     >= to_date('23-JUN-2006', 'DD-MON-RRRR', 'NLS_DATE_LANGUAGE = american') 
    and got a decent result, BUT resulting table date format DD-MM-RR.

    So, here are a few questions:
    1. can I change settings of session (for example
    alter session set NLS_DATE_FORMAT = 'DD-MON-RRRR'
    ) so, to use it in the query designer, before you generate a request itself and do not write "NLS_DATE_LANGUAGE = american' whenever I am inserting data to a field of date data type?"
    2. I wonder why resulting table date format is "DD-MM-RRRR. How can I get a data exactly in a date format 'DD-MON-RRRR', how I am specifying in a query?

    My operating system is Windows 7 Home Basic Edition, NLS_DATE_FORMAT is DD-MON-YYYY in 2 cases, the register and, respectively, in the environment variable.

    SQL * Plus displays all tables in query mentionted correctly, corresponding to an "ALTER SESSION...". PARAMETERS.

    Hope for your help, guys. Thanks for the replies!

    >
    Can I change "Application Builder-> Application-> change security attributes" without creating applications?
    >

    No you need to create an application, and as I said application-level settings determine the application only, is not a solution. Furthermore, I'm not sure that this property is available in your version of the Apex.

    I tried to change the session using SQL commandsand then I went back to the Query Builder, but it doesn't change anything, it seems different sessions are used to connect to the database.

    Yes, I'm sorry, but I have no solution for you, maybe there is a way to change this somewhere in the admin part, but I have no rights admin here and I can't test anything.

    I hope that a few experts hops on the thread ;)

  • How to use a list in a query so that you can sort the list according to an attached table?

    1. my initial query returns the phone numbers with inconsistent structures. Example:

    -555 (555) - 5678

    666-555-5678.

    555.5678 (444)

    1-888-555-5678

    2. I have to loop through the list and perform a certain number of cleaning functions, this is why the list looks like this:

    555-555-5678.

    666-555-5678.

    444-555-5678.

    888-555-5678.

    3. now, I need to use this list in a query, if I can use the first three digits to seek a regional indicative table sign and its link and be able to sort by area code. The indicative table looks like this:

    ThreeDigitCode AreaID

    555                         1

    666                         2

    444                         1

    888                         4

    I need to put the phone in the query list, so I can do a search of the areaID and the comparable information to a table that says AreaID 1 is Eastern and his sort-position is 1, etc..

    Thanks in advance for your advice.

    You can add an empty your query column, when you select the phone

    numbers and use this column to store the ThreeDigitCode:

    SELECT phone_number, '' as threeDigitCode FROM #your_table#
    

    then clean up the numbers and place the 3 digits in others

    column. And then using query of query to join phone numbers with

    area codes:

    
      
    
    
    
      SELECT *
      FROM phone_number
        INNER JOIN area_codes ON area_codes.threeDigitCode =
    phone_number.threeDigitCode
    
    

    Mack

  • Visual Query Builder does not work

    I use the ColdFusion Flex Builder 3 (3.0.1.205647) extensions, and I can't use the Visual Query Builder. This is a new installation for ColdFusion8. I have configured RDS, I even test the connection successfully.

    I can use the RDS DataView and see the databases, click cfartgallery, for example and see the facility 'art' content of the table. No problem. Then I click the button of "Visual Query Builder", and nothing happens. The query designer does not appear.

    It's not a big problem until I have try running the CF/Ajax application wizard and edit the page master is supposed to open query... Builder even problem. Same here, it will not open. So I can't change anything or use the wizards at all. I get no error message, it just does nothing when I click on the button.

    Does anyone else have this problem? Is there a setting I'm missing or need to set up after a new installation in the CF administrator?

    Using vista?

    Click Flex and then click on run as administrator

    --
    Ken Ford
    Adobe Community Expert Dreamweaver/ColdFusion
    Fordwebs, LLC
    http://www.fordwebs.com

    "adimauro" wrote in message
    News:g8pt2n$JH1$1@forums. Macromedia.com...
    > I use the ColdFusion Flex Builder 3 (3.0.1.205647), and
    > I
    > cannot use the Visual Query Builder. This is a new installation for ColdFusion8. I have
    > have
    > RDS set up, I even test the connection successfully.
    >
    > I can use the RDS DataView and see the databases, click cfartgallery,.
    > for
    > contents of the example table and the exhibition 'art '. No problem. Then I click on the
    > "Visual Query Builder" button and nothing happens. The query designer is
    > not
    > show.
    >
    > It's not a big deal, until I have try running the CF/Ajax application wizard, and
    > edition
    > the master page is supposed to open the Query Builder... same problem.
    > Even
    > here it does not open. So I can't change anything or use the wizards at all. I have
    > don't get any what error message, it just does nothing when I click on the
    > button.
    >
    > Someone else has this problem? Is there a setting I am missing or have
    > to
    > set up after a new installation in the CF administrator?
    >

  • The Web-based SQL Query Builder

    Hello

    I have a generator of SQL query that allows users to create their own application graphically.

    I have something I could use to do?

    Thanks a lot for your help
    Jko

    Hello

    I hope this help you start your applications to Query Builder
    http://HTMLDB.Oracle.com/pls/OTN/f?p=18326:7:1636417102512483:P7_ID:161

    BR, Jari

    Edit:

    And this
    http://HTMLDB.Oracle.com/pls/OTN/f?p=18326:7:1636417102512483:P7_ID:1222

    Published by: jarola October 29, 2009 12:30 AM

  • 2.1 EA1: Query Builder does not update the query to display the results

    When using the query designer, if you click view results to see the results of the current query, then return to "Select columns" or the tabs 'Create a Where Clause' change the query, the "View results" tab shows again the results of the original query, even if no tables or columns of the original query occurs. By clicking on the button run the report or by setting a refresh interval has no effect.

    On another note, the query designer again is not reentrant, because you cannot select (highlight a part where cursor in) a query, and then open the query for this request of change graphically Designer.

    Sentinel,

    The problem is known and is listed in the known issues in the release notes for the first users. We hope to have this sent to production.

    Returning Query Builder is always on our list of things to do. We intend to rewrite the Query Builder and examine a number of requests related to this function. I'm hoping to make it a priority for the next release.

    Sue

  • I have used Firefox for about 8 years and yesterday lost my bookmarks toolbar. Any suggestions? Yet the bookmarks and it still seems in sight.

    I have used Firefox for about 8 years or since first of all, it has been developed and I love it! I especially love the personal bar and he used all these years without any problems. Yesterday, I lost somehow the bookmarks toolbar. It is still listed under view in the Menu. When I check, besides, that area expands a little and when I uncheck the box decreases a little. All my favorites are still there, but not the toolbar. I tried everything I know to try. I uninstalled and downloaded Firefox again and reinstalled. I have restarted my computer several times. I tried dragging the new bookmarks in the toolbar of the address of the site area. Nothing works. Does anyone have any suggestions as to what can be the cause and have a solution? I HATE that, without this toolbar. Thanks in advance!

    If the menu bar is hidden, then press the F10 key or hold down the Alt key to make the call of menu bar.

    Make sure the toolbars like the toolbar 'Navigation' and the 'personal bar' are visible: "view > toolbars".

    • Open the Customize via "view > toolbars > customize.
    • Make sure the "Bookmarks Toolbar items" are on the personal bar
    • If the "Bookmarks Toolbar items" is not on the bookmarks toolbar, then FRY it in the toolbar palette in the window the bookmarks toolbar Customize
    • If the missing elements are in the toolbar palette then drag them from the window, customize the toolbar
    • If you do not see an item on a toolbar in the toolbar palette and then click the button "Restore default" to restore the default toolbar set up

Maybe you are looking for

  • Contact technical support in Belarus

    Hello I live in Belarus now and trying to get the support of Apple for a few days. Any time, I try to get help, I get redirected to the page where only the telephone communication is available. Belarus still isn't in the list and good old ticket syst

  • Jellybean 4.1.2 update fails on my ICS x 910 4.0.4

    My phone is XT910 4.0.4 running version of the 672.180.41.XT910 system. Retail.en.FR. Yesterday morning, I was informed of an available update. Later in the evening, I started the update, which took about 40-50 minutes to download the update, then tr

  • 10.7.5 to the Mavericks 10.9 Lion update

    Can I upgrade to the latest version of Mavericks 10.9.5?  I have an iMac 10.7.5. Model identifier: iMac7, 1 Processor name: Intel Core 2 Duo CPU speed: 2 GHz Number of processors: 1 Total number of cores: 2 L2 Cache: 4 MB Memory: 4 GB Bus speed: 800

  • controller vga compatible video for hp dx6100m

    Hello Everyone please. so I can get the video controller (vga compatible) driver for hp dx6100m minitower pc?

  • How to play games windows 95 Windows 7

    Original title: How do I play games windows 95 under windows 7. I think I have the 64 bit version. I've tried troubleshooting for older programs tool, but nothing does not open. Can I install a second operating system? How to play games windows 95 un