Sort of the cfgrid controls

I am running a cfquery to a ms access database and display the results in a cfgrid.
I want to display the "descending" sorting grid and don't want users to have the ability to change the type.
Does anyone know how this can be done?

used;
order by date desc

Tags: ColdFusion

Similar Questions

  • 11 ColdFusion Flash bashing is this used to replace the cfgrid controls?

    We have recently updated to CF8 CF11. Is about to create interfaces with several new databases. To do something like CFGRID controls in new forms, but given that it's a Flash form component and Flash forms are deprecated in CF11, what is the alternative to forms no Flash for those who need a sub-shape with add/CHANGE/REMOVE features such as controls CFGRID? Looks like that characteristic of the worksheets is just for output/display of the data, not data entry.

    Thank you, Carl. I noticed that jQuery seems to be the answer. I just wanted to check that I was not overlooking something in the new version.

  • Why the page automatically scrolls to the cfgrid controls

    I have a page that is large enough so that it scrolls vertically. When it finishes loading, the browser scrolls automatically to the bottom of the page where a cfgrid element. It happens in IE, Chrome, and Firefox.

    I reduced the cause down to the JavaScript server ColdFusion 11 adds at the top of the page. If I disable scripts in the browser, the page does not automatically scroll down.

    Addition of window.scrollTo (0,0) at the onload of the body does not work. What JS is scrolling down occurs after the onload event. I have not tried. ready() jQuery yet; in the hope there is a fix.

    Has anyone else seen elsewhere and don't know a fix or a workaround?

    I found that the solution is to add the attribute selectOnLoad = "false" to the cfgrid tag. Its default value in CF11 is 'true '. I'm not sure CF10, but in CF9 is seems to default to 'false '.

  • bind the cfgrid controls to an another cfgrid

    I have a cfgrid;

    < cfgrid name = "CompQry" format = "html" pagesize = "10" striperows = "Yes" height = "320" width = "580" font = "Verdana, Arial, Helvetica, sans" fontsize = "12" align = "left" bind="cfc:/components/tsiadmin.getCompanies ({cfgridpage}, {cfgridpagesize}, {cfgridsortcolu minutes}, {cfgridsortdirection}, cname # #)" selectmode = selectonload 'row' = "true" > "
    < name cfgridcolumn = "CompanyRecordNumber" header = "Number of Comp" select = "yes" >
    < cfgridcolumn name = 'Name' header 'Name' = >
    < name cfgridcolumn = 'City' header 'City' = >
    < name cfgridcolumn = 'State' header 'State' = >
    < / controls cfgrid >


    And I need to link the selected line to another grid;

    < cfgrid name = "IndivQry" format = "html" pagesize = "10" striperows = "Yes" height = "320" width = "580" do = "Verdana, Arial, Helvetica, sans-serif" fontsize = "12" align = "left" bind = "" selectmode = selectonload 'row' = "true" > "
    < name cfgridcolumn = "IndividualRecordNumber" header = "Number of single" select = "yes" >
    < name cfgridcolumn = "First name" header = "First name" >
    < cfgridcolumn name = "LastName" header = "Last Name" >

    < / controls cfgrid


    The first grid is a list of the companies and the grid secord is supposed to be a list of all the selected company. I see that I have a piece of code is missing. I don't see how I can bind to a cfc on the second grid which will be returen a query based on the selected line in the first grid.

    larksys wrote:
    > I don't see how I can bind to a cfc on the second grid which will be
    > returen a query based on the selected line in the first grid.
    >
    >
    >

    see if this helps:
    http://www.coldfusionjedi.com/index.cfm/2007/8/9/reacting-to-grid-row-selection

    --

    Azadi Saryev
    SABAI - Dee.com
    http://www.SABAI-Dee.com

  • Using cffif in the cfgrid controls

    Is it possible to use cffif or any other conditional statement in cffgrid to dynamically display a column or not?

    Thanks to you two. Each of the provided solutions worked for what I needed.

    D

  • in the cfgrid controls text wrapping

    Is this possible? I can't find anything that says it is.

    wrap solved, used = "hard."

  • Data binding conditional with cfgrid controls?

    I have the following:

    < action = "action.cfm cfform" format = "flash" method = "post" > "
    < cfformgroup type = "horizontal" >

    < cfformgroup type is "page" label is "Email" >
    < name cfgrid 'email' query = 'email' = >
    < name cfgridcolumn 'question' = >
    < / controls cfgrid >
    < / cfformgroup >

    < cfformgroup type is "page" label is "Paycheck" >
    < name cfgrid = 'paycheck' query = 'paycheck' >
    < name cfgridcolumn 'question' = >
    < / controls cfgrid >
    < / cfformgroup >

    < / cfformgroup >

    < cfformgroup type is "Panel" label is "Response" >

    < cfformitem type = bind "html" = "{((email.selectedItem.question == undefined)?": email.selectedItem.answer)} "
    (paycheck.selectedItem.question is undefined)? ('': Paycheck.SelectedItem.Answer)} "> < / cfformitem >"
    < / cfformgroup >

    < / cfformgroup >
    < / cfform >

    I assume that there is a syntax error in the value of the BINDING of the CFFORMITEM tag attribute. In plain English, I'm essentially looking to say (and I'm simply not enough experience with ActionScript for how to do this):

    If a line in the cfgrid controls named, 'email' is selected, make the value of the column in the query response to send the value of the CFFORMITEM tag. Otherwise, if there is a line in the named cfgrid controls, 'paycheck' that has been selected, make the colum on the wage response value query the value of the CFFORMITEM tag.

    TIA

    The way that you have written, undefined is a variable name. I think you meant the "undefined" value instead. Looking for something like this?

  • How to alternate the color of the lines in the html cfgrid controls

    Hi all

    How can I alternate the color of the lines in html cfgrid?

    I do not have access to CFIDE/scripts/ajax/resources/ext/css/ext-all.css which is where the css styles are preserved according to firebug

    Thank you

    goodychurro1 wrote:

    How can I alternate the color of the lines in html cfgrid?

    Hi goodychurro1,

    The cfgrid attribute you're looking for is "striperows.  Optionally, you can also use the attribute "striperowcolor".  Regarding your question in the other thread on link href/selection of a grid, you can use the following block of cfscript to create the query of 'q' in the example I posted in the other thread (if you're not on CF10).

    q = queryNew ("myID, myString", "integer, varchar");

    queryAddRow (q, 3);

    querySetCell (q, "MyID", 1, 1);

    querySetCell (q, "MyID", 2, 2);

    querySetCell (q, "MyID", 3, 3);

    querySetCell (q, "myString", "one", 1);

    querySetCell (q, "myString", "two", 2);

    querySetCell (q, "myString", "three", 3);

    Reference:

    - controls cfgrid

    Thank you

    -Aaron

  • Satellite P750 - how to disable the volume control beep?

    Hi all

    I'm about to buy a Satellite P750, but one thing bothers me about this model. When the volume control keys are used there is a too beep each time that his press. s there is sort of this deactivation via software or BIOS settings?

    I asked around, but sales people I have talked to don't know and I don't have time to travel around to find an expert on Toshiba laptops.

    Any help would be appreciated to greaetly. Thank you.

    Hello

    On model previous laptop (Satellite P500) there is an option in the BIOS to disable the beep of the volume control buttons.

    You should find it in the BIOS-Advanced-Online System Configuration online. There is an option called beep that you can disable.

    Can you confirm this option on Satellite P750?

  • How does not sort on the library

    (I'm french)

    Sorry, but I don't see where I can create a topic for my question.

    My question is, how does not sort the files on the library. Because all my files are name '1' '2' '3' [...] "2530.

    And Flash pro sort me all my files '1' '10' "100" "1000" "11" "110".

    It's painful.

    Sorry for my English and sorry for my post here.

    Thank you.

    As much as I know there no controls for the content control library contains.  If you want the files sorted as you indicated you would have named the 0001,0002,0003,... 2530

  • How to use javascript or formcalc to reference the child controls (no name)

    Hello world

    I've created a ton of reports in the past, and I am now looking to create some reusable objects so that other people can use features of advanced form without having to learn to use scripts.

    A lot of the coding was done using this, .parent, etc. so that they can rename controls and subforms without having to worry about breaking the scripts. A question that I have is that some of my code looks at the child controls and refers to their name (for example, I have a code that uses setfocus to move the user to the first field of a subform).

    In most languages, there are ways to refer to child controls through an indexer or an array of elements or children. i.e. Subform.items [0] .rawValue.

    I know that this would cause some problems, but I think I could sort it out, if I only knew where to start. Is it possible to reference a child control without a name?

    Thanks for your help!

    -Scott

    Hi Scott,.

    The subform has a collection of nodes, you can run a loop though, as you suspected him.  If could show more than you want, but you can test the className to see if it is a field, then ui.oneOfChild.className to the type of the field. Then;

    for (var i = 0; i)< subform1.nodes.length;="">

    {

    var n = Subform1.nodes.item (i);

    Console.println (n.className + "" + n.name + "" + n.ui.oneOfChild.className);

    }

    I hope this helps.

    Bruce

  • Conflicts with HTML-based CFGRID controls and prototype

    Someone had problems with the help of the CFGRID based on HTML in a page using Prototype.js? We are currently using the prototype library for the manipulation of some of our functions of banner on our pages, but when I use the cfgrid html-based data is displayed if you click on a column header. On load/refresh the page, without rows of data are displayed. I think it may be related to refresh in contradictory cfgrid with a prototype, but I'm only guessing. If I remove the Prototype include file from the page, and then run the cfgrid normally controls screens. Any ideas?

    You can post your bug here,

    http://www.Adobe.com/cfusion/mmForm/index.cfm?name=wishform

  • using href inside cfgrid controls

    I have a cfgrid that is simple with a single column of information is returned. I need to make a link for each entry in the returned column (each entry will be a unique bond based on the information returned by the query). I don't know how to really get into it. I played with the href, selectmode, selectcolor attributes in cfgrid controls and the select attribute in cfgridcolum. But I'm not really understand - can someone direct me to a tutorial?

    Thanks, but I decided to go in a different way - so be it.

  • Photos App: sort out the problem with the album "all photos".

    photos App: problem of sorting with the album "all photos".

    I activated my iCloud library and as little shared albums.

    In 'Moments' pictures are sorted right (as), but when I go to Album > all photos,.

    so, I see a lot of fotos mixed up. In the option, I see that "all photos" are sorted by date 'added' that still does not make sense...

    It's annoying because when I access photos (iOS) to some 3rd - party - app, it does not show 'moments' but albums like "all pictures" that is not sorted...

    Thanks for the help in advance

    The albums predefined in the Photos on a Mac are sorted differently, in order to have different ways to access your photos.

    • The sight of Photos with Moments and Collections is sorted by the date of Capture.
    • The album 'All the Photos' is sorted by the date that you imported photos, not dates, that the photos were taken.

    Albums that you set yourself can be sorted by title or date of capture. So you can set your own album "my photo all ' as a smart album (file > new Smart Album) by using a rule 'Date's after... ', for example:

    This smart album will contain took all the pictures taken since January 1, 1000 and can by sorted according to the date of capture.

  • Siri is disabled by the Parental control on macOS Sierra admin account

    I just installed macOS Sierra today on my 13 "Mac Book Pro (early 2011). I have only one user account that is an administrator account. Siri is not enabled on my machine. When I go to the Siri system preferences screen, it says that "Siri is disabled by Parental control. Hmmm, when I check the Parental control screen, it says "you logged in using an administrator account." You can only apply parental controls to accounts that are not administrator accounts. »

    What happens here?

    Same problem here. Updated for Sierra of El Capitan on MacBookPro 15 "(mid - 2014).

    Even if I toggle the checkbox on the Parental control > others > disable Siri & dictation I can't activate Siri, the checkox is always gray and the alert says "Siri is disabled by Parental control.

    Siri is enabled if I login as a burst, but I need it on my Admin account of course. Very annoying.

Maybe you are looking for

  • Why the gradient tool has no effect?

    OK, so I figured out how to rub the head and tail of a piece with the marquee tool - why must you select Tools twice?  Why are there two selectors side-by-side? - and now, I'm trying to get the Fade tool at work.  After selecting the Fade tool (twice

  • Lenovo K5 VIBE more don't connect EDGE

    Hello! My K5 is not connect to the network after that I disconnected by Wi - Fi network. Mobile data switch ON / OFF aren't helping. So, how do I use mobile internet on this? I don't have 3 G or LTE networks in my place now, only work EDGE or Wi - Fi

  • How can I empty the Windows installation on my hard drive?

    How can I empty the Windows installation on my hard drive, please?  I was going to re - install, then I changed my mind.Now, every time that I reboot, instead of launching Windows XP Pro, it try to run Windows installation.  The installation program

  • Video help with your HP product

    Written instructions are nice and all, but sometimes I look at a video can be even more useful. HP has many support videos found on YouTube with a wide variety of different bugs and solutions to common problems, computer and printer. Learn how to get

  • Problem with low disk space

    I get a disk space warning low all the morning. I went and cleaned the files that came in the box, but still having a problem. At least I have start deleting programs I use, I don't see where to get more 'space '. Thank you in advance. ~ mtntown PS a