Structure of the table to Excel

How can I send the table below and the code in an Excel sheet?
Tried some things, but doesn't really work...

Thank you.

Statistics of the < h2 > poll: #stprops_pollingdata.question # < / h2 >
< table border = "1" cellpadding = "1" cellspacing = "2" >
< b >
< th > Date / time created < /th >
< /Th > < th > question
< cfloop index = "i" = "1" a = "#application"wsoFarcryPolling"& pollingid] #" >
< cfif stprops_pollingdata ['reply' and I] GT 0 >
< th > #stprops_pollingdata ['response' & i] # < /th >
< / cfif >
< / cfloop >
Total votes < /th > < th >
< /tr >
< b >
#stprops_pollingdata.datetimecreated # < td > < table >
#stprops_pollingdata.question # < td > < table >
< cfloop index = "i" = "1" a = "#application"wsoFarcryPolling"& pollingid] #" >
< cfif stprops_pollingdata ['reply' and I] GT 0 >
< td > #sums .recordcount # < table >
< / cfif >
< / cfloop >
< td > #answers_sum # < table >
< /tr >
< /table >

Hello
the above example works for probably most uses, but be aware that this will not create good number-format or date cell in Excel format.
If you need to do more transactions in your data in Excel (example: PivotTables, sorting by date, adds,...) then it will probably not work for you.

In this case, you should have a look at the Apache POI libraries.
http://code.Google.com/p/POI-for-ColdFusion/

This library allows you to create a 'real' excel files via a Java API. There are also some wrappers of ColdFusion for technology autour.
http://www.d-Ross.org/index.cfm?ObjectID=9C65ED5A-508B-E116-6F4F7F38C6AE167C

see you soon,
Fouad

Tags: ColdFusion

Similar Questions

  • Structure of the Table OTL (Oracle time and labor)

    Hello

    Could you let me know the structure of the tables of OTL (Oracle time and labor).
    I've been through manual eTrm, but I'll try to find the joints and the structure of the hierarchy.

    Thank you.

    931832 wrote:
    Hello

    Could you let me know the structure of the tables of OTL (Oracle time and labor).
    I've been through manual eTrm, but I'll try to find the joints and the structure of the hierarchy.

    Thank you.

    Click "diagrams and PDF files" when you access eTRM Web site - http://etrm.oracle.com/pls/et1211d9/etrm_fndnav.ls_object?c_name= *. PDF & c_type = FILE

    Thank you
    Hussein

  • showing the structure of the table

    Hi all
    I can only show the structure of the table in a select query

    and

    in a select statement, which can be treated after ORDER BY

    Please review...

    dipuna wrote:
    Hi all
    I can only show the structure of the table in a select query

    You can also use dbms_metadata as

    select dbms_metadata.get_ddl('TABLE','EMP','SCOTT') from dual
    

    So what you will get:

      CREATE TABLE "SCOTT"."EMP"
       (     "EMPNO" NUMBER(4,0),
         "ENAME" VARCHAR2(10),
         "JOB" VARCHAR2(9),
         "MGR" NUMBER(4,0),
         "HIREDATE" DATE,
         "SAL" NUMBER(7,2),
         "COMM" NUMBER(7,2),
         "DEPTNO" NUMBER(2,0),
          CONSTRAINT "PK_EMP" PRIMARY KEY ("EMPNO")
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"  ENABLE,
          CONSTRAINT "FK_DEPTNO" FOREIGN KEY ("DEPTNO")
           REFERENCES "SCOTT"."DEPT" ("DEPTNO") ENABLE
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"
     
    

    >

    in a select statement, which can be treated after ORDER BY

    Please review...

    read the link below
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/statements_10002.htm#i2171079

  • Need help in the design of the structure of the table with the lines of the query

    Hello

    Need to design a page

    ex:

    Select empno, emp wage; is my query and returns two columns and four rows


    the four rows should be my values in the structure of the table.


    EmpNo - salary
    ---------------------
    1 - 1000
    -----------------------
    2 - 2000
    ------------------------
    3 - 3000
    ----------------------
    4 - 4000




    Kind regards

    Krishna

    Hello

    One of the ways is to create 2 RowLayouts dynamically like this

    Row1-> Cell1--> HeaderRegion--> StaticStyleText (EMPNO attribute)
    Row2-> Cell1--> StaticStyleText (EMPNO attribute) Cell2--> StaticStyleText (SALARYattribute)

    and iterate this code for all the lines of the vo.

    Kind regards
    Mukesh Uchaniya

  • Import the structure of the table consumes only space in GB

    Hello
    I used oracle 9i Exp commmand to export a schema structure. (If no line) There are only 150 paintings and export is perfect without any warning.
    When I try to import into another schema, I see that it consumes 3 GB of space in the default tablespace for this scheme. I checked the free space in the tablespace before importing... There are 3 GB of free space...
    When I start the import, it is full and import crashes. It engages not just yet. Im not able to understand why 3 GB of space used for just the structure of the table.

    Help, please
    Thank you

    Yes, use "COMPRESS = N" in the export command line.

    Have you not move the tables (and the clear space) in the database target before you reimport? They contain no data if LINES = N has been specified.

  • Is it possible to install the structure of the table from only EBS?

    I had an installation of R12 in my laptop that has been corrupted. It took me 2 days to install the application in my system RAM of 1 GB. I don't want to go through the painful steps once again, especially when the end result is a very slow application. But is there a way I can install the structure of the table of a single product in a clean oracle database installation. I just need to check the possibility of a few reports of discoverer and other animals... Is there a tweak we can do using all .odf files (in a window system?)

    If you still have the file system, just to create the database and rerun adodfcmp the tables/views you need - will probably be a bunch of dependencies however. Might be better for someone to send you exp = n their database lines.

    G.

  • We can validate data while charging in the table from excel?

    Hello world

    My version of DB is

    BANNER                                                        
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
    PL/SQL Release 10.2.0.1.0 - Production                          
    CORE 10.2.0.1.0 Production                                        
    TNS for Linux: Version 10.2.0.1.0 - Production                  
    NLSRTL Version 10.2.0.1.0 - Production  
    
    

    I have a task to create an automated script to load since excellent data into table with all the necessary validation.

    Is it possible to do? Suppose that the value of a column is '2ascsde', I need to take the first number and insert into the table.

    Some cases, we have Yes and no, instead, I just need to convert these values true and false, respectively. Please suggest something.

    Kind regards

    BS2012.

    How you fail to read data from Excel?

    Re: 5 How to read or write an Excel file?

    According to the method that you choose to do so, will determine what options you have for the handling and validation data.

  • How to disable the user to not import the structure of the table in ODI

    Hello

    I want to disable the not not to import the table structure in to ODI. How we achieve this.

    Please let me know.

    Thank you.

    Take the metadata of the user Admin role

  • The structure of the table of contents get won't suffer if the structure of output file is changed?

    I used FlashHelp to generate output for a project so the output folder has a structure, now while deploying the server if I make changes in the structure of output file/folder it will affect the "table of contents" or any other characteristic.

    Also, while deploying the o/p in files on the server what needs to be done so that the new custom skin (which i using flash) appears to the help pages for my request, as I call the o/p my request htm files directly by using a script.

    I hope that the explanation I posted is understandable.

    Hi kiki_04 and welcome to the HR community.

    The output of your project files cannot be moved or renamed without breaking the links throughout your project. Any changes made to folders or files MUST be made inside your RoboHelp project. It is best to think of your output in a single file, even if it is not. In other words, your output may be moved between places in its entirety

    In regards to your new skin, it must be imported into your RoboHelp project and specified within your layout of the FlashHelp single source.

  • How to generate a sql script that is based on the structure of the table

    I want to generate a sql script that is based on a table structure.

    For example:

    If the table is:

    CID id c_value
    -----------------------------
    1 1 zz
    2 1 yy
    3 2 zz
    4 2 xx
    5 3 ss
    6 tt 3


    The expected output is:

    WITH
    CHILD_tab like)
    SELECT 1 cid, 1 id, 'zz' c_value of all the double union
    SELECT 2 cid, 1 id, 'yy' c_value of all the double union
    SELECT 3 cid, 2 id, 'zz' c_value of all the double union
    SELECT 4 cid, 2 id, 'xx' c_value of all the double union
    SELECT 5 cid, 3 id, 'ss' c_value of all the double union
    SELECT 6 cid, 3 id, 'tt' double c_value)


    11.1.0.7.0 release

    I do a lot of XML these days (maybe too well) so here is a solution involving XQuery.
    We pass a query string and it generates a CLOB containing the WITH clause:

    SELECT DBMS_XMLGEN.Convert(
    XMLQuery(
    q'[concat(
    "WITH t AS (
    ",
    string-join(
     for $i in /ROWSET/ROW
     return concat( " SELECT ",
                    string-join($i/*/concat("'",ora:replace(text(),"'","''"),"' ",local-name()),", "),
                    " FROM dual" ),
    " UNION ALL
    "
    ),
    "
    )")]'
    passing dbms_xmlgen.getXMLType('SELECT * FROM scott.emp')
    returning content
    ).getClobVal(), 1) AS WITH_CLAUSE
    FROM dual;
    
    WITH_CLAUSE
    --------------------------------------------------------------------------------
    WITH t AS (
     SELECT '7369' EMPNO, 'SMITH' ENAME, 'CLERK' JOB, '7902' MGR, '17/12/80' HIREDATE, '800' SAL, '20' DEPTNO FROM dual UNION ALL
     SELECT '7499' EMPNO, 'ALLEN' ENAME, 'SALESMAN' JOB, '7698' MGR, '20/02/81' HIREDATE, '1600' SAL, '300' COMM, '30' DEPTNO FROM dual UNION ALL
     SELECT '7521' EMPNO, 'WARD' ENAME, 'SALESMAN' JOB, '7698' MGR, '22/02/81' HIREDATE, '1250' SAL, '500' COMM, '30' DEPTNO FROM dual UNION ALL
     SELECT '7566' EMPNO, 'JONES' ENAME, 'MANAGER' JOB, '7839' MGR, '02/04/81' HIREDATE, '2975' SAL, '20' DEPTNO FROM dual UNION ALL
     SELECT '7654' EMPNO, 'MARTIN' ENAME, 'SALESMAN' JOB, '7698' MGR, '28/09/81' HIREDATE, '1250' SAL, '1400' COMM, '30' DEPTNO FROM dual UNION ALL
     SELECT '7698' EMPNO, 'BLAKE' ENAME, 'MANAGER' JOB, '7839' MGR, '01/05/81' HIREDATE, '2850' SAL, '30' DEPTNO FROM dual UNION ALL
     SELECT '7782' EMPNO, 'CLARK' ENAME, 'MANAGER' JOB, '7839' MGR, '09/06/81' HIREDATE, '2450' SAL, '10' DEPTNO FROM dual UNION ALL
     SELECT '7788' EMPNO, 'SCOTT' ENAME, 'ANALYST' JOB, '7566' MGR, '19/04/87' HIREDATE, '3000' SAL, '20' DEPTNO FROM dual UNION ALL
     SELECT '7839' EMPNO, 'KING' ENAME, 'PRESIDENT' JOB, '17/11/81' HIREDATE, '5000' SAL, '10' DEPTNO FROM dual UNION ALL
     SELECT '7844' EMPNO, 'TURNER' ENAME, 'SALESMAN' JOB, '7698' MGR, '08/09/81' HIREDATE, '1500' SAL, '0' COMM, '30' DEPTNO FROM dual UNION ALL
     SELECT '7876' EMPNO, 'ADAMS' ENAME, 'CLERK' JOB, '7788' MGR, '23/05/87' HIREDATE, '1100' SAL, '20' DEPTNO FROM dual UNION ALL
     SELECT '7900' EMPNO, 'JAMES' ENAME, 'CLERK' JOB, '7698' MGR, '03/12/81' HIREDATE, '950' SAL, '30' DEPTNO FROM dual UNION ALL
     SELECT '7902' EMPNO, 'FORD' ENAME, 'ANALYST' JOB, '7566' MGR, '03/12/81' HIREDATE, '3000' SAL, '20' DEPTNO FROM dual UNION ALL
     SELECT '7934' EMPNO, 'MILLER' ENAME, 'CLERK' JOB, '7782' MGR, '23/01/82' HIREDATE, '1300' SAL, '10' DEPTNO FROM dual
    )
    

    It may be useful for small datasets only because we reached quickly ORA-01706.

  • The structure of the Table XML

    I have a batch structure in the XML model: -.

    -client BATCH = 'ABC' name = 'ABC1' type = "ABC_TYPE" >
    -< BATCH_SECTIONS >
    -< SECTION name = 'X' dependence 'NULL' = >
    -< JOB_SECTIONS name = "JOB1" dependency = "NULL" >
    -< JOB >
    < JOB type = "X" sub_type = "xx" dependency = "NULL" / >
    < JOB type = "X" sub_type = "yy" dependency = "NULL" / >
    < JOB type = "X" sub_type = addiction "zz" = "NULL" / >
    < / JOBS >
    < / JOB_SECTIONS >
    < / SECTION >
    -< SECTION name = dependence 'Y' = 'X' >
    -JOB_SECTIONS = "JOB2" dependency name = 'X' >
    -< JOB >
    < type of JOB = 'Y' sub_type = "xx" dependency = "X" / >
    < type of JOB = 'Y' sub_type = "yy" dependency = "X" / >
    < type of JOB = 'Y' sub_type = dependence 'zz' = 'X' / >
    < / JOBS >
    < / JOB_SECTIONS >
    < / SECTION >
    -< SECTION name dependency "Z" = "O" = >
    -< name JOB_SECTIONS = dependence "JOB3" = "NULL" >
    -< JOB >
    < type of JOB = «...» "sub_type = «...» "dependency ="NULL"/ >
    < / JOBS >
    < / JOB_SECTIONS >
    -< name JOB_SECTIONS = dependence "JOB4" = "NULL" >
    -< JOB >
    < type of JOB = «...» "sub_type = «...» "dependency ="NULL"/ >
    < / JOBS >
    < / JOB_SECTIONS >
    < / SECTION >
    < / BATCH_SECTIONS >
    < / BATCH >

    1 batch Structure having a section 3:-X, Y, Z
    2. each section having:-a job-section (section Z with 2 JOB SECTION)
    3. There is a dependency between sections. -realization of there depends on X and Z is completed depend on the realization of Y
    4.Z - section with 2 SECTION of WORK:-JOB3 and JOB4


    My question is that I want to convert this model XML structure in an ORACLE table.

    Concerning
    Amu_2007

    You're going to shred the XML into relational tables, I think.

    mdrake on Forum XMLDB provides details on how to do...

    XMLType view relational content

  • need to know the structure of the table relationship

    Hello people,

    I m starting to oracle r12,.

    I'm having trouble finding the relationship of the tables

    is there a place where I can see the relationship of table for a particular module (HR, SCM, PROJECTS)

    for example, I have a view that combine these tables

    OKE_K_HEADERS,

    OKC_K_HEADERS_ALL_B,

    OKC_K_HEADERS_TL,

    OKE_K_VERS_NUMBERS_V,

    OKC_K_HEADERS_ALL_B,

    I want to know the relationship that is main table & that kid and what id column, they are a link.

    Thank you

    This information can be found at https://etrm.oracle.com

    MOS Doc 150268.1

  • Determine the decimal when precision is not defined in the structure of the table

    Hi all

    I'm trying to quickly determine the decimal precision of data in more than one column of the table. Fields can simply be defined as 'Number', but always decimal of the House. I don't mean to round to a certain place of the decimal, but rather to determine the maximum number of decimal places contained in the data of a particular field.

    I wonder if anyone of you know a trick to achieve?

    Thanks for the tips!

    andy_schnelle wrote:
    Hi all

    I'm trying to quickly determine the decimal precision of data in more than one column of the table. Fields can simply be defined as 'Number', but always decimal of the House. I don't mean to round to a certain place of the decimal, but rather to determine the maximum number of decimal places contained in the data of a particular field.

    I wonder if anyone of you know a trick to achieve?

    Thanks for the tips!

    Just a guess

    LENGTH(NUMBER - TRUNC(NUMBER)) - 1
    

    Something like that?

    with zz as(
    select 1.111 x from dual union all
    select 1.1 x from dual union all
    select 1.1111 x from dual union all
    select 1.01 x from dual union all
    select 1 x from dual
    )
    select
    MAX(LENGTH(x - TRUNC(x)) - 1)
    from zz;
    
    Output -- "4"
    

    Published by: Vanessa B on February 13, 2013 02:13

  • How can get the structure of the table without data

    Hai All


    I have two tables namely T1, T2 and these have some fields and I need to create a new table and the table two and only the header fields that I need but not the data.

    Thanks and greetings

    srikkanth. M

    Hello

    Something like that

    SQL> create table emp_bkp as
      2  select * from emp where 1=2;
    
    Table created.
    
    SQL>  select * from emp_bkp;
    
    no rows selected
    
    or
    
    SQL> drop table emp_bkp;
    
    Table dropped.
    
    SQL> create table emp_bkp
      2  as
      3  select e.empno,e.ename,e.deptno,d.dname,e.sal
      4  from emp e,dept d
      5  where e.deptno = d.deptno
      6  and
      7  1=2;
    
    Table created.
    
    SQL> select * from emp_bkp;
    
    no rows selected
    
    SQL> desc emp_bkp
     Name                                      Null?    Type
     ----------------------------------------- -------- --------------------------
     EMPNO                                              NUMBER(4)
     ENAME                                              VARCHAR2(10)
     DEPTNO                                             NUMBER(2)
     DNAME                                              VARCHAR2(14)
     SAL                                                NUMBER(7,2)
    

    Twinkle

  • where are stored physically tablespace, the table structure, package?

    Running Oracle 11 g on Linux.

    My disk parameters are:

    / dev/sda1 (start)
    / dev/sda2 (/)
    / dev/sda3 (/ u01) for Oracle software. Base: / u01/app/oracle
    / dev/sda4 (swap)

    / dev/sdb1 drive ASM for DATA
    / dev/sdc1 disc ASM for DATA
    / dev/sdd1 disc ASM for FRA


    1. where are the tablespace, structure of the table (for example the table name, column name, column type, primarykey keys and index), package, procedure, trigger, and stored PHYSICALLY function? I want to know the location of the path and drive common directory?

    2. when the Fast Recovery Area (FRA) performs the backup task, will be the tablespace, structure of the table (column, type, key, index), package, procedure, trigger and function also supported up to Fast Recovery Area (FRA), in addition to the data files, control files, and redo logs and archived newspapers?



    Thank you

    You must understand the difference and the concept of physical and logical storage Structures storage Structures.

    http://docs.Oracle.com/CD/E11882_01/server.112/e16508/physical.htm

    http://docs.Oracle.com/CD/E11882_01/server.112/e16508/logical.htm

    / dev/sdb1 drive ASM for DATA
    / dev/sdc1 disc ASM for DATA
    / dev/sdd1 disc ASM for FRA
    1. where are the tablespace, structure of the table (for example the table name, column name, column type, primarykey keys and index), package, procedure, trigger, and stored PHYSICALLY function? I want to know the location of the path and drive common directory?

    Probably your database is stored on the file system ASM, using the/dev/sdb1 and/dev/sdc1. Therefore, if your database files is on ASM diskgroup 'DATA' and then all of the objects is here.

    Query V$ DATAFILE, V$ CONTROLFILE, V$ LOGFILE, V$ TEMPFILE

    2. when the Fast Recovery Area (FRA) performs the backup task, will be the tablespace, structure of the table (column, type, key, index), package, procedure, trigger and function also supported up to Fast Recovery Area (FRA), in addition to the data files, control files, and redo logs and archived newspapers?

    FRA is used to contain backups of database then your objects are saved it too.

    RMAN can check it out:

    BACKUP FROM THE LIST;

    LIST ARCHIVELOG ALL;

    Published by: Levi Pereira on October 8, 2012 12:05

    Published by: Levi Pereira on October 8, 2012 12:09

Maybe you are looking for

  • contacts apearing not IOS iPhone6 9.3.2

    My contacts disappeared from the list of contacts. I have still my job to list of Favorites and when someone call the name appears, but I see no contact. I have connected to icloud and contacts are there, they show not only on the contact list. iPhon

  • I can't place a multipage in Student Edition

    Hello I Student Edition v11, and I don't see an option "Place-> several pages. I guess that my version isn't this option? If so, can someone tell me how I can do milti-pages with that? If it isn't... 1. are there other ways I can link different patte

  • How can I change the sensitivity of the Mouse microsoft bluetooth 5000 mouse

    How can I change the sensitivity of the Mouse microsoft bluetooth 5000 mouse

  • How to quit hanging out at Cavas in Photoshop

    There are times when I have an image open in Photoshop CS 5.5 which is going to be tabbed, which means it takes up the canvas of the entire program. If I then try to drag and drop an image on the desktop in Photoshop to work on it (unrelated to the f

  • Captive capture to Nikon D500

    Nikon referred to as to where they will give Adobe the necessary infoto make the modem work for this model?