Multiple CFGrids

We are using cfform and tabs to separate each section. We
have multiple sections using CFGrid on the same form. In several of
these grids, we display a date of some sort. Every time we add a
date to more than one grid, the form don't display.
Here's two tabs that are breaking because we have an
expiration_date in accreditations and an insertdate in quizzes.
Any ideas???
<!--------------------------------------------------------------------------------------- -----------
Accreditations
----------------------------------------------------------------------------------------- ---------->
<cfif qry_getCA.recordcount>
<cfformgroup type="page" label="Accreditations">
<cfif qry_getCA.recordcount GTE 10>
<cfset variables.accredgridheight = 250>
<cfelse>
<cfset variables.accredgridheight =
(qry_getCA.recordcount * 30) + 32>
</cfif>
<cfgrid query="qry_getCourseAccreditations"
height="#variables.accredgridheight#"
name="myGrid_accred"
format="flash"
colheaderbold="yes"
onchange="accred_go(myGrid_accred.selectedItem.MyAccredID_accred)"
appendkey="no">
<cfgridcolumn display="no" name="LKUP_ID"
header="LKUP_ID" width="60">
<cfgridcolumn name="LKUP_DISPLAY" header="Accreditation
Type" width="125">
<cfgridcolumn name="REF_NUMBER" header="Accreditation
Number" width="125">
<cfgridcolumn name="PROVIDER_NAME" header="Provider"
width="125">
<cfgridcolumn name="CREDITS" header="Credits"
width="50">
<cfgridcolumn name="EXPIRATION_DATE" header="Expires"
width="50" >
</cfgrid>
</cfformgroup>
</cfif>
<!--------------------------------------------------------------------------------------- -----------
Evaluations
----------------------------------------------------------------------------------------- ---------->
<cfif qry_getCE.recordcount>
<cfformgroup type="page" label="Evaluations">
<cfif qry_getCE.recordcount GTE 10>
<cfset variables.evalgridheight = 250>
<cfelse>
<cfset variables.evalgridheight = (qry_getCE.recordcount
* 30) + 32>
</cfif>
<cfgrid query="qry_getCE"
height="#variables.evalgridheight#"
name="myGrid_eval"
format="flash"
colheaderbold="yes"
onchange="eval_go(myGrid_eval.selectedItem.SURVEY_ID,myGrid_eval.selectedItem.MyAccredID_ eval)"
appendkey="no"
>
<cfgridcolumn display="no" name="MyAccredID_eval"
header="MyAccredID_eval" width="60">
<cfgridcolumn display="no" name="SURVEY_ID"
header="SURVEY_ID" width="60">
<cfgridcolumn name="ACCREDITATION_TYPE_NAME"
header="Accreditation Type" width="100">
<cfgridcolumn name="SURVEY_NAME" header="Survey Name"
width="225">
<cfgridcolumn name="INSERTDATE" header="Date" width="50"
mask="MM/DD/YYYY">
</cfgrid>
</cfformgroup>
</cfif>

What version of ColdFusion are you using? I've seen other
similar problems with MX 7. I believe that many of them were fixed
in the two updates to MX7 that have been released.

Similar Messages

  • Layout Issue using multiple CFGRID

    I am trying to get 4Flash Grids to layout side by side. It
    appears that there is plenty of room looking at the screen, but
    there are scroll bars on the right and bottom. How can I make these
    fit and center them as a group?
    Thanks.
    <div align="center">
    <cfform method="post" preloader="no" format="flash"
    skin="halosilver" width="1000">
    <cfformgroup type="horizontal">
    <cfgrid format="flash" name="managers"
    query="q_getManagers" selectmode="edit" width="200"
    height="300">
    <cfgridcolumn name="manager">
    </cfgrid>
    <cfgrid format="flash" name="categories"
    query="q_getCategories" width="200" height="300" selectmode="edit"
    >
    <cfgridcolumn name="Category">
    </cfgrid>
    <cfgrid format="flash" name="classification"
    query="q_getClassifications" width="200" height="300"
    selectmode="edit">
    <cfgridcolumn name="classification">
    </cfgrid>
    <cfgrid format="flash" name="facilities"
    query="q_getFacilities" width="200" height="300"
    selectmode="edit">
    <cfgridcolumn name="facility_name">
    </cfgrid>
    </cfformgroup>
    </cfform>
    </div>

    Hello!
    The layout management in OSMF prior to 1.6 sprint 3 was somehow inconsistant in composite elements.
    That(I guess) is a problem of layout measurement.
    Our player relies on osmf layouting greatly so I have posted a lot here already.
    May be it can help you:
    http://forums.adobe.com/thread/837062
    This topic contains referencies to other and to jira:
    http://bugs.adobe.com/jira/browse/FM-1174
    There is a "duct tape" proxy attached to jira bug it may help you if you put your composition to that proxy BEFORE settting it to media player.
    Since 1.6 sprint 3 the whole layout thing has changed and has become consistent - it does not work as expected at all :O)
    But as soon as you are on 1.0 the duct tape proxy may help
    Best regards!

  • Multiple CFGrids Problem

    I am creating a ecommerce manager and I am having some
    problems with the options part of the site. I allow for 5 options
    to be set. Each option can be populated using its own CFGRID (this
    is a Flash Form).
    When you insert into a grid, if the grid has less enteries
    than any grid before it, it will populate the difference with
    information from the previous grid. Example: Option A has 5
    entires, Option B has 2, when you save the form, Option B is keep
    its two rows but it will also get 3 more Option A. It only shows
    when the form is submitted.
    Below is an example:
    I stripped down the code so it will run by itself. It still
    shows what it is doing when submitting - look in the cfdump.
    <cfdump var="#form#">
    <cfset getOptionA =
    QueryNew("optionLineCharge,optionLineItemID,optionLineName,optionLocation,productNumber") >
    <cfset getOptionB =
    QueryNew("optionLineCharge,optionLineItemID,optionLineName,optionLocation,productNumber") >
    <cfset getOptionC =
    QueryNew("optionLineCharge,optionLineItemID,optionLineName,optionLocation,productNumber") >
    <cfset getOptionD =
    QueryNew("optionLineCharge,optionLineItemID,optionLineName,optionLocation,productNumber") >
    <cfset getOptionE =
    QueryNew("optionLineCharge,optionLineItemID,optionLineName,optionLocation,productNumber") >
    <!---FORM START--->
    <cfform name="form" width="800" height="700"
    format="flash" skin="haloblue" timeout="1000">
    <!---Options--->
    <cfformgroup type="page" label="Options">
    <cfformgroup type="accordion">
    <!---Option A--->
    <cfset label = "Sizes">
    <cfformgroup type="page" label="#label#">
    <cfformgroup type="page" width="300">
    <cfgrid name="optionA" delete="yes" insert="yes"
    query="getOptionA" selectmode="edit">
    <cfgridcolumn name="optionLineItemID" display="no">
    <cfgridcolumn name="optionLineName" header="Option">
    <cfgridcolumn name="optionLineCharge" header="Additional
    Cost">
    </cfgrid>
    </cfformgroup>
    </cfformgroup>
    <!---Option B--->
    <cfset label = "Colors">
    <cfformgroup type="page" label="#label#">
    <cfformitem type="hrule" />
    <cfformgroup type="page" width="300">
    <cfgrid name="optionB" delete="yes" insert="yes"
    query="getOptionB" selectmode="edit">
    <cfgridcolumn name="optionLineItemID" display="no">
    <cfgridcolumn name="optionLineName" header="Option">
    <cfgridcolumn name="optionLineCharge" header="Additional
    Cost">
    </cfgrid>
    </cfformgroup>
    </cfformgroup>
    <!---Option C--->
    <cfset label = "Embroidery Message">
    <cfformgroup type="page" label="#label#">
    <cfformgroup type="page" width="300">
    <cfgrid name="optionC" delete="yes" insert="yes"
    query="getOptionC" selectmode="edit">
    <cfgridcolumn name="optionLineItemID" display="no">
    <cfgridcolumn name="optionLineName" header="Option">
    <cfgridcolumn name="optionLineCharge" header="Additional
    Cost">
    </cfgrid>
    </cfformgroup>
    </cfformgroup>
    <!---Option D--->
    <cfset label = "Embroidery Style">
    <cfformgroup type="page" label="#label#">
    <cfformgroup type="page" width="300">
    <cfgrid name="optionD" delete="yes" insert="yes"
    query="getOptionD" selectmode="edit">
    <cfgridcolumn name="optionLineItemID" display="no">
    <cfgridcolumn name="optionLineName" header="Option">
    <cfgridcolumn name="optionLineCharge" header="Additional
    Cost">
    </cfgrid>
    </cfformgroup>
    </cfformgroup>
    <!---Option E--->
    <cfset label = "Embroidery Location">
    <cfformgroup type="page" label="#label#">
    <cfformgroup type="page" width="300">
    <cfgrid name="optionE" delete="yes" insert="yes"
    query="getOptionE" selectmode="edit">
    <cfgridcolumn name="optionLineItemID" display="no">
    <cfgridcolumn name="optionLineName" header="Option">
    <cfgridcolumn name="optionLineCharge" header="Additional
    Cost">
    </cfgrid>
    </cfformgroup>
    </cfformgroup>
    </cfformgroup>
    </cfformgroup>
    <cfinput type="submit" name="submit" value="submit">
    </cfform>

    What version of ColdFusion are you using? I've seen other
    similar problems with MX 7. I believe that many of them were fixed
    in the two updates to MX7 that have been released.

  • 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.

  • Cfgrid updating issue with multiple records

    I have a cfgrid within cfform, it fetches the records and shown in the screen properly. refer screenshot.
    have a new field "sortfield" as a editable field and updating the record as 1,2,3,4 (instead - 1,6,2,4) but after updated in the db. The datas updated differently and not clearly updating the relevant data in the relevant record in the sort field. value was shuffled sometimes.
    used the below code:
    http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c2 4-7acf.html
    under Update the data source with the cfquery tag

    I have a cfgrid within cfform, it fetches the records and shown in the screen properly. refer screenshot.
    have a new field "sortfield" as a editable field and updating the record as 1,2,3,4 (instead - 1,6,2,4) but after updated in the db. The datas updated differently and not clearly updating the relevant data in the relevant record in the sort field. value was shuffled sometimes.
    used the below code:
    http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c2 4-7acf.html
    under Update the data source with the cfquery tag

  • Dynamically Hiding a Column in a CFGRID

    Here's the situation: I've got a flash form with a cfgrid.
    That grid has 4 columns. Is it possible to click a separate button
    in the form and hide/show one of the grid columns, similar to
    altering the "display" attribute of the <cfgridcolumn> tag? I
    know it's possible to click a button and hide the entire grid...
    Any help or comments would be most appreciated!

    Just FYI: I think I solved this by adjusting the column
    widths dynamically via Actionscript. There was something odd about
    how the grid handled the widths, though. I had to move the column
    all the way to the right in the grid and then set it's width to a
    negative value to "hide" it, which actually just pushed it off the
    screen.
    Let me know if you're still having trouble and I can dig up
    the code, but it probably won't be that useful if you have to hide
    multiple columns.

  • Multiple submit buttons in flash form

    I need to make this page so that when the submit button is
    pressed, the action page will be based on the cfforgroup, not on an
    overall form action. Essentially I have 2 main tabs and multiple
    tabs underneath each one of those that need seperate action calls
    on submit:
    <cfquery name="modelinfo" datasource="inventory">
    SELECT cd_manufacturer.name + ' ' +
    model + ' ' +
    processor_type + ' ' +
    processor_speed AS system,
    cd_manufacturer.name + ',' +
    model + ',' +
    processor_type + ',' +
    processor_speed AS val_list
    FROM cd_manufacturer
    INNER JOIN cd_model ON
    cd_manufacturer.pk_manufacturer=cd_model.fk_manufacturer
    </cfquery>
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title></title>
    </head>
    <cfquery name="modelinfo" datasource="inventory">
    SELECT cd_manufacturer.name + ' ' +
    model + ' ' +
    processor_type + ' ' +
    processor_speed AS system,
    cd_manufacturer.name + ',' +
    model + ',' +
    processor_type + ',' +
    processor_speed AS val_list
    FROM cd_manufacturer
    INNER JOIN cd_model ON
    cd_manufacturer.pk_manufacturer=cd_model.fk_manufacturer
    </cfquery>
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>IT Asset Tracking System Main Menu</title>
    </head>
    <body>
    <cfform format="flash">
    <cfformgroup type="tabnavigator"><!--begin main
    navigation-->
    <cfformgroup type="page" label="Asset"><!-- Begin
    sub page ASSET---->
    <cfformgroup type="tabnavigator"><!-- Begin sub
    page ASSET navigator---->
    <!---ADD ASSET START (uses asset_processes/newAsset.cfm
    for processing)---------------------->
    <cfformgroup type="page" label="Add Asset"
    action="asset_processes/newAsset.cfm">
    <cfset vdate=DateFormat(Now(), "mm/dd/yyyy")>
    <cfinput type="datefield" name="cdate" width="150"
    label="Entry Date" validateat="onSubmit" validate="noblanks"
    required="yes">
    <cfselect
    label="System Type"
    name="modelinfo"
    query="modelinfo"
    required="yes"
    multiple="no"
    display="system"
    value="val_list"
    width="350">
    </cfselect>
    <cfinput type="text" name="location" width="150"
    label="location" validateat="onSubmit" validate="noblanks"
    required="yes">
    <cfinput type="text" name="user" width="150" label="user"
    validateat="onSubmit" validate="noblanks" required="yes">
    <cfinput type="submit" name="submit" value="Create New
    Asset" />
    </cfformgroup><!--end page Add Asset -->
    <!------------END PAGE ADD
    ASSET------------------------------------------------------>
    <!--------------- Assign LotID START (uses
    standard/assignLotID.cfm for processing)--->
    <cfformgroup type="page" label="Assign lotID">
    </cfformgroup><!--end page Assign LotID -->
    <!-----------------ASSIGN LOTID
    END------------------------------>
    <!----------------------Add to surplus
    START--------------------->
    <cfformgroup type="page" label="Add to Surplus">
    </cfformgroup><!--end page add to surplus -->
    <!------------------END ADD TO
    SUPLUS------------------------------>
    <!---------------------------ADD OTHER
    START----------------------->
    <cfformgroup type="page" label="View Inventory (not
    surplused)">
    </cfformgroup><!-- end page "View Inventory (not
    surplused)"-->
    <!---------------------------END
    OTHER---------------------------->
    </cfformgroup><!-- end sub page ASSET--------->
    </cfformgroup><!-- end sub page ASSET
    navigator---->
    <cfformgroup type="page"
    label="maintenance"><!--begin sub page maintenance-->
    </cfformgroup><!--end sub page maintenance-->
    </cfformgroup><!-- end main navigation -->
    </cfform>
    </body>
    </html>

    Here's my code and thanks for your help!
    <!--- begin form --->
    <cfform format="flash" width="850" height="750"
    action="insert.cfm" skin="haloblue">
    <!--- begin tab navigator --->
    <cfformgroup type="tabnavigator">
    <!--- Begin check out tab --->
    <cfformgroup label="Equipment Check-Out" type="page"
    width="600">
    <cfinput type="datefield"
    name="dueDate"
    label="Due Date:" message="Please Select a Valid Due Date"
    validate="date"
    required="yes"
    width="100">
    <!--- Equipment Information --->
    <cfselect enabled="yes" name="equipTag" size="1"
    label="Select Property Tag:" required="yes" multiple="no"
    width="100">
    <cfoutput query="allEquipTag">
    <option value="#equipTag#">#equipTag#</option>
    </cfoutput>
    </cfselect>
    <!--- Person Information --->
    <cfinput type="text"
    name="csulbID"
    label="CSULB ID:"
    message="A CSULB ID is required and must be 9 Digit!"
    mask="999999999"
    required="yes"
    size="10"
    maxlength="9" >
    <cfinput type="text"
    name="fName"
    label="First Name:"
    message="A First Name is required!"
    required="yes"
    size="10" >
    <cfinput type="text"
    name="lName"
    label="Last Name:"
    message="A Last Name is required!"
    required="yes"
    size="10" >
    <cfinput type="text"
    name="phone"
    label="Phone Number:"
    message="Phone Number is required!" mask="999-999-9999"
    required="yes"
    size="10" >
    <cfinput type="text"
    name="email"
    label="Email:"
    message="Email required! i.e. [email protected]"
    required="yes"
    validate="email"
    size="15" >
    <cftextarea name="notes"
    label="Additional Notes:"
    rows="5"
    width="300"/>
    <cfinput type="submit" name="btnSubmit" Label='checkOut'
    tooltip="Submit Check-Out Information" id="btnSubmit"
    value="Submit">
    <!--- end check-out tab--->
    </cfformgroup>
    <!--- start Check-In Tab --->
    <cfformgroup label="Equipment Check-In" type="page"
    width="850" height="700">
    <!--- start data grid--->
    <cfgrid name="equipCheckInGrid"
    query="equipCheckIn"
    selectmode="browse"
    griddataalign="left"
    height="300"
    width="800">
    <!--- Don't show all columns and change header
    name--->
    <cfgridcolumn name="dueDate" header="Due Date">
    <cfgridcolumn name="checkOut" header="Checked Out">
    <cfgridcolumn name="checkIn" header="Checked In">
    <cfgridcolumn name="csulbID" header="CSULB ID">
    <cfgridcolumn name="fName" header="First Name">
    <cfgridcolumn name="lName" header="Last Name">
    <cfgridcolumn name="phone" header="Phone">
    <cfgridcolumn name="email" header="Email">
    <cfgridcolumn name="notes" header="Additional Notes">
    <cfgridcolumn name="equipTag" header="Equip Tag">
    <!--- end data grid--->
    </cfgrid>
    <!--- start input fields--->
    <cfinput type="text"
    name="checkInEquipTag"
    label="Equipment Tag:"
    bind="{equipCheckInGrid.dataProvider[equipCheckInGrid.selectedIndex]['equipTag']}"
    size="15">
    <cfinput type="text"
    name="checkInDueDate"
    label="Due Date:"
    bind="{equipCheckInGrid.dataProvider[equipCheckInGrid.selectedIndex]['dueDate']}"
    size="15">
    <cfinput type="text"
    name="checkInCheckOut"
    label="Checked Out:"
    bind="{equipCheckInGrid.dataProvider[equipCheckInGrid.selectedIndex]['checkOut']}"
    size="15">
    <cfinput type="text"
    name="checkInCheckedIn"
    label="Checked In:"
    width="150"
    value="#DateFormat(now(), "MM/DD/YYYY")#">
    <cfinput type="text"
    name="checkInCSULBID"
    label="CSULB ID:"
    bind="{equipCheckInGrid.dataProvider[equipCheckInGrid.selectedIndex]['csulbID']}"
    size="15">
    <cfinput type="text"
    name="checkInFName"
    label="First name:"
    bind="{equipCheckInGrid.dataProvider[equipCheckInGrid.selectedIndex]['fName']}"
    size="15">
    <cfinput type="text"
    name="checkInLName"
    label="Last Name:"
    bind="{equipCheckInGrid.dataProvider[equipCheckInGrid.selectedIndex]['lName']}"
    size="15">
    <cfinput type="text"
    name="checkInPhone"
    label="Phone:"
    bind="{equipCheckInGrid.dataProvider[equipCheckInGrid.selectedIndex]['phone']}"
    size="15">
    <cfinput type="text"
    name="checkIneEmail"
    label="Email:"
    bind="{equipCheckInGrid.dataProvider[equipCheckInGrid.selectedIndex]['email']}"
    size="15">
    <cftextarea type="text"
    name="checkInNotes"
    label="Additional Notes:"
    bind="{equipCheckInGrid.dataProvider[equipCheckInGrid.selectedIndex]['notes']}"
    width="300"
    rows="5"/>
    <cfinput type="submit" name="btnUpdate" Label='update'
    tooltip="Submit Update Information" id="btnSubmit"
    value="Check-In">
    <!--- end Check-In Tab --->
    </cfformgroup>
    <!--- overdue tab --->
    <cfformgroup label="Equipment Over-Due" type="page"
    width="850" height="700">
    <cfgrid name="equipOverDueGrid"
    query="equipOverDue"
    selectmode="browse"
    griddataalign="left"
    height="300"
    width="800">
    <!--- Don't show all columns and change header
    name--->
    <cfgridcolumn name="dueDate" header="Due Date">
    <cfgridcolumn name="checkOut" header="Checked Out">
    <cfgridcolumn name="checkIn" header="Checked In">
    <cfgridcolumn name="csulbID" header="CSULB ID">
    <cfgridcolumn name="fName" header="First Name">
    <cfgridcolumn name="lName" header="Last Name">
    <cfgridcolumn name="phone" header="Phone">
    <cfgridcolumn name="email" header="Email">
    <cfgridcolumn name="notes" header="Additional Notes">
    <cfgridcolumn name="equipTag" header="Equip Tag">
    <!--- end data grid--->
    </cfgrid>
    </cfformgroup>
    <!--- end tab navigator--->
    </cfformgroup>
    </cfform>

  • 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');"
    >

  • Cfgrid not displaying in flash format

    <cfform format="flash" width="1000"
    action="editContact.cfm">
    <cfgrid name="contact" query="contact_details"
    selectmode="edit" insert="yes" delete="yes" height="200"
    width="1000" align="middle">
    <cfgridcolumn name="ID" display="no">
    <cfgridcolumn name="FIRST_NAME">
    <cfgridcolumn name="LAST_NAME" >
    <cfgridcolumn name="JOB_TITLE">
    <cfgridcolumn name="EMAIL" >
    <cfgridcolumn name="PHONE">
    </cfgrid>
    <br>
    <cfinput type="submit" value="submit" name="submit">
    </cfform>
    Hi, the code above using cfgrid in flash format used to
    display perfectly. But after some time, without changing the code,
    cfgrid is not displaying anymore. Any reasons why this is
    happening? Thanks.

    What error do you see? Anything?
    Try tracing the page request by using coldfusion/jrun's
    sniffer.exe,
    Charles, or some other
    tool. See what is going on. If the applet is starting to load,
    enable the java console and review the errors there.
    Does this issue happen on multiple client machines or just
    one? What version of CFMX7 are you using (run sysinfo from
    cfadmin).

  • CFgrid, href and cfgridkey

    We have a current application in Mach-ii that is over 100,000
    lines and would like to use CFgrid in CF8. What we don't want to do
    is to go back and touch perfectly good code, in multiple places,
    just to accommodate the url "cfgridkey". We want to use the proper
    variable in the URL.
    I thought I had seen a description of using a JavaScript
    function to do this but now I cant find it.
    Can anyone Help?
    thanks,
    Sam

    I "dont" want the cfgridkey term in the URL. I want something
    like ...index.cfm?my_id=7
    Not ...index.cfm?cfgridkey=7

  • Cfselect, cfinvoke, cfgrid in flash forms

    In an MX7.02 cfform format="flash"
    I would like a user to select an option in a cfselect. (e.g.
    name)
    The selected value would be passed to a cfinvokeargument
    the cfc returns the query results to a cfgrid
    get agent names....
    <CFINVOKE COMPONENT="agentQA"
    METHOD="getAgents"
    RETURNVARIABLE="aData">
    populate cfselect....
    <cfselect label="Agent" visable="yes" name="agent"
    query="aData" value="message_author" display="message_author">
    </cfselect>
    query messages posted by the selected agent...
    <CFINVOKE COMPONENT="agentQA"
    METHOD="getquery"
    RETURNVARIABLE="qData">
    <cfinvokeargument name="agent" value="??????????????">
    </cfinvoke>
    don't know how to bind the selected agent name to the
    argument????????
    output only the selected agent's messages to messagesgrid
    <cfgrid format="flash" width="100%" height="100%"
    name="messagegrid" query="qData" rowheaders="false">
    </cfgrid>
    Any suggestions? I'm open to a different approach since I'm
    just learning flash forms in CF.
    Thanks,
    Don

    Using the
    selected="[your value]" argument.
    This can be a value from a query.
    For instance, try the example in
    http://livedocs.macromedia.com/coldfusion/7/htmldocs/00000331.htm
    but add
    selected="4" to the cfselect tag
    i.e.:
    <cfselect
    name = "employeeid"
    size = "1"
    multiple="yes"
    required = "No"
    query = "GetAllEmployees"
    display ="name"
    value ="emp_id"
    queryPosition="Below" width="100" selected="4">
    4 is the emp_id value of Aaron Smith.
    In your application, you would replace
    selected="4" with
    selected="[your database value]"

  • (new) flash cdfrid with multiple choices

    My cfgrid allows the user to select several options.  What I need to know is how to capture those selections.  Here's the grid code:
    <cfgrid name='art_grid' format='flash' selectOnLode='no' selectMode='edit' query='GetArticles'>
         <cfgridcolumn name='ArticleIndex' select='yes' values='1' type='boolean' display='yes'>
         <cfgridcolumn name='ArticleName' select='no'>
    </cfgrid>
    I've tried a cfselect and a cfset (both with selectedItem and selectedIndex); both receiving the same error:  You have attempted to dereference a scalar variable of type class java.lang.String as a structure with members.
    I created a structure to hold the responses and then tried to populate it with:
    <cfloop collection='#art_grid.selectedItem# item='i'>
         <cfset ArtStruct[i]='#art_grid.selectedItem.ArticleName[i]#'>
    </cfloop>
    What should I use instead?  (Yes, I googled the error message and this is where I got the structure idea.)

    Kind of a weird dump using <cfdump var='#art_grid#'>    (The form.art_grid was undefined...)
    <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" height="320" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" rsl="/CFIDE/scripts/cfform.swc" width="580"> <mx:Script><![CDATA[ import mx.core.UIObject; var errorpopup; function compareNumeric(a,b) { var a1 = parseFloat(a); var b1 = parseFloat(b); if( a1.toString() == 'NaN' ) a1 = 0; if( b1.toString() == 'NaN' ) b1 = 0; if( a1 < b1 ) return -1; if( a1 == b1 ) return 0; return 1; } function compareCurrency(a,b) { var a1 = new mx.formatters.NumberBase().parseNumberString( a ); var b1 = new mx.formatters.NumberBase().parseNumberString( b ); var a1 = parseFloat(a1); var b1 = parseFloat(b1); if( a1.toString() == 'NaN' ) a1 = 0; if( b1.toString() == 'NaN' ) b1 = 0; if( a1 < b1 ) return -1; if( a1 == b1 ) return 0; return 1; } function compareTextNoCase(a,b) { var a1 = a.toLowerCase(); var b1 = b.toLowerCase(); if( a1 < b1 ) return -1; if( a1 == b1 ) return 0; return 1; } var __art_grid_cacheid = "0"; var __art_grid_editedFields = new Object(); var __art_grid; ]]></mx:Script> <mx:Model id="CFForm_1"> <__CFGRID__CFForm_1__art_grid>{__art_grid}</__CFGRID__CFForm_1__art_grid> </mx:Model> <mx:Style> .artgridHeader { textAlign: Left; } </mx:Style> <mx:Form heightFlex="1" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" widthFlex="1"> <mx:DataGrid editable="true" fontFamily="tahoma" fontSize="12" hGridLines="true" headerStyle="artgridHeader" height="320" id="art_grid" initialize="GridData.initGrid(true, __art_grid_cacheid, art_grid, this, 'CFForm_1', '__CFGRID__CFForm_1__art_grid', remoteObject_art_grid)" textAlign="left" vGridLines="true" width="580"> <mx:columns> <mx:Array> <mx:DataGridColumn columnName="CFGRIDROWINDEX" editable="false" headerText="" resizable="false" sortable="true" width="0"/> <mx:DataGridColumn cellRenderer="{CheckCellRenderer}" columnName="ArticleIndex" editable="false" headerText="Select" resizable="true" sortable="true" width="50"/> <mx:DataGridColumn columnName="ArticleName" editable="false" headerText="Article" resizable="true" sortable="true" width="530"/> </mx:Array> </mx:columns> </mx:DataGrid> </mx:Form> <mx:RemoteObject concurrency="multiple" endpoint="@ContextRoot()/CFFormGateway/" id="remoteObject_art_grid" showBusyCursor="true" source="coldfusion.flash.adapter.CFFormAdapter"/> </mx:Application>
    Interesting, but I don't understand it.

  • Unable to sort groupField in cfgrid

    in a html grid, when i group by a column of type INT, cfgrid doesn't sort correctly:
    it prefixes the column value with the column header and it sorts alpha numerically instead of numerically.
    let's say, if column name is mySequence, column header is My Sequence and the group by values retrieved are 14 and 3, it will sort incorrectly:
    My Sequence 14
    My Sequence 3
    is there a fix for that?
    thanks

    Do you still have the greyed out fields issue?  The permissions tip should be a complete fix for that.
    Changes that revert themselves with mp3 files might be down to multiple tags.
    Multiple tags
    The ID3 specification allow files to have multiple tags in different versions and languages, but iTunes only works properly with single tags. When multiple tags are present it can sometimes fail to apply updates to the tag that it reads back (presumably updating one of the others in the file) and it is also possible that iPod & iTunes may have different rules for which tag they give priority to. This could lead to situations in which everything is properly organised in iTunes but then inexplicably falls apart on an iPod. There are 3rd party tag editors that can manipulate multiple tags but I don't have a recommendation offhand. A workaround in iTunes is to use right-click context menu Convert ID3 Tags... > None a few times to remove all existing tags and then Convert ID3 Tags... > v2.3 to build a fresh tag with the information still held in the iTunes database. I've read in the past that iTunes isn't fully compliant with the v2.4 spec. although this may no longer be the case, however support for v2.3 is widespread so I would suggest using v2.3 over v2.4.
    iTunes Store metadata
    If you notice that changes you've made to purchased tracks revert to the original iTunes Store metadata then...
    In iTunes go to Edit > Preferences > Store and turn off
    Show iTunes in the Cloud purchases
    Share details about your library with Apple
    On any iOS device go to Settings > Music and turn off
    Show All Music
    Close and reopen iTunes and/or reset the device and you should see your version of the metadata for each track rather than the original store data.
    See also Getting iTunes & Windows Media Player to play nicely just in case WMP is involved, though that is usually a one time problem.
    And see Grouping tracks into albums for advice on the organizing the library once your changes will stick.
    tt2

  • Cfgrid within an html table... possible?

    I'm trying to use an HTML table layout to "organize" several
    components, one of which is an cfgrid... but nothing shows up, the
    cfgrid doesn't populate. In fact, in the following example, only
    the first row of the HTML table is painted in the browser.
    here's a sample:
    <html>
    <body>
    <table>
    <tr>
    <td> some title </td>
    </tr>
    <tr>
    <td>
    <cfquery name="getEmp" datasource="MYDSN">
    select * from emp
    </cfquery>
    <cfform format="flash" skin="haloSilver">
    <cfgrid name="empGrid" query="getEmp"
    rowheaders="false">
    <cfgridcolumn name="First" header="First Name"
    width="120">
    <cfgridcolumn name="Last" header="Last Name"
    width="120">
    </cfgrid>
    </cfform>
    </td>
    </tr>
    </table>
    </body>
    </html>
    This situation applies to multiple queries, and works very
    well when you remove the <table> elements altogether... I
    haven't been able to find anything to support this method or not
    support it...
    Any help would be greatly appreciated,
    Thanks,
    -X

    I'm trying to use an HTML table layout to "organize" several
    components, one of which is an cfgrid... but nothing shows up, the
    cfgrid doesn't populate. In fact, in the following example, only
    the first row of the HTML table is painted in the browser.
    here's a sample:
    <html>
    <body>
    <table>
    <tr>
    <td> some title </td>
    </tr>
    <tr>
    <td>
    <cfquery name="getEmp" datasource="MYDSN">
    select * from emp
    </cfquery>
    <cfform format="flash" skin="haloSilver">
    <cfgrid name="empGrid" query="getEmp"
    rowheaders="false">
    <cfgridcolumn name="First" header="First Name"
    width="120">
    <cfgridcolumn name="Last" header="Last Name"
    width="120">
    </cfgrid>
    </cfform>
    </td>
    </tr>
    </table>
    </body>
    </html>
    This situation applies to multiple queries, and works very
    well when you remove the <table> elements altogether... I
    haven't been able to find anything to support this method or not
    support it...
    Any help would be greatly appreciated,
    Thanks,
    -X

  • CF9 Email multiple people from a CF grid selection

    Hello everyone. As the name suggests i am trying to figure out in CF9 over MySQL how to send multiple emails based on selected records from a grid.
    I have a table called sstblemailnewmembers
    this has fields:
    fldemailid (Int + Auto Incr)
    fldemail (TEXT)
    fldsent (DATE)
    CHECKED (SET 'true','false' DEFAULT false)
    I then have a cf query in my page called emailnewmembers.cfm
    <cfquery name="emailnewmembers" datasource="SAPLIVE">
    SELECT fldemailID, fldemail, fldsent, CHECKED
    FROM sstblemailnewmembers
    </cfquery>
    So far so good (i think)
    I then have a form defined:
    <cfform action="AdminTransfer.cfm"
    width="1170"
    method="post"
    enctype="multipart/form-data"
    format="Flash"
    preloader="true"
    style="backgroundAlpha: 0;"
    wmode="transparent"
    timeout="3000"
    name="adminhome"
    onload="loadAS();">
    the onload="loadAS();" bit is used so I can select multiple records using this script which is the next bit to be defined:
    <cfformitem type="script">
    function loadAS(){
    _root.myGrid.multipleSelection = true;
    </cfformitem>
    and finally on this page we have the grid itself and the submit button as below:
    <cfgrid name="myGrid"
    selectmode="edit"
    query="emailnewmembers"
    rowheaders="no">
      <cfgridcolumn name="CHECKED" header="Select" type="boolean">
      <cfgridcolumn name="fldemailID" header="Email ID">
      <cfgridcolumn name="fldemail" header="Email Addrerss">
      <cfgridcolumn name="fldsent" header="Date Sent">
    </cfgrid>
    <cfinput type="submit"
    name="sendemailnewmembers"
    value="Send Emails"
    style="#buttonStyle#">
    So far so good i guess?
    The submit button calls the action page defined in the form tag.
    This is what I have so far defined in the action page "admintransfer.cfm"...
    <cfif isdefined("FORM.endemailnewmembers")>
    <cfloop index = "Counter" from = "1" to =
        #arraylen(Form.emails.CHECKED)#>
        <cfif Form.emails.CHECKED[counter] is "true">
          <cfquery name="emailnewmembers"
            datasource="SAPLIVE">
            UPDATE sstblemailnewmembers
            SET
            fldsent = NOW()
           </cfquery>
            <cfmail
            to = "#Form.fldemail#"
            from = "[email protected]"
            subject = "Welcome New Member">
            Dear New Member...
            </cfmail>
        </cfif>
      </cfloop>
    </cfif>
    So, if I select 3 records an email is getting sent 3 times to the last email address of the last record I select.
    I am assuming there is something wrong with the loop and probably a better way to do this but I am quite new and this is the best I can come up with so if anyone cares to point me in the right direction I would be enormously gratful indeed

    You could use this script. It will put the adresses in the To field, so you could either modify the script or just drag them across to the Bcc field.
    AK
    <pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">(*Save the script in the Library/Scripts/Applications/Mail folder of your home directory. With several messages selected in Mail run
    the script from the Scripts menu item on the menu bar. It will generate a new message with the sender of each of the selected
    mails as a recipient, and the subject of the first selected mail as subject. Non-adjacent messages can be selected with Command-click.
    AK Sep 2005 kinsella at itcarlow dot ie *)
    using terms from application "Mail"
    on perform mail action with messages TheMail
    tell application "Mail"
    set theSubject to ""
    repeat with ThisMail in TheMail
    set TheName to extract name from sender of ThisMail
    set TheAddress to extract address from sender of ThisMail
    if theSubject is "" then -- set subject, make message 1st time through
    set theSubject to subject of ThisMail
    if theSubject does not start with "Re:" then set theSubject to "Re: " & theSubject
    set newMessage to make new outgoing message with properties {subject:theSubject}
    end if
    tell newMessage
    make new to recipient at end of to recipients with properties {name:TheName, address:TheAddress}
    end tell
    end repeat
    tell newMessage to set visible to true
    end tell
    end perform mail action with messages
    end using terms from
    using terms from application "Mail"
    on run
    tell application "Mail" to set sel to selection
    tell me to perform mail action with messages (sel)
    end run
    end using terms from
    </pre>

Maybe you are looking for