Flash CFGRID Rows

Is there a way to limit the number of rows on a Flash CFGRID?
The maxrows attribute just limits the number of data rows to
display, not the number of rows on the grid. The grid's always show
7 rows, whether there is data or not, but I want to shorten
that.

I can't help with the flash grid, but the html grid problem
can be solved with a custom column renderer
http://blog.cutterscrossing.com/index.cfm/2007/11/30/CF8-Ajax-Grid-Renderers-and-Events
Check out the above link and instead of an image replace with
a check box.
Ken

Similar Messages

  • Flash CFgrid Limitations?

    Hey Guys-
    I have a situation that I'm a little confused with. I have a
    Flash-based CFGrid, populated with a query. This query, I added a
    null/empty column to and use that to display a checkbox for each
    row. This works fine. I use the checkboxes to select what rows will
    be sent to the next page for some processing.
    The problem I am having is, when you submit, only 8 rows are
    sent on to the next page. Even if you select more than 8
    checkboxes. Now, if I change the grid format to HTML, it sends on
    more than 8 no problem.
    The issue with an HTML grid is the column that holds the
    checkboxes doesn't display a checkbox unless you double click on
    the cell, so it's not apparent what is in that field.
    Anyone know what the limitations are on the flash cfgrid for
    sending this sort of data on? How can I figure this out???
    Thanks!

    I can't help with the flash grid, but the html grid problem
    can be solved with a custom column renderer
    http://blog.cutterscrossing.com/index.cfm/2007/11/30/CF8-Ajax-Grid-Renderers-and-Events
    Check out the above link and instead of an image replace with
    a check box.
    Ken

  • Flash CFGRID Insert Row Problem

    I think others have posted similar issues, but I've been
    unable to find a resolution to it. I have a Flash grid in an
    Accordion page that I need users to be able to insert data into.
    Most of the time, the grid will be empty when the user enters data.
    I've tried using the picturebar insert button, I've tried using
    onClick="GridData.insertRow(mygrid);". I even tried a fairly
    extensive script that seemed to be a timer that would detect a
    double click to insert. None of these work well. The
    onClick="GridData.insertRow(mygrid);" is the best in that I only
    have to click a column field about 3 times before I can enter data
    in the field. Multiple clicks to activate the field is just not
    useable.

    Hi,
    Thanks for the reply, I have the same problem. The suggestion you gace did not work as it works only for flash grids. I am using an HTML grid.I just want to set a default value of OLST to the Client column. Please help!
    <cfgrid name = "FirstGrid"
    format="html"
    height="320"
    width="580"
    font="Tahoma"
    fontsize="12"
    query = "rsIncidentTypes"
    bgcolor="orange"
    selectmode="edit"
    selectcolor="teal"
    delete="true"
    insert="true"
    insertButton = "Insert a Row"
    deleteButton = "Delete selected row"
    onChange="FirstGrid.dataProvider.editField(FirstGrid.selectedIndex,'Client', 'OLST');"
    >

  • Flash CFGRID Skipping Every Third Column

    I can't figure out why this is doing this... I have a cfform that contains a cfgrid. When I make that cfgrid an applet, all my columns show up just fine, and as I expect them to. However, I like the flash form a lot better, so I converted my code to flash. But when I converted to flash, suddenly every third column shows up as blank. If I set the colum to select="yes" and I select that area, suddenly I see the right values with a bunch of leading spaces. Below is the code. I have tried everything imaginable to get this to work but it just is not happening. Any help is greatly appreciated:
        <cfgrid name="cartItems"  width="800" selectMode="edit" delete="yes" deletebutton="Update Cart"  rowheaders="no">
            <cfgridcolumn name="quant" header="Quantity" select="no" type="numeric">
            <cfgridcolumn name="itemName" header="Item Name" select="no" type="string_nocase" >
            <cfgridcolumn name="itemDescription" header="Item Description" dataalign="center" select="true" type="string_nocase">
            <cfgridcolumn name="itemPrice" header="Item Price" select="no" type="currency">   
            <cfgridcolumn name="totalPrice" header="Total" select="no" type="currency">
            <cfif isCurrency>
                <cfgridcolumn name="currencyNeeded" header="Cost in #currencyName#" type="numeric">
            </cfif>
            <cfgridcolumn name="checked" header="Delete" type="boolean" width="46" select="yes" >         
            <cfloop index="i" from="1" to="#ListLen(offerName)#">
                <cfif NOT isCurrency>
                        <cfgridrow data="#ListGetAt(quant, i)#, #ListGetAt(offerName, i)#,
                                        #ListGetAt(offerDescription, i)#,
                                        #ListGetAt(price, i) * ListGetAt(quant, i)#,
                                        #ListGetAt(price, i)#">
                <cfelse>
                    <cfset currencyRequired = currencyPerDollar * #ListGetAt(price, i)#>
                    <cfgridrow data="#ListGetAt(quant, i)#, #ListGetAt(offerName, i)#,
                                        #ListGetAt(offerDescription, i)#, #ListGetAt(price, i)#,
                                        #ListGetAt(price, i) * ListGetAt(quant, i)#,
                                        #currencyRequired#">
                </cfif>           
            </cfloop>       
            </cfgrid>
    Here is what I get in when the form is set to Flash:
    As you can see, I am missing item description.
    I have another verision that runs based on a <cfif>. When that one runs, I get the following:
    Notice that it's always the third colum that is being truncated. However, if I select the cell, the values are really there... they are just not showing up.
    Can someone please help with this? I really appreciate any instruction you can give.
    Al

    Thanks again. After reading some more Oracle chapters and using EM I scheduled an immediate full backup and selected the options that deleted the archived logs from disk after they are successfully backed up; and deleted obsolete backups. This cleared the \ArchiveLog directory from 25GB to around 150MB. However the full backup of databases totalling 9GB came to 20GB..I am not sure if this is correct..
    More background info:
    I'm not a DBA and don't have a DB background but I am responsible for the server infrastructure so do need to ensure that we have a good backup/recovery strategy.
    This is the only Oracle server we have and is quite small scale at present.
    We do not use a tape backup system. Instead we use a hard disk based backup, Evault. Using its proprietry technology it in effect gives us a 'full' physical backup each evening across our WAN.
    With SQL I have backup strategy for each database that means that an SQL .dmp file is created each evening and based upon our evening backup strategy means that we get another level of version control should we need to recover.
    I would like a similar type solution here:
    - To have a once weekly full backup ie) Friday evening. The remaining 6 evenings are incremental. The backups will be directed to the server hard drive.
    - To have a retention period of 31 days
    We will also have the additional version control from the server backup. Does this sound a reasonable strategy?
    Is this achievable through EM using the scheduled backup option?
    Thanks, MJ

  • Can you preselect cfgrid rows?

    i have a boolean column (checkboxes) in a cfgrid, column is fake, doesn't exist in query.
    onChange i run a js function that takes the value of another (numerical) column and saves it in a hidden form field as a comma delimited list. if user clicks the same checkbox again, it removes it
    everything works fine, except when the user navigates to the next page and back, my list of values is still in the field, but the checkboxes are no longer checked.
    that creates a problem, because now, if the user clicks the same checkbox again, it will actually remove the value instead of adding it
    is there a way to preserve the checkbox state when navigating back and forth?
    thanks for any help

    I'm not sure if I'm totally clear on what you want to do, but I gather you want to select the ".jpg" part of "image.jpg" in the JFileChooser's text field? If so, here's a really ugly and dirty way to get ahold of that text field
    private void doIt() {
         JFileChooser chooser = new JFileChooser();
         JTextField textField = getChooserTextField(chooser);
         if (textField != null) {
              textField.setText("Hi there");
         chooser.showSaveDialog(this);
    private JTextField getChooserTextField(JFileChooser chooser) {
         JTextField rtn = null;
         List<Component> comps = getAllComponents(chooser);
         for (Component comp : comps) {
              try {
                   rtn = ((JTextField)comp);
                   break;
              } catch (ClassCastException ignore) {}     
         return rtn;
    private List<Component> getAllComponents(Container cont) {
         List<Component> rtn = new ArrayList<Component>();
         for (Component comp : cont.getComponents()) {
              if (comp instanceof Container) {
                   rtn.addAll(getAllComponents((Container)comp));
              rtn.add(comp);
         return rtn;
    }With a reference to the JTextField, I assume you can select the relavent portions of the text yourself. This is definately a hack, and there may be a better way to do it that I'm not aware of.

  • Problems with CFGRID

    Ok, here is the scenario:
    I have a flash cfgrid, love it. I then wanted to give the
    user the ability to update the grid without having to open a new
    page with a new form, so I enabled edit. Then, I learnt that you
    cannot user select dropdowns in an flash editable grid, so I
    thought ok, I will have a form below the grid, I can bind the
    fields with the grid, then the user can click on any row they need
    to update, and then submit. CFGRIDUPDATE will then sort through the
    changes and bish bosh, we have a nice solution. However, I then
    learnt you cannot just bind a cfselect in the same way as you can a
    <cfinput. I have search for solutions but with no joy. I have
    two problems I need to fix;
    1) how to prepopulate the <cfselect with the data from the
    selected row, as you do with a cftext
    2) my <cfinput type=date field does not update the grid
    when changed (also, the grid doesn't change when I select a new
    date, but it does change to the previous one if I select a second
    one! weird!)
    Can anyone, please shed any light on this atall please?
    I attach my code and will try and provide as much info as
    possible, thanks in advance
    (Why do i always find a great solution like a flash grid, to
    then hit a brick wall like not being able to bind selects! aaarggh)
    :)

    Ok I did something similar with the HTML cfgrid as I had more
    data that could be visible to edit in the grid itself.
    First create a <cfinput type="hidden"/> for each select
    box with it bound to the grid like a normal text box.
    Second create a function to handle assigning of the hidden
    bound value to the CFSELECT:
    function populateCFSelect(Grid,rowIndex,e){
    var xyz = document.GridForm.hidden_xyz.value;
    document.GridForm.xyz.value = xyz;
    document.GridForm.xyz.text= xyz;
    Third and almost important you need to ad a listener to your
    Grid to run the function not sure if there is something differnet
    with a flash gridb but here is the code for the html grid:
    function init(){ //Build grid toolbars
    grid = ColdFusion.Grid.getGridObject("<NAME OF YOUR
    GRID>");
    grid.addListener("rowclick",populateCFSelect);
    Finally make sure your init() is being called at page
    load....<cfset ajaxOnLoad("init")>
    After you populate your inputs and select boxes you need to
    update your datasource with the changes then refresh your grid to
    show the changes. ColdFusion.Grid.refresh("<NAME OF YOUR
    GRID>");will refresh your grid.

  • Image File in CFGRID with Query

    I have a flash CFGRID populated with data from a query. I
    want to add a column to the grid that is not part of the query. I
    want the column to hold a small image file of an x that when
    clicked, deletes that row from the grid as well as the database
    itself. I know I can just use the built in edit mode with the one
    delete button at the bottom, but I prefer this way.
    I can not figure out how to add a column to the grid that is
    not part of the query to display the image.
    Is this even possible.

    One solution is to dynamically set the base href
    String s = "test.txt"; // "dummy" file in current directory
    File f = new File(s);
    s = f.getAbsolutePath();
    s = "file:\\"+s;
    p("<BASE HREF='" + s + "'>");

  • CFGRID bind problem

    Hi, I have a problem with binding fields to a cfgrid.
    When I'm populating my grid using the query attribute the
    binding is not working. The problem is the accessing a row's cell;
    myGrid.selectedItem object exists but when I use
    myGrid.selectedItem.columnname nothing returns.
    Howerever when I use the same code and I populate the grid
    manually or via a loop in cfgridrow the code is working. (commented
    in code)
    Now the second option seems to be a solution but...
    when a db column is empty cf is not populating the column
    with an empty value but just takes the next data available from the
    list in the data attribute
    Anyone experienced this anoying problem before and could help
    me with a solution ?
    Thanks for your help!
    Here the code:
    [hi]
    <cfgrid query="query" name="myGrid" rowheaders="no"
    selectmode="row">
    <cfgridcolumn name="lname" header="Lastname" />
    <cfgridcolumn name="fname" header="Firstname" />
    <!--- <cfloop query="query">
    <cfgridrow data="#lname#,#fname#" />
    </cfloop> --->
    </cfgrid>
    <cfinput type="text" name="firstName" label="First Name:"
    bind="{myGrid.selectedItem.fname}" />
    [/hi]
    PS. forgot to mention that we're running on a CF 7.0.1

    This was a tricky one for me also, but it is a simple fix.
    When using a query, the myGrid.selecteItem.columnName is case
    sensitive, and it HAS to match the column name in your query SELECT
    statement.
    Look at the code below for an example.
    If you are using a SELECT * SQL statement, then your grid
    selectedItem column name HAS to match your DB spelling.
    <cfquery name="x"
    datasource="#application.datasource#">
    SELECT
    Orderid, CustomerID <!--- case of column names has to
    match your selectedItem column name --->
    FROM Orders
    </cfquery>
    <cfform name="y" format="flash">
    <cfgrid query="x" name="myGrid" rowheaders="no">
    <cfgridcolumn name="ORDERID" header="Order" /><!---
    notice all uppercase in name, matches --->
    <cfgridcolumn name="CUSTOMERID" header="Customer" />
    </cfgrid>
    <cfinput type="text" name="cID" label="Customer"
    bind="{myGrid.selectedItem.CustomerID}"/>
    <!--- notice the case matches SELECT statement
    Changing the case of any letter in the bind or in the select
    sql will cause your binding to not work.
    --->
    </cfform>

  • Disable row selection for certain column in JTable

    I have a JTable with several columns, one of which contains an "Info" button. I already have it worked out that when I click on the "Info" button, that event gets passed from the JTable to the button. I have multi-select enabled for the JTable, but I don't want clicking on the "Info" button to change the current selection. I have a klugy "fix" working where I save off the current selection, and then restore it after the user presses the "Info" button. However, this results in "flashing" - the row containing the selected "Info" button becomes selected briefly, then the original selection is restored. How can I avoid this? I would like to just ignore selection events on the "Info" column, but still pass the mouse click event through to the button.
    Any suggestions?

    try this
            JTable table = new JTable() {
                public void changeSelection(int rowIndex, int columnIndex, boolean toggle, boolean extend) {
                    if (!getColumnModel().getColumn(columnIndex).getIdentifier().equals("Info")) {
                        super.changeSelection(rowIndex, columnIndex, toggle, extend);
                    }//else

  • CFGRID/CFSELECT/ActionScript problem

    I have CFGRID "onchange" code below that allows me to click
    on a CFGRID row and correctly display (in a separate CFFORMGROUP)
    the correct column value in via a CFSELECT object. The field name
    is
    priority and the grid name is
    tasks_grid.
    Works fine, but my problem is that I've been unable to get
    this to work on non-integer fields. If the field contains a text
    string, no matter how small, the ActionScript "if" statements don't
    seem to produce results. Could it be incorrect use of the ==
    operator? I'm not an AS programmer, so I'm unfortunately on the low
    end of the learning curve here.
    I hope the above makes sense. Any thoughts would be greatly
    appreciated.

    So far the best solution seems to be to create an array for
    each such field that creates a new query column containing the text
    data. I then reference the new "text" column ("priorityText", in
    this instance) via CFGRIDCOLUMN and use the original "integer"
    column (i.e., the actual field data) for the ActionScript matching
    code in the child form. The array code is from another post, in the
    Rich Forms forum, I believe.

  • Question about CFGRID

    I am trying to use the CFGRID command and use the flash version. I am getting a weird error that I don't understand. I am using ColdFusion 8.
    Here is my code:
    Here is the error I am getting:
    Error Occurred While Processing Request
    Attribute validation error for tag CFFORM.
    The tag does not allow the attribute(s) FORMAT. The valid attribute(s) are

    Here is my code, I screwed up earlier:
    <cfform format="flash">
    <cfgrid name="projectGrid" query="qgetProjects"/>
    </cfform>

  • CFGrid - NumberFormat

    Dear all,
    How to format a number in cfgridcolumn when cfform format =
    'Flash' ?
    Is there any solution for this? Also how to mask it?
    <cfform action = "#CGI.SCRIPT_NAME#" format="flash">
    <cfgrid name = "FirstGrid" width = "500"
    query = "qryEmployee" colheaderbold="Yes"
    font = "Tahoma" rowHeaders = "No"
    selectColor = "Red" selectMode = "Edit" >
    <cfgridcolumn name = "Unikey" display = "No">
    <cfgridcolumn name = "Name" header = "Name" Select="No"
    width="75" textcolor="blue" bold="Yes">
    <cfgridcolumn name = "Salary" header = "Salary"
    Select="No" width="65" mask="999,999,999">
    </cfgrid>
    <br>
    <cfinput type="submit" name="gridEntered">
    </cfform>
    Thanks in advance
    Keiko

    Try adding this before your format() invocation:
    nf.setGroupingUsed(false) ;P.S. the comma stripping approach will break as soon as you try to localize it for Europe.

  • How can I create a href with cfgridrow

    Basically I am using cfgrid to display a list of computer from a query.  I would lke to be able to; when I click on the first colum in any row to display a cfm page that will be able to display relevant information to a specific computer.  I will be passing parameter with theurl parameter.  Theses parameter are generated by my original query.
    here is the code i am trying to use.  I didn't include the href.
    This code works OK.  The 2 variables I am trying to send via URL are #machine# which is created from a query and URL.Hotel which is was send thru the URL when I opened this page. (the cfoutput tag were remove )
    <!---<table border="1"
      <TR>
        <TD> PC Name </TD>
        <TD> IP Address </TD>
        <TD> User Name </TD>
      </TR>
      <cfoutput query="listRet">
      <tr>
        <td><a href="ListApp.cfm?pc=#URLEncodedFormat(Trim(Machine))#&hotel=#URL.hotel#">#Machine#</a></ td>
        <td>#IPAddress#</td>
        <td>#Description#</td>
      </tr>
      </cfoutput>
    </table>--->
    Now can I do the same with a cfgrid and cfgrid row
    <cfform format="flash">
    <cfgrid
      query="listRet"
      name="gridPc"
      height="400"
      width="1000">
      <cfgridcolumn name="Machine" header="PC Name" headerbold="true" headertextcolor="blue" width="120">
      <cfgridcolumn name="Description" header="User Name" headerbold="true" headertextcolor="blue" width="250">
      <cfgridcolumn name="IPAddress" header="IP Address" headerbold="true" headertextcolor="blue" width="120">
      <cfgridcolumn name="SystemName" header="Model" headerbold="true" headertextcolor="blue" width="275">
    </cfgrid>
    </cfform>
    Thanks

    You can just use the HREF attribute of CFGRID directly, and it'll automatically pass a row-specific value. You won't be able to specify the exact URL attributes that will be passed - it'll pass a single attribute called "cfgridrow" if I recall correctly.
    Dave Watts, CTO, Fig Leaf Software
    http://www.figleaf.com/
    http://training.figleaf.com/
    Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
    GSA Schedule, and provides the highest caliber vendor-authorized
    instruction at our training centers, online, or onsite.

  • Strange problem with Lenovo S650

    I have an interesting problem with Lenovo S650.
    If it stay in 2G/3G mode - it connect and work in 3G network well. But if I put "only 3G" mode, it don't connect to the 3G network.
    I changed SIM-cards, modems, firmware, mobile operators -  Nothing change.
    What is the problem? Thank you.

    Because your network needs both 2G and 3G to establish an internet connection. When the signal is low ,3G is favored/preferred (WCDMA Preferred or Auto )...but that uses more power. Don't actually need 3G all the time.
    This isn't the root of your problem ...Actually isn't a problem at all .
    Now can you tell me your firmware build number(Settings>About phone.. ) ?
    Did you had this problem from day 1?
    Did you get the phone from China and flashed the ROW firmware yourself? Got the firmware from some Russian forum and changed some regional code at the first boot...by any chance?
    Beside flashing different baseband modems, have made other alterations (Like changing engineering mode settings... )
    Thanks
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as ''ACCEPT AS SOLUTION"! 
    Unsolicited PM's will not be answered! ....Please post your question/s in the appropriate forum board.
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • Lenovo S850 problem - fw upgraded with Chineese programs

    Dear All,
    Two weeks ago I bought a Lenovo S850 device. All works well, when I tried the officially available Lenovo Smart Assistant v1.03 to upgrade my phone (http://support.lenovo.com/hu/hu/downloads/ds101291)
    This program detected a new firmware: VIBE_UI_v2.0_1447_7.5.1_ST_S850
    After the firmware update I realized that only English / Chineese language are supported, moreover several programs are available only in chineese language, and some programs are missed (e.g. google.play).
    I have also Lenovo laptop and tablet, but this issue with this phone is really incredible.
    My question:
    1.) how can I degrade to or update for a multilingual firmware (ROW)?
    2.) How can I replace/remove builtin battery? It seems to be hard or impossible to remove back cover of this styled phone?
    Any help or suggestions would be very appreciated.
    Best regards.
    Zsolt
    Solved!
    Go to Solution.

    Hi
    ''This program detected a new firmware: VIBE_UI_v2.0_1447_7.5.1_ST_S850''....That's because you have the Chinese version of the phone and you were running a custom/modified Chinese firmware(Suppose you already know that if you're asking for a ROW firmware)that got updated to a full Chinese version(a lot of Chinese..I know).Did you got it from CN?
    Now you have 2 options:To install GAPPS/GMS (Google services like the PLay Store), root the device using the latest Vroot version to get rid of the unwanted Chinese apps and use THIS or THIS for ''more loacale'' languages...
    ...Or you can flash the ROW firmware version(Importantome users have reported that the S211 ROW firmware also works on the S850 Chinese version....But can't guarantee 100%!)
    To manually flash the ROW_S211_140923 4.4.2(download and unpack) follow message 7 of http://forums.lenovo.com/t5/K-S-and-Vibe-Series/Lenove-S650-sound-issue/m-p/1413747#M2950 (refers to a different model but the procedure is identical.You can use the drivers/PC flash tool included in the link.The S850 battery is non-removable>Before flashing>Disable/unmark ''Quick bootup'' or ''Fast bootup'' when you ''Power off'' the phone !).
    The procedure is also explained HERE (Please flash the S211 firmware provided by me ! )
    Don't need to say that you're doing this on your own risk...
    Let me know how it goes
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as ''ACCEPT AS SOLUTION"! 
    Unsolicited PM's will not be answered! ....Please post your question/s in the appropriate forum board.
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

Maybe you are looking for