CFGRID Item No.

i have this cfgrid program and i want to put the item no. in the table but its not working... please help...
    <cfgrid format="html"
                name="maingrid"
                  bind="url:cfc/user.cfm?page={cfgridpage}&pageSize={cfgridpagesize}&sortCol={cfgridsortcol umn}&sortDir={cfgridsortdirection}&staff_emp=#staff_emp#&start_date=#start_date#&end_date= #end_date#&txtuserid=#txtuserid#&company1=#company1#"
                preservepageonsort="true"
                appendkey="no"           
                selectonload="false"
                width="750"                           
                style="clear:both;" colheaderalign="center" striperows="yes"
                >   
               <cfset l_pos=1>
                <cfset l_posit=1>                                        
                <cfgridcolumn name="chuva" header="<center>NO.</center>" width="30"/>               
                <cfset chuva=l_posit+1>          
                <cfgridcolumn name="datatime" header="<center>DATE</center>" width="100"/>
                <cfgridcolumn name="status" header="<center>STATUS</center>" textcolor="##FF0000" width="100"/>
                <cfgridcolumn name="timeindatetime" header="<center>TIME IN</center>" width="100" />
                <cfgridcolumn name="timeoutdatetime" header="<center>TIME OUT</center>" width="100"/>
                <cfgridcolumn name="dayconworkhrs" header="<center>CONTRACT HRS</center>" width="100"/>
                <cfgridcolumn name="daytotalreghrs" header="<center>TOTAL HRS</center>" width="75"/>       
                <cfgridcolumn name="daytotalothrs" header="<center>OVERTIME</center>" width="75" />
                <cfgridcolumn name="DayTotalUndertime" header="<center>UNDERTIME</center>" width="75" select="yes"/>               
            </cfgrid>
        </cfform>
output is:
NO.
Datatime
status
timeindatetime
timeoutdatetime
dayconworkhrs
daytotalreghrs
daytotalothrs
daytotalundertime
C
C
C
based on my program all the columns is working but the NO. column is not appearing i want to put some item no. there in every rows... like 1...2...3.... and so on.. please help... thanks!

Hi,
refer
http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p51.htm
If grid uses a query, column name must specify name of a query column.

Similar Messages

  • CFGRID Selected Item as Variable

    Is it possible to set the value of a selected item in a
    cfgrid to a variable?
    I have tried this but it does not work:
    <cfset UpdateID={recipegrid.selectedItem.RecipeID}>
    (Throws an error)
    also tried:
    <cfset UpdateID="{recipegrid.selectedItem.RecipeID}">
    (Just sets the variable to the string
    {recipegrid.selectedItem.RecipeID} not the actual value from the
    selected row.)
    or
    <cfset UpdateID='{recipegrid.selectedItem.RecipeID}'>
    (Does the same as above.)
    How can I do this?

    Your attempts don't work because they assign the Coldfusion
    variable
    UpdateID an Actionscript value
    {recipegrid.selectedItem.RecipeID}.
    Use cfinput's bind attribute. For example, the following code
    binds the Actionscript value {recipeGrid.selectedItem.recipeID} to
    the Coldfusion variable form.UpdateID when the form is submitted.
    <cfif isDefined("form.UpdateID")>
    UpdateID: <cfoutput>#form.UpdateID#</cfoutput>
    </cfif>
    <cfset recipes = "pasta,salad,meat">
    <cfset ids = "1,2,3">
    <cfform name="recipes" format="flash"
    action="#cgi.script_name#">
    <cfgrid name="recipeGrid">
    <cfgridcolumn name="recipeID" header="Recipe ID">
    <cfgridcolumn name="recipe" header="Recipe">
    <cfloop index="i" from="1" to="#ListLen(recipes)#">
    <cfgridrow data ="#ListGetAt(ids, i)#,#ListGetAt(recipes,
    i)#">
    </cfloop>
    </cfgrid>
    <cfinput name="UpdateID" type="text" label="Update ID"
    width="100" bind="{recipeGrid.selectedItem.recipeID}" />
    <cfinput name="sbmt" type="submit" value="Send">
    </cfform>

  • Urgent CFGrid-Combo-DataProvider Question

    Dear all,
    I have this code to create combos in cfgrid. My question now
    is .. how to replace the hardcoded countries with query? The code
    is saved in AS file (.as). The full codes can be found at
    http://cfpim.blogspot.com/2005_08_01_cfpim_archive.html
    See
    Grid cellRenderer in Flash forms topic.
    function createChildren(Void) : Void{
    combo = createClassObject( ComboBox, "combo", 1,
    {owner:this});
    combo.dataProvider = [{data:'SGP',label:'Singapore'},
    {data:'JPN',label:'Japan'}, {data:'USA',label:'United States of
    America'}, {data:'AUS',label:'Australia'},
    {data:'IND',label:'India'}];
    combo.addEventListener("change", this);
    Thanks in advance
    Keiko

    Dan,
    I wanted to try your method, but I got another error (if I
    take the content of .AS file and put it inside cfsavecontent).
    Below is my code ...
    Seems that I cannot place import or createChild inside
    CFSaveContent. Any help will be very much appreciated.
    Keiko
    <cfform format="Flash" skin="haloSilver">
    <cfsaveContent variable="onLoad">
    import mx.controls.ComboBox;
    class GridRenderer extends mx.core.UIComponent {
    var combo;
    var listOwner : MovieClip;
    var getCellIndex : Function;
    var getDataLabel : Function;
    function createChildren(Void) : Void{
    combo = createClassObject( ComboBox, "combo", 1,
    {owner:this});
    combo.dataProvider = [{data:'SGP',label:'Singapore'},
    {data:'JPN',label:'Japan'}, {data:'USA',label:'United States of
    America'}, {data:'AUS',label:'Australia'},
    {data:'IND',label:'India'}];
    combo.addEventListener("change", this);
    function getPreferredHeight(Void) : Number{
    return combo != undefined ? 25:0;
    function setValue(str:String, item:Object){
    var val = item.country;
    for(var i = 0; i < combo.dataProvider.length; i++){
    combo.dataProvider
    .data == val ? combo.selectedIndex = i : '';
    function change() {
    listOwner.editField(getCellIndex().itemIndex,
    getDataLabel(), combo.selectedItem.data);
    function(){
    _level0.myGrid.rowHeight=25;
    _level0.myGrid.getColumnAt(2).cellRenderer = GridRenderer;
    }.call()
    </cfsavecontent>
    <!--- grid with 3 columns name, firstName, department
    --->
    <cfgrid name="myGrid" width="400">
    <cfgridColumn name="Name">
    <cfgridColumn name="Country">
    <cfgridrow data="Name 1, SGP">
    <cfgridrow data="Name 2, USA">
    </cfgrid>
    <cfinput type="submit" name="cmdSubmit" value="Submit to
    see the form dump">
    <!--- onLoad trigger --->
    <cfinput type="text" visible="No" width="0" height="0"
    name="trigger2" bind="{1==2?'':#onLoad#}">
    </cfform>

  • Passing Variable in CFGRID

    Hi I am usin coldfuison 9 and have a grid that gets poplulated by a query in a .cfc
    The queries work and the grid poplulates except when I try to add a hyperlink to a field that should link to a detail page.
    Here is my code I am an beginner working on someday intermediate -- thank you
    My GRID: This works except when I try to add a link to the RoadName field.
    <cfform>
       <cfgrid name="completed"
                 format="html"
                  pagesize="20" selectmode="row" bind="cfc:proposed.getComplete({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridso rtdirection})">
             <cfgridcolumn name="ProjectID" header="ProjectID" width="77" display="no" select="no"/>  
            <cfgridcolumn name="Region" header="Region" width="52"/>
            <cfgridcolumn name="LegislativeDistrict" header="Leg Dis" width="50"/>
            <cfgridcolumn name="CountyName" header="County" width="80"/>
            <cfgridcolumn name="TRC" header="TRC" width="45"/>
      <cfgridcolumn name="ProjectNumber" header="Project##" width="70"/>
        <cfgridcolumn name="a href="/Funding/Grants/RAP/ROLProjects/compProjectDetail.cfm?projectID=#complete.projectID#">#comp lete.RoadName#"
    "header="ProjectName" width="240">
        </cfgrid>
    </cfform>

    I doubled check, and the item/variable P620_BRIEFCASEID is on the page. I will see if I can get close to recreating the problem on apex.oracle.com and get back with you.
    But I can also describe what is going on better.
    i have a page 620, that was created using the Form, form on a tablr with report wizard, the report is 620 the form was 621. Next I wrote a pl/sql procedure that is called beforw the header that does some processing on the briefcase table based on the briefcaseid that is passed in, it defaults to NULL and exits if the briefcaseid is null. Then I edited the record link on page 620 to call it's self and pass the #BRIEFCASEID# as the value of :P620_BRIEFCASEID. The URL has the correct item and value ( at least what I am expecting ).
    I will start on the apex.oracle.com and let you know.
    Thanks
    Merph
    http://apex.oracle.com/pls/apex/f?p=42248:1

  • Embedding image and multiple queries in cfgrid

    I have a datagrid that displays a user's work history pulled
    from one query. In the original HTML table set up, a status icon
    for each work item was displayed as either "New", 'Needs Attention"
    or "Archived". This status was determined by using a value from the
    first query as a filter in the WHERE clause of the second query:
    ------------------- Original Query -------------------------
    <cfquery datasource="#application.defaultdsn#"
    name="qQuestions">
    SELECT discussions.dateSubmitted, discussions.discussionID,
    discussions.subjectID, discussions.topic, users.firstName + ' ' +
    users.lastName AS stName,
    subjects.subjectID AS Expr1, subjects.subject
    FROM discussions INNER JOIN
    users ON discussions.userID = users.userid INNER JOIN
    subjects ON discussions.subjectID = subjects.subjectID
    WHERE 0=0
    <cfif getDiscussionIDs.recordCount GT 0>
    AND (
    <cfloop query="getDiscussionIDs">
    discussions.discussionID = #getDiscussionIDs.discussionID#
    <cfif getDiscussionIDs.currentRow NEQ
    getDiscussionIDs.recordCount>OR</cfif>
    </cfloop>
    <cfelse>
    AND 0=1
    </cfquery>
    ------------------------ Queries used to determine status
    <cfquery datasource="#application.defaultdsn#"
    name="LatestMessage">
    SELECT Max(discussionPosts.postID) AS NewestMessage
    FROM discussionPosts
    WHERE discussionPosts.discussionID =
    #qQuestions.discussionID#
    </cfquery>
    <cfset variables.userTypetoView = "tutor">
    <!--- <cfif LatestMessage.recordCount --->
    <cfquery datasource="#application.defaultdsn#"
    name="getLastInfo">
    SELECT discussionPosts.userType,
    discussionPosts.dateSubmitted, discussionPosts.viewerID
    FROM discussionPosts
    WHERE discussionPosts.postID = #LatestMessage.NewestMessage#
    </cfquery>
    My question is how can I emulate this same status icon setup
    in a cfgrid? I used the following ActionScript to create a new
    column in the grid and return a string. However, this new column
    must logically know how to display the correct status IMAGE for
    each corresponding row. As you can see, there are no database
    tables for storing the status - which would have made this much
    easier.
    function setStat(){
    eQArchive.getColumnAt(1).labelFunction = statIcon;
    function statIcon(item
    bject, columnName:String): String{
    if (item[columnName] != undefined) {
    return asIcon;
    else {
    return "";
    I also tried using the toScript() function in CF7 to see if I
    can set a variable equal to the appropriate image and then return
    it in the above script, but this is where I am at a loss.
    <cfif getLastInfo.recordCount GT 0 AND
    Trim(getLastInfo.userType) EQ "tutor">
    <cfset stat = "/images/docArchive.jpg">
    <script language="javascript" type="text/javascript">
    <cfoutput>var #toScript(getLastInfo, "asIcon",
    True)#;</cfoutput>
    </script>
    <cfelseif getLastInfo.viewerID EQ session.tutorID>
    <cfset stat = "/images/docNew.jpg">
    <script language="javascript" type="text/javascript">
    <cfoutput>var #toScript(getLastInfo, "asIcon",
    True)#;</cfoutput>
    </script>
    <cfelse>
    <cfset stat = "Green">
    <script language="javascript" type="text/javascript">
    <cfoutput>var #toScript(getLastInfo, "asIcon",
    True)#;</cfoutput>
    </script>
    </cfif>
    Any ideas on how to get this working is greatly appreciated.
    Thank you in advance.

    Hi Mike,
    To insert multiple queries in a single woorkbook.
    In the Business Explore --> Analyser --> Open the first query and then click on tools button of the BEx add on components and select the option ( Insert Query ).
    Reg's,
    Pratap Reddy Bodimalla.

  • 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

  • Embedding Images In cfgrid

    Question re: embedding images within cfgrid.
    Based on what I've read so far, it seems the only way to
    embed am image within a cfgrid is by pulling image URL info from a
    database. My question is can this be done without referring to a
    database at all and just include the path info to the image
    directory location?
    I am running into some difficulty where I would like to
    notify the user of the state of his/her item - i.e. an item that is
    flagged as "New", "Requires Attention" or "Overdue" based on the
    timestamp.
    Essentially, I am displaying a user's work queue in a grid
    and need to implement the aforementioned "flag" feature using
    images to indicate the current state. Ideally, I would like the
    image to display in a separate column by itself, but that is
    impossible since the header column must use an existing db table. I
    guess this leads to another question: can an image be placed into
    the same cell with actual data? BTW, the status for these items are
    not maintained in a db table either.
    Any suggestions or ideas are greatly appreciated.

    You will find any number of HTML tutorials and commands in order to construct an HTML command to display an image stored on a public server. You can start here.
    You will have to upload the desired image to any public server site (such as photobucket.com) that lets you upload images that can be accessed by HTML commands. You will need an HTML editor to work with. A simple one for basic HTML that you would find useful is Level4.

  • Passing CFGrid variable to Javascript

    I am trying to capture a value in my cfgrid and send it to a
    javascript attached to a button.
    <cfinput type="button" name="viewMemo" value="View
    Safetrace Memos" tooltip="Click here to view memos "
    onclick="getURL('javascript:openNewWindow(
    my_grid.dataProvider[my_grid.selectedIndex][ITEM]');"
    bind="my_grid.dataProvider[my_grid.selectedIndex][ITEM]">
    When I drop the bindVariable into the javascript in the
    getURL I get a ton of Flex engine errors. I've tried all kinds of
    syntax variations and still errors. Could someone lend me a hand?
    Thanks.
    Mark F

    Hi Mark,
    You can try this example. If it works then you can try to
    replace the txtSource with your my_grid.dataProvider ...
    <script>
    var newwin;
    function executejava(strValue1, strValue2) {
    alert(strValue1);
    alert(strValue2);
    </script>
    <cfform format="flash">
    <cfformitem type="script">
    public function openURL(strSource):Void {
    getURL("javascript:executejava('" + strSource + "','my
    window','_blank')");
    </cfformitem>
    <cfinput name="txtSource" type="text" label="Source">
    <cfinput name="btnClick" value="Click" type="button"
    onclick="openURL(txtSource.text)">
    </cfform>
    Hope it helps
    Cheers,
    Keiko

  • Cfgrid after edit

    I have 2 questions about a cfgird:
    1) After editing an item in a cfgrid a red arrow appears above the edited item.  I have a custom afterEdit event handler that notifies the user that the field has been successfully updated, so I don't want the red arrow to appear.  How can I get rid of that red aarow?
    2) When a row is in edit mode, if the user presses enter to complete the editing, the next row automatically goes into edit mode.  How can I prevent that?  I would like the current row to simply finish editing.
    Thanks for your help.

    Sure.  This is the relevant part of the code.  There is nothing special about this particular grid - no custom renderer or anything - it's vanilla.
        <!------------------------------------------------------------------------
           - Product Lines grid.
         ------------------------------------------------------------------------->
         <cflayoutarea style="width: 210px; text-align; left">
           <cfform name="frmProdLines">
             <cfgrid name="gvExhibLines"
               format="html"
               pagesize="15"
               striperows="yes"
               selectmode="edit"
               bindonload="false"
               width="200"
               height="430"
              bind="cfc:prodLines.getLines({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsort direction},{frmShowsAndBooths:lbBooths})"
               onchange="cfc:prodLines.updProdLines({cfgridaction},{cfgridrow},{cfgridchanged})">
               <cfgridcolumn name="exhibLineID"
                 header="exhibLineID"
                 width="0"
                 display="no"/>
               <cfgridcolumn name="description"
                 header="Product Lines"
                 width="200" />
             </cfgrid>
           </cfform>
         </cflayoutarea>
      <!---------------------------------------------------------------------------
        - getLines - Pull all the lines for a passed booth.
       ---------------------------------------------------------------------------->
       <cffunction name="getLines" access="remote">
         <cfargument name="page"           type="numeric" required="yes">
         <cfargument name="pageSize"       type="numeric" required="yes">
         <cfargument name="gridsortcolumn" type="string"  required="no" default="">
         <cfargument name="gridsortdir"    type="string"  required="no" default="">
         <cfargument name="bthRequestID"   type="string"  required="no" default="">
        <cfset var qGetLines = "">
         <!--- If the required arguments are missing return a blank query. --->
         <cfif #ARGUMENTS.bthRequestID# eq "">
           <cfquery name="qGetLines" datasource="#request.datasource#">
             SELECT ''
           </cfquery>
           <cfreturn QueryConvertForGrid(qGetLines,
             ARGUMENTS.page, ARGUMENTS.pageSize)>
         </cfif>
         <!---
             - Get all the product lines for the passed booth request.
         ---->
         <cfquery name="qGetLines" datasource="#request.datasource#">
           SELECT el.exhibLineID, el.description
             FROM exhib_line_list ell
            INNER JOIN exhib_lines el ON ell.exhibLineID = el.exhibLineID
            WHERE ell.bthRequestID = #ARGUMENTS.bthRequestID#
           <cfif ARGUMENTS.gridsortcolumn NEQ "" and ARGUMENTS.gridsortdir NEQ "">
             ORDER BY #ARGUMENTS.gridsortcolumn# #ARGUMENTS.gridsortdir#
           <cfelse>
             ORDER BY description
           </cfif>
         </cfquery>
         <cfreturn QueryConvertForGrid(qGetLines,
           ARGUMENTS.page, ARGUMENTS.pageSize)>
       </cffunction>
    The red arrow above "Printers" is the one I'm trying to get rid of.  Regarding the first question, if I were to change the name of "Test in Area 1", "Printers" would automatically enter edit mode.  I'd like to disable that.
    Thanks for looking at it.

  • CFLOOP In CFGRID

    I am populating the grid from a query that displays the
    perosn's name, date of attachment and attachment name, etc etc. I
    am offering the option to delete these attachments based on two
    criteria.
    1. The session.role is the administrator role.
    2. The owner of the attachment (the person that put it up)
    can delete the attachment.
    The problem I am having is that more than one person can add
    an attachment to the file. I want to be able to limit the items
    they can delete to those that they put up. Is it possible to cfloop
    through the grid so if the person is the owner I can give them the
    check box, if they are not the owner it is inactive. Here is the
    code I am working with:
    <cfgrid name="attachmentList" query="attachmentsQuery"
    height="220" rowheaders="false"
    onchange="#launchAttachment#" selectmode="edit">
    <!--- Delete Only If Session. Role is 10 Or session.admin
    is Owner --->
    <cfif session.role EQ 10>
    <Cfset enable = "yes">
    <cfelseif Session.admin IS
    #trim(attachmentsQuery.AttachOwner)#>
    <Cfset enable = "yes">
    <Cfelse>
    <Cfset enable = "no">
    </cfif>
    <cfgridcolumn name="checked" header="Delete"
    type="boolean" width="46" display="#enable#"/>
    <cfgridcolumn name="AttachOwner" display="no">
    <cfgridcolumn name="AttachID" display="no">
    <cfgridcolumn name="AttachName" header="Attachment"
    select="no" />
    <cfgridcolumn name="Name" header="Attached By"
    select="no" />
    <cfgridcolumn name="DateTimeKey" header="Attach Date"
    mask="MM/DD/YYYY" select="no" />
    <cfgridcolumn name="AttachmentType" header="Attach Type"
    select="no" />
    </cfgrid>

    You you can use CFML inside of a JavaScript <script..> block to dynamically build the JavaScript code to send to the client.  It is a very powerful technique for building highly interactive web sites.
    Just realize that all the JavaScript code is going to be completely built by the CFML and then sent to the browser client through the web server where the JavaScript is executed completely independent of anything that is running on the server.  The JavaScript can not read or write variables on the server or vice-a-versa.  But it is quite easy to export variable values from ColdFusion to JavaScript.  It is a bit more work to export variable values back requiring either the browser or JavaScript to make a new request of the server to send the data.  AJAX does allow this to happen behind the scenes making it look like the data is being shared.  But in reality it is being passed back and forth with independent HTTP requests and responses.
    A recent discussion on this topic:
    http://forums.adobe.com/message/1957350#1957350

  • Cfgrid html values/valuesdisplay no longer displaying after update

    Our current system is CF8 (8.0.1 with latest cumulative update 4), MS SQL server. The cumulative update was installed last week and I just discovered that the HTML cfgrids that we use no longer function correctly. All the cfgridcolumns that use values="some values" valuesdisplay=" some values" no longer display more than the initial value set (one value when dropdown appears). These cfgrids work on our development server which was also updated with latest cumulative update as well. I have tried deleting the update, installing the patch for cfgrid error, re-installing the cumulative update, overwriting the ext and css files with our development files. Nothing has corrected the issue.
    hot fix tried:
    "HTML grids may display improperly in coldfusion 8.0.1 with drop-downs not displaying all items (ID 71630)."
    example:
    <cfform name="makeAdmin" format="html"  style="z-index: 300003; font-size:12px;" timeout="60" method="post" height="700" width="900">
    <cfinput type="hidden" value="TRUE" name="btnSubmit">
    <cfinput type="hidden" name="edit" value="true" />    
                   <cfgrid name="makeGrid" format="html" style="z-index: 300003;"  query="makeQuery" rowheaders="no" width="270" height="500" insert="yes" insertbutton="Insert New Row" deletebutton="Delete Row" delete="yes" selectmode="edit" colheaderbold="yes">
                    <cfgridcolumn name="makeID"
                        header="rowID"
                        width="0"
                        headeralign="center"
                        headerbold="Yes"
                        select="no"
                        display="no"
                        >
                    <cfgridcolumn name="make"
                        header="Make"
                        width="150"
                        headeralign="center"
                        headerbold="Yes"
                        select="yes"
                        display="yes"
                        >
                    <cfgridcolumn name="active"
                        header="Active"
                        width="100"
                        headeralign="center"
                        headerbold="Yes"
                        select="yes"
                        display="yes"
                        values="True,False"
                        >
                  </cfgrid>
      <cfinput align="middle" name="submitButton" value="Commit Updates" type="submit">
    </cfform>
    All the 'active' column dropdown displays is the value returned from the query.
    This occurs on cfgrids that are bound to cfc's or grids with query="" . The value displayed in dropdown is the one returned from query, the rest of list does not display.
    Can anyone help me? What folders/files control the html cfgrid?

    Thank you for the response, I didn't see that there was a newer hotfix released afterwards that I hadn't tried. Unfortunately since I didn't have time to wait for a solution I was forced to change my code and remove the inline updateable grids. I'm not sure I trust them enough now to try again later, but if the occassion arises I may attempt again.

  • CFGRID not submitting data with CF 9.0.1

    I have a CFgrid that was working fine in CF 9.0, but now we have  upgraded to 9.0.1, nothing comes up form (form.#GridName#.#Column1Name#)  after the form is submitted. I made up some test code (below) which i  have tried on a 9.0.1 server, which comes up with empty string in the  form, were as on a 9.0 it somes up with all the info for the selected  row. Any ideas on what the problem is and any fixes for it?
    Cheers in advance
    DUMP form: <cfdump var="#form#"><br>
    <cfform action="#CGI.script_name#" method="post">
    <cfset args = structNew()>
    <cfset args.name   = "requestGrid">
    <cfset args.format   = "html">
    <cfset args.stripeRows  = true>
    <cfset args.selectmode  = "row">
    <cfset args.height   = "150">
    <cfset arg.width   = "320">
    <cfset args.autowidth  = "yes">
    <cfset args.gridLines  = "yes">
    <cfgrid attributeCollection="#args#">
    <cfgridcolumn name="iRequestProductID"  display="false">
    <cfgridcolumn name="iItemID"    display="false">
    <cfgridcolumn name="iProductID"   display="false">
    <cfgridcolumn name="productName"   header="Requested Product"  width="150" >
    <cfgridcolumn name="ItemName"    header="Allocated Item"  width="100" dataAlign="center">
    <cfgridcolumn name="sSerialNo"    header="Serial no"    width="100" dataAlign="center">
    <cfgridrow data = "1,1,2,test1,aaa,123">
    <cfgridrow data = "1,2,2,test2,bbb,234">
    <cfgridrow data = "1,3,2,test3,ccc,345">
    <cfgridrow data = "1,4,2,test4,ddd,456">
    <cfgridrow data = "1,5,2,test5,eee,567">
    </cfgrid>
    <input type="Submit" name="allocate"  value="Allocate Item" style="color:ff0000" />
    </cfform>

    From adobe:
    "Typically, in a grid, irrespective  of whether it is static or dynamic, the values of the selected row are preserved  on submit, thereby allowing access to the same in the action page. In 901, to  overcome a “corrupt grid “ error, we chose to assign the dynamic grid an empty  value since interactions in dynamic grid are CFC-driven by nature. It looks like  static grids too have got affected by this. This is a regression and we need to  fix this."
    Waiting to hear back from them about a fix, think they are planning to hotfix this, will post up any fixes/info i get
    Cheers
    S

  • CFGRID lock columns

    Using Coldfusion MX7. Does anyone know if you can lock/freeze
    columns in CFGRID so that you can scroll horizontally while keeping
    a set a columns in place for user readability? I've seen a way to
    do this using CSS, but prefer the functionality and speed of
    CFGRID.

    Hello
    It's not a foreign version !
    If my guess is right it's mine too and French is not a foreign language, isn't it ?
    In the main language the item is named: "Afficher la vue avant impression"
    In one foreign language it is named "Print View"
    Yvan KOENIG (from FRANCE mardi 30 octobre 2007 20:52:02)

  • Open and Cleared Items

    Hi all
    We are currently busy finalising our FI-CA BW Data Modeling exercise - and in process to complete Dataflow documentation.
    We will make use of the standard open and cleared item extractors with enhancements on different levels. Some background on the requirements:
    - We will have to extract document types, divisions, dates, clearing reasons, contract account, Business Partner etc.. information to meet the requirements.
    - We will have to keep history for at least 26 months to produce the required management reports (very high number of data), and 'partition' the cubes on date level for both Cleared and Open Items.
    - Most of the reports display 13 months worth of billing/ payment figures. I.e. the report for the end of October show billings vs. payments for October 2006, September, August, July, ... to October 2005.
    - The requirement is that the report figures will not change from one month to the next (i.e. if I run the report for end of October - all figures from October 2006 to Oct 2005 will remain the same when I run the report for end of November). I.e. if reversals, transfers, returns etc. occur - these will be picked up in later months.
    - For the above requirement, we are looking at extracting open (end of month) and cleared items (for the specific monthly interval) on a monthly basis, and appending the data in the cubes. We will then always base the June figure in the report on the June month extraction (LAUFD/ LAUFI fields) and we will pick up any movement in the next month/s - i.e. July.
    Has anyone had these types of requirements before - to report on billings vs. payments, and report on history as described above. We would appreciate it if you could share your report requirements, and also design documents, especially the DataFlow documentation that we can look at as input to our design.

    We had a requirement to retrieve "aging of receiveables" by customer. Basically, it goes thru each record and depending on the due date places the amounts in the following buckets (example). 0-30 day Overdue, 31-60 days Overdue, 61-90 days overdue, 30+ days overdue, 60+ days overdue) etc all the way to 6+ years overdue.
    There are also cooresponding buckets for coming due analysis. For example, what is: 0-30 days coming due, 31-60 days coming due, 30+ days coming due, etc...
    To do this, first I needed to be able be able to produce an open items statement at any given time in the past. Now, this seems impossible because of how the items go from open to cleared all the time. And an item that was open one month ago, may not be open anymore.
    What I did was first remove any selections on item status. Then compare the posting date with teh key date in the past, if the posting date is less than or equal to the key date, keep the record.
    Then compare the clearing date with the key date. First, keep all that are #. (This keeps all records still open from that posting date/key date)
    Then, add another check for all items that were cleared after the key date (GT Key Date). This gives you the open items on that date.
    Hope that makes sense. Let me know if you want clarification.
    /smw

  • Configuring requirement : ordered item to absorb cost of free goods

    Hello Friends,
    I need to configure this in SAP SD.
    The main item should accumulate the cost of the free goods.
    I have  set the cumulative indicator and deactivated pring for this item.
    Do i still need to configure the stock value for the free goods as cost free item? Or is this step only applicable for
    another scenario, like,
    If I were to activate Pricing such that free goods is displayed as subitem and VPRS configured as cost and discount set to 100%
    1. Set  Item category to TANN using FREE usage   AND
    2. use condition type RL00 with requirement 55.
    3. use pricing type B.
    regards
    Ravi

    Read this SAP help at http://help.sap.com/saphelp_47x200/helpdata/en/dd/55fa4e545a11d1a7020000e829fd11/frameset.htm and the topic Free Goods in Sales and Distribution Processing for details.
    Also go through each step of the configuration of the path at SPRO->Sales and distribution->basic functions->free goods.
    Regards,

Maybe you are looking for

  • How to Reset Mavericks Server

    Just curious as to how to Reset Mavericks Server like it is being launched for the first time.

  • Links within a pdf won't open in Safari, but work fine on Explorer, Firefox

    I created a pdf with embedded links and posted it to my site. The links within the pdf work just fine with Internet Explorer and Mozilla Firefox, but they will not open with Safari, neither on a Mac nor on a Windows platform. Why is this happening an

  • Where did "Attach to email" go as a form field action in Acrobat X?

    I just upgraded to Acrobat X from 9 and love it but there seem to be a few options missing. I build and maintain forms for several different countries in my organization and need to include a button in my forms for the user to attach the form to an e

  • Air Navigation Pro Using Integrated iPhone GPS without a sim card

    I use Air Navigation Pro with my iphone on a passenger seat of the  plane. Integrated GPS function works  just fine without a SIM card installed, but only to a certain speed ~300 km/h or height then it can't find any satellite at all. Can be this pro

  • GT683 and gaming on HDTV?

    Hi guys. I just bought me a new MSI GT683 with the specs down below, but due to being on summer vacation, I haven´t been able to use it until I´m going home on wednesday.  Anyway, to the question: Do you think it´ll be powerful enough to run games li