CFSELECT and queries

I am trying to pull some dates out of my database, and have
them show up in
a <cfselect> that users than then pick.
I have:
<cfselect name="ClassDate" size="1" required="yes"
message="Please select
the date the class began." query="RequestDate"
value="class_date"
display="class_date">
But my problem is on the date formatting. Its a MySql date
field, and so it
shows the whole 'ts date time' etc.
How can I do this so all I show in the <cfselect> is
the date, formatted
like 03/05/2006, etc?
Thanks!
Steve

Well my format is a little off from what you want but just
look up
date_format on mysql web site and you will get it.
"Rick" <[email protected]> wrote in message
news:ejg9am$t6s$[email protected]..
> Try something like this in your query.
>
> SELECT *, date_format(SchDate, '%W, %b %D, %Y') as sdate
>
>
> "Steve Grosz" <[email protected]> wrote in
message
> news:ejg92i$t0h$[email protected]..
>>I am trying to pull some dates out of my database,
and have them show up
>>in a <cfselect> that users than then pick.
>>
>> I have:
>>
>> <cfselect name="ClassDate" size="1"
required="yes" message="Please select
>> the date the class began." query="RequestDate"
value="class_date"
>> display="class_date">
>>
>> But my problem is on the date formatting. Its a
MySql date field, and so
>> it shows the whole 'ts date time' etc.
>>
>> How can I do this so all I show in the
<cfselect> is the date, formatted
>> like 03/05/2006, etc?
>>
>> Thanks!
>> Steve
>>
>
>

Similar Messages

  • Control multiple updates and queries within one transaction in JPA

    Hi,
    I have a question regarding control multiple updates and queries within one transaction. We are using EclipseLink 2.3.1. With below code, will I be able to:
    - have all insert, update, select queries committed in one transaction;
    - queryGetBalance will return the latest OrgBalance after update;
    - if one fails, everything rolls back.
    Thanks!
    Jeffrey
    PS: I realized that I cannot use em.getTransaction().begin() and em.getTransaction().commit(), since I am using JTA.
    =============
    @PersistenceContext(unitName="Test")
    EntityManager em;
    em.setFlushMode(FlushModeType.COMMIT);
    newTransaction.setAmount(1000);
    newTransaction.setType("check");
    em.persist(newTransaction);
    orgAudit.setUpdateUser("Joe")
    orgAudit.setupUpdateTime(time);
    em.merge(orgAudit);
    Query queryUpdateBalance = em.createQuery("update OrgBalance o set o.balance = o.balance + :amount where orgId = :myOrgId");
    queryUpdateBalance.setParameter("amount", 1000);
    queryUpdateBalance.setParameter("myOrgId", 1234);
    Query queryGetBalance = em.createQuery("select OrgBalance o where o.orgId = :myOrgId");
    queryGetBalance.setHint("javax.persistence.cache.storeMode", CacheStoreMode.REFRESH);
    queryGetBalance.setHint("javax.persistence.cache.retrieveMode", CacheRetrieveMode.BYPASS);
    queryGetBalance.getResultList();
    em.flush();
    Edited by: JeffreyW on Dec 12, 2011 10:34 AM

    Yes, the operation will be in a single transaction, assuming you are using a JTA managed SessionBean and the code is part of a SessionBean method.

  • Errors and Queries regarding manually create database in oracle 9i

    Create database manually with following steps:
    1) Create SID
    C:\> set ORACLE_SID=mynewdb
    2)Create suitable database directories within oracle directory.
    Create folders udump,cdump,bdump within C:\oracle\admin\mynewdb\
    3)Create PFILE
    4)Create a password file using:
    C:\> orapwd file=C:\oracle\ora90\database\PWDmynewdb.ora password=oracle
    5)Create an instance of database
    C:\> oradim -new -sid mynewdb
    6)Start sqlplus:
    C:\> sqlplus\nolog
    7)connect / as sysdba
    8)startup nomount
    9)Run CREATE DATABASE script
    'Database Created' prompt display on screen.
    11) Run two scripts i.e. catalog.sql and catproc.sql
    Following are errors and queries related to database creation. :
    Errors+_
    Following error occur when start database:
    Total System Global Area 336359616 bytes
    Fixed Size 282816 bytes
    Variable Size 234881024 bytes
    Database Buffers 100663296 bytes
    Redo Buffers 532480 bytes
    Database mounted.
    ORA-01092: ORACLE instance terminated. Disconnection forced
    For start database I give following command, but it gives me same error:
    STARTUP OPEN PFILE='c:\ORACLE\ORA90\DATABASE\initmynewdb.ora'
    or
    STARTUP FORCE OPEN PFILE='c:\ORACLE\ORA90\DATABASE\initmynewdb.ora'
    or
    STARTUP OPEN
    or
    STARTUP FORCE OPEN
    Queries_
    *1)There are one databases in my machine name "orcl"*
    when I give commands
    C:\> connect / as sysdba
    C:\> startup nomount
    When I run "connect / as sysdba", in this which database instance connect?
    how the oracle will know to start mynewdb database instance in nomount? although I am not create database.
    *2) Step "startup nomount". In this, which database started in nomount?*
    *3) There is no reference for PFILE in CREATE DATABASE script. How the oracle will know which is the PFILE for database mynewdb?*
    *4) I create password file, how the oracle will know password file for which database (in this case mynewdb database)? How to map password file with particular database?*
    Thanks and Regards,
    Sachin

    Hi,
    not any thing new from the already given answer. But, i hope this examples gives more clarity.
    Answers below:
    1) ORACLE_SID is the answer
    2) see the output below.
    SQL> startup nomount
    ORACLE instance started.
    Total System Global Area 61785680 bytes
    Fixed Size 730704 bytes
    Variable Size 58720256 bytes
    Database Buffers 2048000 bytes
    Redo Buffers 286720 bytes
    SQL> select instance_name from v$instance;
    INSTANCE_NAME
    mytestdB
    SQL>
    SQL> show parameter db_name
    NAME TYPE
    VALUE
    db_name string
    mytestdB
    3) Check environment variables for ORACLE_HOME variable will let you know the location of the PFILE. By default it will be ORACLE_HOME/database (windows), ORACLE_HOME/dbs (LINUX/UNIX).
    SET command will help you or use widows options.
    In some other cases, the PFILE contains the link to it with IFILE value left in PFILE which should show the location.
    4) Check environment variables for ORACLE_HOME variable will let you know the location of the password file. By default it will be expected in ORACLE_HOME/database (windows), ORACLE_HOME/dbs (LINUX/UNIX).
    Regrds,
    Vasu.

  • Changing the technical names of an ODS and queries

    Can I change the technical name of an ODS and the queries that are built on it? If so how? Thanks

    Hi Niten,
    As said by others it is not possible to change the technical name of any BW Object as there are too many complexities involved. However a possible option is create another ODS/cube and queries as the copy of the existing one and then transfer all the data.
    Refer this post:
    Re: Change infocube name
    Bye
    Dinesh

  • Where are the web templetes, web items and queries stored?

    Hi,
    I have created many reports using Web Application Designer and Query Designer, Now I want to get these reports and querys in my webDypro program, so i think first i must find out where can i find them, anybody know which table store the web templetes ,web items and queries?

    hi Jacky,
    query
    RSRREPDIR, RSZCOMPDIR
    (other tables : RSRREPDIR, RSZRANGE, RSZELTXREF, RSZELTTXT, RSZSELECT, RSZCOMPDIR, RSZELTDIR
    RSZCOMPIC, RSZELTPRIO, RSZELTPROP, RSZELTATTR, RSZELTTXT, RSZCALC, RSZCEL, RSZGLOBV)
    webtemplates
    RSZWTEMPLATE
    web items
    RSZWITEM                       Header Table for BW Web Items
    RSZWMDITEM                     BW Web Metadata: Template Item
    hope this helps.

  • Decommission work books and queries

    Hello Experts - we have couple of workbooks and queries in Production, which we are no longer using. Instead of removing them from production, we would like to hide them. We may need them in the future.
    Is there any way, I could hide them?
    Thanks in advance !!!
    Kumar

    Hi Kumar,
    You can move them to a role which is not assigned to the users you want to hide them from.
    Hope this helps...

  • Is any one answer about SD datasources, cubes and queries on SD?

    is any one answer about SD datasources, cubes and queries on SD?

    hi,
    refer to this links.
    http://help.sap.com/saphelp_nw04s/helpdata/en/3c/63073c52619459e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/2e/c09a5ee9e94e86a73109c5c3184efa/frameset.htm
    hope it helps,
    regards,
    Parth.

  • How to use different iViews for variables and queries?

    Hi all!
    I need to use separtate iViews for storing variables and extracting queries.
    For example, I have one variable "Currency" for two different queries,  and I need that all of these queries (in separate iViews) would use the value of currency was put by user in the first iView with only one input.
    How can I do this task? Is it possible at all?
    Thanks for replies.

    Hello Alex,
    You have to use EP client framework (EPCF) in your development.
    I hope this idea will help you.
    Kind regards, Pino.

  • A question about objects and queries

    I just started using COM objects in ColdFusion. I am mostly
    using CreateObject, but occasionaly use <CFOBJECT>
    My question is; Do I have to destroy these object variables
    when I am done? I know in a lot of other languages I work in, you
    have to "clean up'" after yourself and destroy some variables when
    you are done to avoid memory leaks. How does CF handle this?
    While I am asking, what about queries? Do hey have to be
    destroyed as well? What about queries made with QueryNew?
    Thank you for the help.

    Cold fusion cleans up for you.
    You do not need to explicitly destroy anything unless threads
    are spawned in a non standard way by Java or C code that you are
    using.

  • Link between Menu and Queries

    Hi Guru's,
    Where can I find a link (in which table(s)) between the queries and the menu (pfcg) ?
    Is there something better than AGR_BUFFI ? I need only the technical name of the quey and not the entire URL ...
    Thanks in advance
    Alex
    Message was edited by: Aleksi

    Hi Guru's,
    Where can I find a link (in which table(s)) between the queries and the menu (pfcg) ?
    Is there something better than AGR_BUFFI ? I need only the technical name of the quey and not the entire URL ...
    Thanks in advance
    Alex
    Message was edited by: Aleksi

  • Vertical mappings and queries

    Hi all,
    I am currently a bit frightened by what I see in my logs. Most of our
    classes (around 70 for the moment) are belonging to a complex hierarchy.
    BASE <---------> RELATION
    ||||
    subclasses
    The top superclass 'base' is a class which is containing a collection
    of relations. The class relation is used to link 2 subclasses of 'Base'
    together.
    Because each subclass needs to get access to its relations, 'Base' is
    mapped as a concrete class (can't be horizontal or flat). Hierarchy's
    leaves are mapped 'vertical' and the other classes are mapped as 'flat'
    or 'vertical' to limit the number of tables and joins.
    So, when I execute a JDOQL query which uses the relations to crawl in
    the database, it seems that the query is launched nearly 70 times, one
    time per leaf, with all the joins included. Useless to say that
    execution time is quite huge even for a little query.
    My expectations were that JDO could only make the query on the 'Base'
    class, and when results are known, only making the joins to retrieve
    resulted classes' fields. Reading the documentation, I've met the
    concept of 'fetch groups' which could handle all the lazy-loading as I
    wish to. I've tried to include only the 'Base' fields in the default
    fetch group to see if it resolves my problem, but it seems to have no
    diffferences.
    As I have not a great knownledge of fetching, I may have missed
    something, so If someone could point me the right way, it would be
    greatly appreciated :)
    Thomas

    So it the relation defined at base? Then it should not be in the
    default fetch group as may be issuing spurious queries.
    Thomas Cornet wrote:
    >
    Hi all,
    I am currently a bit frightened by what I see in my logs. Most of our
    classes (around 70 for the moment) are belonging to a complex hierarchy.
    BASE <---------> RELATION
    ||||
    subclasses
    The top superclass 'base' is a class which is containing a collection
    of relations. The class relation is used to link 2 subclasses of 'Base'
    together.
    Because each subclass needs to get access to its relations, 'Base' is
    mapped as a concrete class (can't be horizontal or flat). Hierarchy's
    leaves are mapped 'vertical' and the other classes are mapped as 'flat'
    or 'vertical' to limit the number of tables and joins.
    So, when I execute a JDOQL query which uses the relations to crawl in
    the database, it seems that the query is launched nearly 70 times, one
    time per leaf, with all the joins included. Useless to say that
    execution time is quite huge even for a little query.
    My expectations were that JDO could only make the query on the 'Base'
    class, and when results are known, only making the joins to retrieve
    resulted classes' fields. Reading the documentation, I've met the
    concept of 'fetch groups' which could handle all the lazy-loading as I
    wish to. I've tried to include only the 'Base' fields in the default
    fetch group to see if it resolves my problem, but it seems to have no
    diffferences.
    As I have not a great knownledge of fetching, I may have missed
    something, so If someone could point me the right way, it would be
    greatly appreciated :)
    Thomas--
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com

  • Selected Value for CFSelect and other options too

    I have an update form with an "Office" field. For a record, I
    query the db and get all the data for the record including the
    current office. However, since this is an update/edit form, I want
    the current office to display as selected, but want to also include
    all the other offices. How Do I do this in a cfselect? I can figure
    out how to either display the current office, and no other offices,
    or I can display all the offices, but not have the current office
    selected. Argh.

    you have a query that pulls data for current record - let's
    call it
    REC_QUERY, and let's say the field with the office data is
    called... OFFICE
    have another query that pulls all offices - let's call it
    OFFICE_QUERY
    set the QUERY attrib of your cfselect to OFFICE_QUERY
    set appropriate DISPLAY and VALUE attributes
    set the SELECTED attribute of your cfselect to
    #REC_QUERY.OFFICE#
    hth
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • Bind in form works with cfinput, how to with cfselect and a href

    Hi all
    This code workks binding a cfinput in an HTML cfform:
    Name:<cfinput type="text" name="FIRSTNAME" label="Name" required="yes" width="150" bind="{UsersGrid.FIRSTNAME}" >
    However this href doesn't seem to bind correctly:
    <a  href="http://www.google.com/search?hl=en&output=search&sclient=psy-ab&q={UsersGrid.COMPANY}&btnK=" bind="{UsersGrid.COMPANY}">Google.com</a>
    This cfselect doesn't either:
    Department: <cfselect name="DEPARTMENT1" width="100" size="1" label="Department" required="yes" bind="UsersGrid.DEPARTMENT1">
    <option></option><cfoutput query="dNames"><option value="#DEPARTMENTIDS#">#DEPARTMENTNOM#</option></cfoutput>
    </cfselect> 
    How can I make them both work? Thank you

    Sure, Aaaron here it is, it uses the same database tables and datasource as in the other thread:
    <cfquery name="QNAMES" datasource="tester">
        select * from company, industries, division
    where company.SECTORS1 = industries.SECTORSIDS
    <cfif structKeyExists(url,"sectorid")>
    and industries.SECTORSIDS = #url.sectorid#</cfif>
    and division.DEPARTMENTIDS = company.DEPARTMENT1
    and company.WHEN = 2
    ORDER BY company</cfquery>
    <cfquery name="dNames" datasource="tester">
        select DEPARTMENTIDS, DEPARTMENTNOM
        from division
    order by DEPARTMENTNOM</cfquery>
    <CFQUERY name="industries" datasource="tester">
    SELECT * FROM industries
    </CFQUERY>
    <CFQUERY name="salesstep" datasource="tester">
    SELECT * FROM sales
    </CFQUERY>
    <CFQUERY name="xity" datasource="tester">
    SELECT * FROM ciudad
    </CFQUERY>
    <CFQUERY name="hols" datasource="tester">
    SELECT * FROM holidays
    </CFQUERY>
    <!--- UPDATE QUERY --->
    <cfif isDefined("FORM.UPDATEADDBTN")>
    <cfif FORM.ENTID GTE 1>
    <cfset isCOMPANYNull = iif(len(trim(FORM.COMPANY)) EQ 0, true, false)>
    <cfset isSECTORS1Null = iif(len(trim(FORM.SECTORS1)) EQ 0, true, false)>
    <cfset isRANKINGNull = iif(len(trim(FORM.RANKING)) EQ 0, true, false)>
    <cfset isPRICENull = iif(len(trim(FORM.PRICE)) EQ 0, true, false)>
    <cfset isDEPARTMENT1Null = iif(len(trim(FORM.DEPARTMENT1)) EQ 0, true, false)>
    <cfset isFIRSTNAMENull = iif(len(trim(FORM.FIRSTNAME)) EQ 0, true, false)>
    <cfset isPOSNull = iif(len(trim(FORM.POS)) EQ 0, true, false)>
    <cfset isPHONENull = iif(len(trim(FORM.PHONE)) EQ 0, true, false)>
    <cfset isEMAILNull = iif(len(trim(FORM.EMAIL)) EQ 0, true, false)>
    <cfset isMOBILENull = iif(len(trim(FORM.MOBILE)) EQ 0, true, false)>
    <cfset isADDRESSNull = iif(len(trim(FORM.ADDRESS)) EQ 0, true, false)>
    <cfset isCITYNull = iif(len(trim(FORM.CITY)) EQ 0, true, false)>
    <cfset isCOMMENTSNull = iif(len(trim(FORM.COMMENTS)) EQ 0, true, false)>
    <cfset MEETINGDATE = trim(FORM.ABUNDANCE)>
    <!--- DATECFM--->
    <cfset isMTGTNull = iif(len(trim(FORM.MTGT)) EQ 0, true, false)>
    <cfset isSTATE1Null = iif(len(trim(FORM.STATE1)) EQ 0, true, false)>
    <CFQUERY name="updatecompany" datasource="tester">
    update COMPANY
    SET COMPANY = <cfqueryparam cfsqltype="cf_sql_longvarchar" value="#trim(FORM.COMPANY)#" null="#isCOMPANYNull#" />,
       SECTORS1 = <cfqueryparam cfsqltype="cf_sql_integer" value="#trim(FORM.SECTORS1)#" null="#isSECTORS1Null#" />,
       RANKING = <cfqueryparam cfsqltype="cf_sql_integer" value="#trim(FORM.RANKING)#" null="#isRANKINGNull#" />,
       PRICE = <cfqueryparam cfsqltype="cf_sql_integer" value="#trim(FORM.PRICE)#" null="#isPRICENull#" />,
       DEPARTMENT1 = <cfqueryparam cfsqltype="cf_sql_integer" value="#trim(FORM.DEPARTMENT1)#" null="#isDEPARTMENT1Null#" />,
       FIRSTNAME = <cfqueryparam cfsqltype="cf_sql_longvarchar" value="#trim(FORM.FIRSTNAME)#" null="#isFIRSTNAMENull#" />,
       POS = <cfqueryparam cfsqltype="cf_sql_longvarchar" value="#trim(FORM.POS)#" null="#isPOSNull#" />,
       PHONE = <cfqueryparam cfsqltype="cf_sql_longvarchar" value="#trim(FORM.PHONE)#" null="#isPHONENull#" />,
       EMAIL = <cfqueryparam cfsqltype="cf_sql_longvarchar" value="#trim(FORM.EMAIL)#" null="#isEMAILNull#" />,
       MOBILE= <cfqueryparam cfsqltype="cf_sql_longvarchar" value="#trim(FORM.MOBILE)#" null="#isMOBILENull#" />,
       ADDRESS = <cfqueryparam cfsqltype="cf_sql_longvarchar" value="#trim(FORM.ADDRESS)#" null="#isADDRESSNull#" />,
       CITY = <cfqueryparam cfsqltype="cf_sql_integer" value="#trim(FORM.CITY)#" null="#isCITYNull#" />,
       COMMENTS = <cfqueryparam cfsqltype="cf_sql_longvarchar" value="#trim(FORM.COMMENTS)#" null="#isCOMMENTSNull#" />,
       ABUNDANCE = <cfqueryparam cfsqltype="cf_sql_timestamp" value="#MEETINGDATE#" />,
       MTGT = <cfqueryparam cfsqltype="cf_sql_longvarchar" value="#trim(FORM.MTGT)#" null="#isMTGTNull#" />,
       STATE1 = <cfqueryparam cfsqltype="cf_sql_integer" value="#trim(FORM.STATE1)#" null="#isSTATE1Null#" />
    WHERE ENTID = #FORM.ENTID#
    </CFQUERY>
    <CFLOCATION URL="testht.cfm?begin=1">
    <cfelse>
    <cfset isCOMPANYNull = iif(len(trim(FORM.COMPANY)) EQ 0, true, false)>
    <cfset isSECTORS1Null   = iif(len(trim(FORM.SECTORS1)) EQ 0, true, false)>
    <cfset isRANKINGNull = iif(len(trim(FORM.RANKING)) EQ 0, true, false)>
    <cfset isPRICENull = iif(len(trim(FORM.PRICE)) EQ 0, true, false)>
    <cfset isDEPARTMENT1Null = iif(len(trim(FORM.DEPARTMENT1)) EQ 0, true, false)>
    <cfset isFIRSTNAMENull = iif(len(trim(FORM.FIRSTNAME)) EQ 0, true, false)>
    <cfset isPOSNull = iif(len(trim(FORM.POS)) EQ 0, true, false)>
    <cfset isPHONENull = iif(len(trim(FORM.PHONE)) EQ 0, true, false)>
    <cfset isEMAILNull = iif(len(trim(FORM.EMAIL)) EQ 0, true, false)>
    <cfset isMOBILENull = iif(len(trim(FORM.MOBILE)) EQ 0, true, false)>
    <cfset isADDRESSNull = iif(len(trim(FORM.ADDRESS)) EQ 0, true, false)>
    <cfset isCITYNull = iif(len(trim(FORM.CITY)) EQ 0, true, false)>
    <cfset isCOMMENTSNull = iif(len(trim(FORM.COMMENTS)) EQ 0, true, false)>
    <cfset isMTGTNull = iif(len(trim(FORM.MTGT)) EQ 0, true, false)>
    <cfset isSTATE1Null = iif(len(trim(FORM.STATE1)) EQ 0, true, false)>
    <cfset MEETINGDATE = trim(FORM.ABUNDANCE)>
    <!--- DATECFM --->
    <!--- ADD COMPANY QUERY --->
    <CFQUERY name="addcompany" datasource="tester">
    INSERT INTO COMPANY(
    COMPANY,
    SECTORS1,
    RANKING,
    PRICE,
    DEPARTMENT1,
    FIRSTNAME,
    POS,
    PHONE,
    EMAIL,
    MOBILE,
    ADDRESS,
    CITY,
    COMMENTS,
    ABUNDANCE,
    MTGT,
    STATE1
    VALUES (
    <cfqueryparam cfsqltype="cf_sql_longvarchar" value="#trim(FORM.COMPANY)#" null="#isCOMPANYNull#" />,
    <cfqueryparam cfsqltype="cf_sql_integer" value="#trim(FORM.SECTORS1)#" null="#isSECTORS1Null#" />,
    <cfqueryparam cfsqltype="cf_sql_integer" value="#trim(FORM.RANKING)#" null="#isRANKINGNull#" />,
    <cfqueryparam cfsqltype="cf_sql_integer" value="#trim(FORM.PRICE)#" null="#isPRICENull#" />,
    <cfqueryparam cfsqltype="cf_sql_integer" value="#trim(FORM.DEPARTMENT1)#" null="#isDEPARTMENT1Null#" />,
    <cfqueryparam cfsqltype="cf_sql_longvarchar" value="#trim(FORM.FIRSTNAME)#" null="#isFIRSTNAMENull#" />,
    <cfqueryparam cfsqltype="cf_sql_longvarchar" value="#trim(FORM.POS)#" null="#isPOSNull#" />,
    <cfqueryparam cfsqltype="cf_sql_longvarchar" value="#trim(FORM.PHONE)#" null="#isPHONENull#" />,
    <cfqueryparam cfsqltype="cf_sql_longvarchar" value="#trim(FORM.EMAIL)#" null="#isEMAILNull#" />,
    <cfqueryparam cfsqltype="cf_sql_longvarchar" value="#trim(FORM.MOBILE)#" null="#isMOBILENull#" />,
    <cfqueryparam cfsqltype="cf_sql_longvarchar" value="#trim(FORM.ADDRESS)#" null="#isADDRESSNull#" />,
    <cfqueryparam cfsqltype="cf_sql_integer" value="#trim(FORM.CITY)#" null="#isCITYNull#" />,
    <cfqueryparam cfsqltype="cf_sql_longvarchar" value="#trim(FORM.COMMENTS)#" null="#isCOMMENTSNull#" />,
    <cfqueryparam cfsqltype="cf_sql_timestamp" value="#MEETINGDATE#" />,
    <cfqueryparam cfsqltype="cf_sql_longvarchar" value="#trim(FORM.MTGT)#" null="#isMTGTNull#" />,
    <cfqueryparam cfsqltype="cf_sql_integer" value="#trim(FORM.STATE1)#" null="#isSTATE1Null#" />
    </CFQUERY>
    <!---DATE_FORMAT(datetime_field_name,'%Y-%m-%d');--->
    <CFLOCATION URL="testht.cfm?begin=1">
    </cfif>
    </cfif>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml"> 
    <head> 
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    <title>Sales</title> 
    <link rel="stylesheet" href="style.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="formst.css" type="text/css" media="screen" />
    </head>
    <cfdump var=#qnames#>
    <cfajaxproxy bind="javascript:myHandler({UsersGrid.COMPANY},{UsersGrid.SECTORS1},{UsersGrid.DEPARTMENT 1})"/>
    <script type="text/javascript">
      function myHandler(COMPANY,SECTORS1,DEPARTMENT1) {
          //update the link's href
          document.getElementById('myLink').href = 'http://www.google.com/search?q=' + COMPANY;
          document.getElementById('Linkedin').href = 'http://www.google.com/search?q=linkedin' + COMPANY;
          //update SECTORS1's selected
          var theField = document.getElementById('SECTORS1');
          for(var i=0; i<theField.options.length; i++) {
              if(theField.options[i].value==SECTORS1) {
                  theField.options[i].selected = true;
              } else {
                  theField.options[i].selected = false;
    </script>
    <!--- TOP --->
    <body>
    <div>
    <cfform name="SFORM" FORMAT="html"  width="1000" height="400" style="margin-left:140px;">
    <cfgrid name="UsersGrid"
               FORMAT="html"
               query="QNAMES" width="920" height="200" rowheaders="No" striperows="yes" striperowcolor="fefefe">
    <cfgridcolumn name="RANKING" width="40"header="Rank">
    <cfgridcolumn name="COMPANY" width="170" header="Company">
    <cfgridcolumn name="FIRSTNAME"  header="Contact Name">
    <cfgridcolumn name="POS" width="160" header="Position">
    <cfgridcolumn name="DEPARTMENTNOM" width="150" header="Department">
    <cfgridcolumn name="SECTORSNOM" width="120" header="Sectors">
    <cfgridcolumn name="ABUNDANCE" width="120" header="Action date">
    <cfgridcolumn name="SECTORS1" width="120" header="Action date" display="no">
    <cfgridcolumn name="PRICE" width="120" header="Action date" display="no">
    <cfgridcolumn name="PHONE" width="120" header="Action date" display="no">
    <cfgridcolumn name="EMAIL" width="120" header="Action date" display="no">
    <cfgridcolumn name="MOBILE" width="120" header="Action date" display="no">
    <cfgridcolumn name="ADDRESS" width="120" header="Action date" display="no">
    <cfgridcolumn name="CITY" width="120" header="Action date" display="no">
    <cfgridcolumn name="COMMENTS" width="120" header="Action date" display="no">
    <cfgridcolumn name="MTGT" width="120" header="Action date" display="no">
       </cfgrid>
    <!---FIRST--->
    <table width="880" class="stat" >
    <tr><td><cfoutput>#QNAMES.RecordCount# Companies</cfoutput></td></tr>
    <tr>
    <td>Company:<cfinput class="input" type="text" name="COMPANY" size="20" label="Company" required="yes"  bind="{UsersGrid.COMPANY}" ></td>
    <td>
    Sector:<cfselect class="input" name="SECTORS1" size="1" label="Sector" required="yes">
    <option></option><cfoutput query="industries"><option value="#SECTORSIDS#">#SECTORSNOM#</option></cfoutput></cfselect>
    </td>
    <td>Ranking:<cfinput class="input"  type="TEXT" name="RANKING" size="3" label="Ranking" bind="{UsersGrid.RANKING}" ></td>
    <td>Price:<cfinput class="input" type="TEXT" name="PRICE" size="3" label="Price" bind="{UsersGrid.PRICE}" >
    <a href="" id="myLink" target="_blank">Google</a>
    <a href="" id="Linkedin" target="_blank">Linkedin</a></td>
    </tr>
    <tr>
    <td>Department:<cfselect class="input" name="DEPARTMENT1" size="1" label="Department" required="yes">
    <option></option><cfoutput query="dNames"><option value="#DEPARTMENTIDS#">#DEPARTMENTNOM#</option></cfoutput></cfselect>
    </td>
    <td>Name:<cfinput class="input" type="text" name="FIRSTNAME" label="Name" required="yes" width="150" bind="{UsersGrid.FIRSTNAME}" ></td>
    <td>Position:<cfinput class="input" type="text" name="POS" label="Position" width="150" bind="{UsersGrid.POS}" ></td>
    <td>Phone:<cfinput class="input" type="text" name="PHONE" label="Phone" width="150" bind="{UsersGrid.PHONE}" ></td>
    </tr>
    <!--- THIRD--->
    <tr><td>Email:<cfinput class="input" type="text" name="EMAIL" label="Email" width="150" bind="{UsersGrid.EMAIL}" ></td>
    <td>Mobile:<cfinput class="input" type="text" name="MOBILE" label="Mobile"  bind="{UsersGrid.MOBILE}" ></td>
    <td>Address:<cfinput class="input" type="text" name="ADDRESS" label="Address"  bind="{UsersGrid.ADDRESS}" ></td>
    <td><cfselect class="input" name="CITY" width="80" size="1" >
    <cfoutput query="xity"><option value="#CITYID#">#CITYNOM#</option></cfoutput>
    </cfselect></td>
    </tr> 
    <!--- FOURTH --->
    <tr><td>Comments:<cftextarea class="input" name="COMMENTS" height="60"  label="Comments" bind="{UsersGrid.COMMENTS}" /> </td>
    <td>Action:<cfinput type="DateField" class="input" size="10" name="ABUNDANCE" label="Action"  bind="{UsersGrid.ABUNDANCE}" ></td>
    <td>Time:<cfselect class="input" name="MTGT" width="90" label="Time"><option>7:00AM</option></cfselect></td>
    <td><cfselect class="input" name="STATE1"  size="1" label="Action" >
    <cfoutput query="salesstep"><option value="#SALESID#">#SALESNOM#</option></cfoutput>
    </cfselect>  </td>
    <cfinput type="hidden" name="ENTID" label="ENTID" bind="{UsersGrid.ENTID}" >
    </tr>
    <tr> <td> 
    <cfinput type="submit" name="DELCOM" value="delete" class="button" >
    <cfinput type="submit" name="UPDATEADDBTN" value="UPDATE or ADD NEW" class="button"></td>
    </tr>
    </table>
    </cfform>
    <cfif isDefined("FORM.DELCOM")>
    <CFQUERY name="deletecompany" datasource="tester">
    DELETE FROM COMPANY
    WHERE ENTID = #FORM.ENTID#
    </CFQUERY>
    <CFLOCATION URL="testht.cfm">
    </cfif>
    </div>
    </body>
    </html>

  • Standard and Non-standard exports and queries issue

    Hi,
    We have created a few STANDARD books with standard exports in them. The standard exports use standard queries.
    The ISSUE is that in the Verifications/Filters tab, where we have put in a lot of queries - ONLY the STANDARD queries show up. We would like to have all the queries show up. I am the adminsitrator and still only the standard ones show up.
    I am worried that if I "Save As" the export as a non-standard export, it does not allow me to uncheck the standard tick column and save it but I have to manually change the name of the export. Can we change this in anyway?
    Is there a system preference where I can allow all the queries to show up in the verifications/filter tab at least for the admnistrators if not for all? Thanks
    - Ad

    Thanks for your input but DRM does seem to be behaving what you said or may be I am still missing something here.
    I created a standard query.
    I have a standard export.
    Now, in the verification/filter tab of my Standard export, I am able to see my standard queries.
    But,
    I am unable to see the Non-Standard Queries.
    HOWEVER,
    If I have a Non-Standard export --> I am able to ALL the queries. This makes it a lot more flexible in doing things.
    My question is the WHY are my standard exports not able to reach the non-standard queries. What I wanted to do a twist in my export for analysis purposes for a particular use. If non-standard exports have access to Standard and Non-Standard queries --> it just makes more sense to always use a non-standard export and create non-standard queries.

  • About EntityManager and queries

    Hi. I'm just getting started with EJB 3 and JSF. I have noticed that, in our session beans when we want to make a query, we use an EntityManager, which invokes a method which I think is createQuery. This method returns a Collection of Entity objects, but I have noticed that our queries are set like "from EntityBean where...", which means that I can't find any "SELECT"!!!. Is this normal? Is there any way that I can use a normal query, such as "SELECT Name from Table WHERE..."? I hope that I can get some help, thanks in advance!

    Cold fusion cleans up for you.
    You do not need to explicitly destroy anything unless threads
    are spawned in a non standard way by Java or C code that you are
    using.

Maybe you are looking for

  • Audio driver not working in hp 2000 - 2116tu laptop

    Audio driver not working in hp 2000 - 2116tu laptop Driver installed : sp57716.exe From : http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-106718-1&cc=us&dlc=en&lc=en... OS : Windows 7 Pro x64 Exact Problem : Audio stops worki

  • DYNPRO_SEND_IN_BACKGROUND  SAPLSPO1 or LSPO1U06   POPUP_TO_CONFIRM

    Hi Request you all to go through the dump, |What happened?                                                                                | | Error in the ABAP Application Program                                                     | |               

  • Text in Billing document should determine into output

    Dear Friends, Help me to determine billing document item text into printout as a line item description. My Scenario is: Generally in printout item description is determined.But i need to determine the billing item text as a item description. Thanks i

  • My Skype number doesn't display on the phone of pe...

    I purchased a Skype number, and I can receive call on that number. However my Skype Number  doesn't display on the phone of the people I am calling.

  • Rman Duplicate database synchronization problem

    Hi I have the Oracle database 9.2.0.1.0 .I've created Duplicate database on another computer with the same structure and Oracle 9.2.0.1.0 too. Now, I want to synchronize my duplicate by primary database, and I copied backup of all datafiles & archive