Working with comma seprated string in column

hi,
RDBMS:Oracle 10gR2
I have a table with following structure
Table : t1
id int
emails varchar2 (200)
newEmail varchar2 (150)
Sample data is as following
id   emails                                                                                      newEmail
1    [email protected],[email protected],[email protected]      null
2
[email protected],[email protected],[email protected]            null
I can use following query to extract data from comma separation to row.
select id,regexp_substr(emails, '[^,]+', 1, rownum) Emails
  from t1
  connect by level <= length(regexp_replace(emails, '[^,]+')) + 1
Now I have to perform 2 operations
1- find /count email ids per id, to estimate how many ids has single and how much  have multiple in emails.I have tried following but  it just remain in execution
with Email as
select id,regexp_substr(emails, '[^,]+', 1, rownum) Emails
  from t1
  connect by level <= length(regexp_replace(emails, '[^,]+')) + 1
select id,emails from email
group by id,emails
having count (id)>1;
2- I want to write update newEmail field from  first value in Emails in table t1 and remove updated value from emails field of table. so If emails has 5 email addresses (1,2,3,4,5) in it , after update it will have 4.I a not sure hoow to do that ?
thanks

You need to fix your data model.
Storing multiple values in a single value column is bad database design and breaches the rules of normalization.
SQL> ed
Wrote file afiedt.buf
  1  with t as (select 1 as id, '[email protected],[email protected],[email protected]' as stupid_string from dual union all
  2             select 2, '[email protected],[email protected],email6.domain.com,[email protected]' from dual)
  3  -- ----------------------------------------------------
  4  -- END OF TEST DATA - USE QUERY BELOW AGAINST OWN TABLE
  5  -- ----------------------------------------------------
  6  select id
  7        ,level as email_id
  8        ,regexp_substr(stupid_string,'[^,]+',1,level) as email
  9  from   t
10  connect by id = prior id
11         and level <= regexp_count(stupid_string,',')+1
12         and prior sys_guid() is not null
13* order by 1,2
SQL> /
        ID   EMAIL_ID EMAIL
         1          1 [email protected]
         1          2 [email protected]
         1          3 [email protected]
         2          1 [email protected]
         2          2 [email protected]
         2          3 email6.domain.com
         2          4 [email protected]
7 rows selected.

Similar Messages

  • How to work with commit handling

    Dear All,
    an ADF Face page(jspx) calls a JSP page, which open a document in a browser window, in the same application. i wanna work with commit handling on the save button so that jsp page gets called ONLY if the commit succeeds jspx page(a ‘Transaction completed’ message (JHS-00100) is recieved). NOT if recieving a ‘No changes to save message’ (JHS-00101) or any other error message. could someone tell me how to implement it?
    regards
    Jerry

    Hi,
    if working with ADF, you can create a operation binding for the commit operation. If you check if the commit operation in ADF is enabled then you should get false if there is no data to commit. So you don't have to wait for the message.
    Frank

  • Using a comma seprated string as rows

    i hv a column in which i store comma seprated name, i have to show them as rows in a report..
    plz help

    As with most things, it depends greatly on your Oracle version (you should always post this information).
    In release 11 here's a neat method.
    http://laurentschneider.com/wordpress/2009/07/select-from-column-separated-list.html
    In release 10 there's REGEXP
    http://nuijten.blogspot.com/2009/07/splitting-comma-delimited-string-regexp.html
    And it looks like you've been given a pre-10 answer already.

  • How to get JDev 10.1.2/ADF working with MS SQL Server Identity Column

    Hello JDevTeam & JDevelopers,
    I want to use JDev/ADF with a MS SQL Server 2005 database that contains tables employing IDENTITY Columns.
    Using JDev/ADF and DBSequence with an Oracle database employing before triggers/sequences accomplishes what I am trying to do except I want to accomplish the same thing using a MSSQL Server 2005 database. Unfortunately I cannot change the database.
    I have been able to select records but I am unable to insert records (due to my lack of knowledge) when using MS/SQL Server Identity Columns with JDev/ADF.
    The following are the steps taken thus far.
    Step1: Create table named test in the 2005 MSSQL Server (see script below).
    Step2: Register 3rd Party JDBC Driver with JDeveloper; Using use Tools/Manage Libraries. Create a new entry in User Libraries with the following;
         Library Name     = Ms2005Jdbc
         Class Path     = C:\dev\Ms2005Jdbc\sqljdbc_1.0\enu\sqljdbc.jar
         (note: Latest TYPE 4 JDBC driver for Microsoft SQL Server 2005 - free at http://msdn.microsoft.com/data/ref/jdbc/)
    Step3:Create New Database Connection;
         Connection Name = testconn1
         Type = Third Party JDBC Driver
         Authentication Username = sa, Password = password, Check Deploy Password
         Connection
              Driver Class = com.microsoft.sqlserver.jdbc.SQLServerDriver     
              Library = Ms2005Jdbc     
              Classpath = C:\dev\Ms2005Jdbc\sqljdbc_1.0\enu
              URL = jdbc:sqlserver://192.168.1.151:1433;instanceName=sqlexpress;databaseName=test
         Test Connection = Success!
    Step5: Create a new application workspace using Web Application default template
    Step6: In Model project, Create new Business Components Diagram.
    Step7: Create new Entity Object. Goto to connections/testconn1, open tables and drag table test onto the diagram.
    Step8: Generate Default Data Model Components by right-clicking on Entity Object. Except all the defaults.
    When I test the Appmodule I select the view object and can scroll through all the records without error. If I try to insert a record, I get JBO-27014: Attribute testid in test is required.
    Going back to the EntityObject I deselect the Mandatory attribute and re-run the test. Now when I try to insert it accepts the value for testname but it does not update the PK testid like it would using an "JDev/ADF/DBSequence/Oracle database/before trigger/sequence" solution.
    Going back to the EntityObject and selecting refresh on insert does not solve this problem either. Changing the URL connection string and adding "SelectMethod=cursor" did not help and changing the SQl Flavor to SQLServer produced errors in the Business Components Browser. I've tried overriding isAttributeChanged() and other things as well.
    I am totally stuck! Can anyone provide a solution?
    Thanks for you help,
    BG...
    Create table named test
    use [testdb]
    go
    set ansi_nulls on
    go
    set quoted_identifier on
    go
    create table [test](
         [testid] [int] identity(0,1) not null,
         [testname] [nvarchar](50) collate sql_latin1_general_cp1_ci_as not null,
    constraint [pk_test] primary key nonclustered
         [testid] asc
    )with (pad_index = off, ignore_dup_key = off) on [primary]
    ) on [primary]

    Figured it out!
    When using the MS SQL Server 2000 Database with the MS JDBC 2000 Driver you specify the SQL Flavor to SQLServer. However setting the SQL Flavor to SQLServer with MS SQL Server 2005 Database and the MS JDBC 2005 Driver will *** fail ***.
    When working with the MS SQL Server 2005 Database and the MS JDBC 2005 Driver you set the SQL Flavor to SQL92 and the Type Map to Java.
    If using a named instance like I am you would specify the URL = jdbc:sqlserver://<db host ip address>:<listening port>;instanceName=<your instance name>;selectMethod=cursor;databaseName=<your database name> (note: leave out the < >)
    The 2005 Driver Class is different then the 2000 and is specified as com.microsoft.sqlserver.jdbc.SQLServerDriver
    Note: In a default MS SQL Server 2005 installation the listening port will change *** everytime *** the host is restarted! You can override this though.
    For the primary key you need to deselect the Mandatory attribute in the EntityObject editor.
    Set Refresh on insert/update = no.
    Set Updateable = never.
    Now my Primary Keys which get their values from the Identity Column are working with ADF in a predictable way.
    Simple enough but I have been away from this stuff for awhile.
    BG...

  • Additional results doesn't work with multi-line string dat

    I observed an erratic behavior with "Additional Results" in TestStand 2010. The problem statement is as follows:
    1. I have a variable "Locals.FirstName"
    2. I have another variable "Locals.LastName"
    3. Concatenate these two strings with a line feed or a new line character (Locals.FirstName+"\n"+Locals.LastName) and display it in a XML report. 
    Approach:
    1. Using "Statement Expression" I concatenate two strings and print the result using "Additional Results"
    2. For verification I display it using "Message Popup" step type. The formatting is as desired in "Message Popup". However, the new line characters appear as "Spaces" in XML report.
    Tracing Of this Erratic Behavior:
    1. I passed the concatenated string to LabVIEW VI and passed it to "Step.Result.ReportText" variable to log it in XML report. The same string which didn't appeared properly using “Additional Results"of "Statement Expression” step now appears proper in XML report.
    I have attached the sequence file for reference. Ensure that Report option is set to XML before executing this sequence.
    Can anyone justify this behavior and suggest the correct approach??
    Thanks !
    Attachments:
    Erratic Behavior Of Additional Results.seq ‏8 KB
    Tracing Of Erratic Behavior.vi ‏9 KB

    Amit -
    Here is a modified version of the TestStand 2010 Horizontal.xsl style sheet that corrects the issue you have mentioned. Note that leading and trailing "\n" characters will still be stripped out, and all "\r" characters will be stripped out.
    Hope this helps.
    Manooch H.
    National Instruments
    Attachments:
    horizontal_modified.zip ‏22 KB

  • Unable to Load CSV file with comma inside the column(Sql Server 2008)

    Hi,
    I am not able load an CSV file with Comma inside a column. 
    Here is sample File:(First row contain the column names)
    _id,qp,c
    "1","[ ""0"", ""0"", ""0"" ]","helloworld"
    "1","[ ""0"", ""0"", ""0"" ]","helloworld"
    When i specify the Text Qualifier as "(Double quotes) it work in SQL Server 2012, where as fail in the SQL Server 2008, complaining with error:
    TITLE: Microsoft Visual Studio
    The preview sample contains embedded text qualifiers ("). The flat file parser does not support embedding text qualifiers in data. Parsing columns that contain data with text qualifiers will fail at run time.
    BUTTONS:
    OK
    I need to do this in sql server 2008 R2 with Service pack 2, my build version is 10.50.1600.1.
    Can someone let me know it is possible in do the same way it is handle in SQL Server 2012?
    Or
    It got resolved in any successive Cumulative update after 10.50.1600.1?
    Regards Harsh

    Hello,
    If you have CSV with double quotes inside double quotes and with SSIS 2008, I suggest:
    in your data flow you use a script transformation component as Source, then define the ouput columns id signed int, Gp unicode string and C unicode string. e.g. Ouput 0 output colmuns
    Id - four-byte signed
    gp - unicode string
    cc - unicode string
    Do not use a flat file connection, but use a user variable in which you store the name of the flat file (this could be inside a for each file loop).
    The user variable is supplied as a a readonly variable argument to the script component in your dataflow.
    In the script component inMain.CreateNewOutputRows use a System.IO.Streamreader with the user variable name to read the file and use the outputbuffer addrow method to add each line to the output of the script component.
    Between the ReadLine instraction and the addrow instruction you have to add your code to extract the 3 column values.
    public override void CreateNewOutputRows()
    Add rows by calling the AddRow method on the member variable named "<Output Name>Buffer".
    For example, call MyOutputBuffer.AddRow() if your output was named "MyOutput".
    string line;
    System.IO.StreamReader file = new System.IO.StreamReader( Variables.CsvFilename);
    while ((line = file.ReadLine()) != null)
    System.Windows.Forms.MessageBox.Show(line);
    if (line.StartsWith("_id,qp,c") != true) //skip header line
    Output0Buffer.AddRow();
    string[] mydata = Yourlineconversionher(line);
    Output0Buffer.Id = Convert.ToInt32(mydata[0]);
    Output0Buffer.gp = mydata[1];
    Output0Buffer.cc = mydata[2];
    file.Close();
    Jan D'Hondt - SQL server BI development

  • How can i work with getdate() in my query if i have a varchar datatype on where clause column ?

    Hi All,
    I have a column like lastdate with varchar datatype. now I want to work with lastdate column in where clause with getdate().
    Ex:  where
    getdate()  -  lastdate < 1
    when I use above one I got error like
    Error = Conversion failed when converting date and/or
    time from character string.
    I knew the datatypes for lastdate and getdate() are different...
    how can I use...
    Thanks,
    rup

    You need to convert the string date to datetime or date. See conversion examples here:
    http://www.sqlusa.com/bestpractices/datetimeconversion/
    Example for the where clause:
    WHERE DATEDIFF(DD, convert(datetime, lastdate, 101), getdate() ) < 1
    Can you post sample string dates?
    Are you looking for today's records? Another option (depends on lastdate format):
    WHERE lastdate = convert(char(8), getdate(), 112)
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • SQL Select with comma separated column value

    Hi All
    ASP VBScript
    I have a DB column named allowed_contracts that stores a
    comma separated
    list of of values e.g. 3, 5, 19, 44, 52
    I need to select records based on a variable called
    varContractList that
    contains another comma separated list i.e. 5, 44, 52
    I only want to select records where the allowed_contracts
    column contains
    each of the varContractList,
    For example only return records that have 5 or 44 or 52 in
    thier
    allowed_contracts column.
    My brain is now in a persistant vegetive state trying to work
    this out so
    any ideas would be much appreciated.
    Regards
    Bren

    Hi Jules
    Cheers for this.
    I was trying to be a bit cute (lazy even) by storing the
    project ID's as a
    comma delimted string but as we see it doesn't always pay to
    be lazy. Serves
    me right for destroying brain cells by drinking the Welshpool
    beer the other
    week whilst visiting mates down that neck of the woods. :-))
    Time for another table me thinks.
    Rgds
    Bren
    "Julian Roberts" <[email protected]> wrote in message
    news:e7i13f$mup$[email protected]..
    > Fatal flaw here Bren. In a relational database, one
    shouldn't really store
    > foreign keys as a comma delimted string. One should have
    a 3 table
    > structure. eg
    >
    > Products:
    > ProductID
    > Product
    >
    > Categories:
    > CategoryID
    > Category
    >
    > ProductCategories:
    > ProductID
    > CategoryID
    >
    > So, from the table ProductCategories, a product can
    belong to many
    > categories. When doing a front end search to find
    products in multiple
    > categories, products can be shown thus:
    >
    > select * from Products where ProductID in (select
    ProductID from
    > ProductCategories where CategoryID in (5,44))
    >
    > --
    > Jules
    >
    http://www.charon.co.uk/charoncart
    > Charon Cart 3
    > Shopping Cart Extension for Dreamweaver MX/MX 2004
    >
    >
    >
    >
    >

  • Working with clobs or extremelly large strings - please urgent

    Hi,
    i have a VARCHAR2 variable that is VARCHAR2(32767), is this possible?
    and i receive to the procedure a VARCHAR2 with almost 28000 character, then i have to insert that value as a CLOB in a xmltype table. This would look like a question to XML DB forum, but what i really need to know is how i can insert a string of that value in a table with a CLOB field. When i try i receive missing expression error. here goes the code:
    Procedure Insert_Data(xmlSTR in VARCHAR2)
    IS
         SQLStmt                                   VARCHAR2(32767);
    xmlDoc clob;
    BEGIN
    xmlDoc := 'xmltype(''<?xml version="1.0"?>' || xmlSTR || ''')';
    xml_table_name := 'XML_TABLE';
         EXECUTE IMMEDIATE 'create table XML_TABLE of xmltype';
    -- EXECUTE IMMEDIATE 'INSERT INTO ' || xml_table_name || ' VALUES (' || xmlDoc || ')'; --> with this expression i receive "PLS-00382: expression is of wrong type" error in compiling time.
    -- and with this i get "missing rigth parentesis" error in run time
         SQLStmt := ' INSERT INTO ' || xml_table_name || ' VALUES (' || xmlDoc || ')';
         EXECUTE IMMEDIATE SQLStmt;
    i'm working with oracle 9.2.07 in windows xp and also tried creating a table with a CLOB column and insert xmlDoc value for it, creating a loop and concatenating value from the string
    can someone help please

    You need to match your datatypes. Either insert an xmltype into a table of xmltype or insert a clob into a clob column. I have demonstated both below.
    scott@ORA92> CREATE OR REPLACE PROCEDURE insert_data
      2    (p_xmlSTR      IN VARCHAR2,
      3       p_xml_table_name IN VARCHAR2)
      4  AS
      5    v_xmlDoc          xmlTYPE;
      6  BEGIN
      7    EXECUTE IMMEDIATE
      8        'CREATE TABLE ' || p_xml_table_name || ' OF XMLTYPE';
      9    v_xmlDoc := XMLTYPE ('<?xml version="1.0"?>' || p_xmlSTR);
    10    EXECUTE IMMEDIATE
    11            'INSERT INTO ' || p_xml_table_name
    12        || ' VALUES (:b_xmlDoc)'
    13        USING v_xmlDoc;
    14  END insert_data;
    15  /
    Procedure created.
    scott@ORA92> SHOW ERRORS
    No errors.
    scott@ORA92> BEGIN
      2    insert_data
      3  ('<Warehouse>
      4        <WarehouseId>1</WarehouseId>
      5        <WarehouseName>Southlake, Texas</WarehouseName>
      6        <Building>Owned</Building>
      7        <Area>25000</Area>
      8        <Docks>2</Docks>
      9        <DockType>Rear load</DockType>
    10        <WaterAccess>true</WaterAccess>
    11        <RailAccess>N</RailAccess>
    12        <Parking>Street</Parking>
    13        <VClearance>10</VClearance>
    14    </Warehouse>',
    15   'xwarehouses');
    16  END;
    17  /
    PL/SQL procedure successfully completed.
    scott@ORA92> DESC xwarehouses
    Name                                                  Null?    Type
    TABLE of XMLTYPE
    scott@ORA92> SELECT * FROM xwarehouses
      2  /
    SYS_NC_ROWINFO$
    <Warehouse>
      <WarehouseId>1</WarehouseId>
      <WarehouseName>Southlake, Texas</WarehouseName>
      <Building>Owned</Building>
      <Area>25000</Area>
      <Docks>2</Docks>
      <DockType>Rear load</DockType>
      <WaterAccess>true</WaterAccess>
      <RailAccess>N</RailAccess>
      <Parking>Street</Parking>
      <VClearance>10</VClearance>
    </Warehouse>
    scott@ORA92> DROP TABLE xwarehouses
      2  /
    Table dropped.
    scott@ORA92> CREATE OR REPLACE PROCEDURE insert_data
      2    (p_xmlSTR      IN VARCHAR2,
      3       p_xml_table_name IN VARCHAR2)
      4  AS
      5    v_xmlDoc          CLOB;
      6  BEGIN
      7    EXECUTE IMMEDIATE
      8        'CREATE TABLE ' || p_xml_table_name || ' (clob_col CLOB)';
      9    v_xmlDoc := '<?xml version="1.0"?>' || p_xmlSTR;
    10    EXECUTE IMMEDIATE
    11            'INSERT INTO ' || p_xml_table_name
    12        || ' VALUES (:b_xmlDoc)'
    13        USING v_xmlDoc;
    14  END insert_data;
    15  /
    Procedure created.
    scott@ORA92> SHOW ERRORS
    No errors.
    scott@ORA92> BEGIN
      2    insert_data
      3  ('<Warehouse>
      4        <WarehouseId>1</WarehouseId>
      5        <WarehouseName>Southlake, Texas</WarehouseName>
      6        <Building>Owned</Building>
      7        <Area>25000</Area>
      8        <Docks>2</Docks>
      9        <DockType>Rear load</DockType>
    10        <WaterAccess>true</WaterAccess>
    11        <RailAccess>N</RailAccess>
    12        <Parking>Street</Parking>
    13        <VClearance>10</VClearance>
    14    </Warehouse>',
    15   'xwarehouses');
    16  END;
    17  /
    PL/SQL procedure successfully completed.
    scott@ORA92> DESC xwarehouses
    Name                                                  Null?    Type
    CLOB_COL                                                       CLOB
    scott@ORA92> SELECT * FROM xwarehouses
      2  /
    CLOB_COL
    <?xml version="1.0"?><Warehouse>
        <WarehouseId>1</WarehouseId>
        <WarehouseName>Southlake, Texas</WarehouseName>
        <Building>Owned</Building>
        <Area>25000</Area>
        <Docks>2</Docks>
        <DockType>Rear load</DockType>
        <WaterAccess>true</WaterAccess>
        <RailAccess>N</RailAccess>
        <Parking>Street</Parking>
        <VClearance>10</VClearance>
      </Warehouse>
    scott@ORA92>

  • Pivoting string values( ,comma seperator) to separate columns(usingREG_EXP)

    <pre>
    I have column PART which contains string as shown below
    PART
    BMW PART,TEST PART,TEST PART,HYPER PART,HYPER PART,TESTINGNEWONE,TESTINGNEWONE,TESTINGNEWONE
    string has got comma separated, i need to project as individual columns like
    P1 P2 .... P8
    BMW PART TEST PART TESTINGEWONE
    how can it be done... (i think by using regular expressions it can be done but i am not aware of it can any one help)
    </pre>
    Thanks
    Naren

    Hi,
    Narendar.Vishwanatham wrote:
    thanks a lot for your query....
    cant we make it dynamically instead of hardcoding each columnThe number of columns produced by a query must be hard-coded into the query.
    Dynamic SQL means that you have some program (often another query) write all or part of the main query for you.
    The following thread has an example of a dynamic pivot in SQL*Plus:
    Help for a query to add columns
    The following thread discusses different options for dealing with an unknown number of columns after the pivot:
    Re: Report count and sum from many rows into many columns
    (and i guess the answer you gave is not possible to get with out using regular expresssions right !!!)No, you can get the same results using INSTR and SUBSTR.
    Whenever you ask for help, post a little sample data (CREATE TABLE and INSERT statements), and the results you want from that data.
    Always mention what version of Oracle (and any other relevant tools) you're using. This is especially important with pivots; recent versions of Oracle have helpful new features.

  • Working with strings

    Hi All
    I have a column with records like this:
    a-b-c-d
    1-2-3-4
    x-y-z-1I want to print till before the third occurance of '-', i.e:
    a-b-c
    1-2-3
    x-y-zany string function can help me out?

    sandipjee wrote:
    Or if we can trim out somehow everything after last '-' will be better... :)The solutions so far were for you original requirement of "I want to print till before the third occurance of '-'" If you want to change third occurence to last occurence then this should work:
    with a
    as (select 'a-b-c-d' str from dual
    union all select '1-2-3-4' from dual
    union all select 'x-y-z-1' from dual
    union all select 'a-b-1' from dual
    union all select 'a-b-c-d-1' from dual
    )select str
           ,substr(str,1,instr(str,'-',1,3) - 1) "3rd '-'"
           ,substr(str,1,instr(str,'-',-1,1) - 1) "last '-'"
    from a;
    STR       3rd '-'   last '-'
    a-b-c-d   a-b-c     a-b-c
    1-2-3-4   1-2-3     1-2-3
    x-y-z-1   x-y-z     x-y-z
    a-b-1               a-b
    a-b-c-d-1 a-b-c     a-b-c-dBen

  • I recently began using reminders in ical and downloaded the iPhone and iPad app. It works great. However, the reminders in ical on the COMPUTER is difficult to work with - thin long column on the right rather than in it's own screen. is there a reminders

    I recently began using reminders in ical and downloaded the iPhone and iPad app. It works great. However, the reminders in ical on the COMPUTER is difficult to work with - thin long column on the right rather than in it's own screen. is there a reminders app for the COMPUTER that is more user friendly?

    sgreenie,
    If you are willing to wait, Apple - OS X Mountain Lion - Inspired by iPad. Made for the Mac explains that a "Reminders" application will be included in the next release of OS X.

  • How to create a String with comma ?

    Hi All,
    I have a table with 10 records(employee name) and i have to make a string
    with comma delimiter and at the end with "."
    Can anybody tell me how to write a Java program for this ?
    Thanks in advance.

    // I believe the following example gives you the answer.
    class stringEG {
         public static void main(String args[]) {
         String emprs[] ={"1","2","3","4","5","6","7","8","9","10"};
         String vempname = "";
         for(int i=0; i<emprs.length; i++) {
         if(i == (emprs.length-1))
              vempname = vempname + emprs[i] + ".";
         else
              vempname = vempname + emprs[i] + ", ";
         System.out.println("vempname : "+vempname);
    Here dont assume that I asked you to get all the results and putting
    it into the string arrays. But its a simple example to suit your requirement.
    The half-way coding below answers your question, I hope.
    vempname = "";
    while (emprs.next()) {
    if(emprs.isLast())
    vempname = vempname + emprs.getString("empname") + ".";
    else
    vempname = vempname + emprs.getString("empname") + ", ";
    // nats.

  • BUG: Dynamic report column headings not working with some templates

    Using Apex 2.0, we are trying to create a vertical report with dynamic labels like &P26_REF_RECEIVED_DATE_L. based on items populated by PL/SQL.
    This seems to work fine for some templates but not for others. With a horizontal report template we get output like:
    <th class="t4ReportHeader" id="REF_RECEIVED_DATE">Received</th>
    <td  headers="Received" class="t4data">29-MAR-2007</td>But with the vertical template we get:
    <th>&P26_REF_RECEIVED_DATE_L.</th><td>29-MAR-2007</td>Also, if we use "default: vertical report, look 1" we see "&P26_REF_RECEIVED_DATE_L." in the output, but with "default: vertical report, look 2" we see "Received".
    Message was edited by:
    Tony Andrews

    have you checked that your report template has a
    valid value for the "Column Heading Template"
    property?This template has nothing in the "Column Heading Template" because it is designed to show the data in this form:
    Heading1 - Value1
    Heading2 - Value2
    Heading3 - Value3
    Hence both the heading and the data appear in the "Column Template 1" property as follows:
    <tr><th class="t3header">#COLUMN_HEADER#</th><td class="t3data">#COLUMN_VALUE#</td></tr>
    Maybe it is an Apex limitation that the #COLUMN_HEADER# value can't be accessed from this subtemplate? Yet somehow it works with "default: vertical report, look 2" (which I realise isn't a template as such).

  • Working with Multi-column text in Illustrator CS6 - highly irritating! How do I do the following ...

    Hi ...
    I'm finding working with multi column\row text box ("table") in Illustrator CS6 really irritating and non-intuitive. Maybe just my ignorance but I can't find simple ways to do the following:
    1. Click in a different cell of the "table" to the one currently active. Cursor does not move to new cell. How do I move focus to a different cell?
    2. Begin entering text in an empty table - I can't get the cursor to appear, despite clicking inside cell area, on text box border etc.
    Is there any simple way to perform these basic, simple tasks?
    Thanks
    Richard

    In my quick test I was able to enter the text by beginning at the upper left of the box and clicking. When I entered the text it appeared in the first box. Then I was able to tab through to the other boxes.

Maybe you are looking for

  • Has anyone seen this BUG with Time Warp and Dissolve?

    I'm doing some real basic slow-mo clips, transitioning with various dissolve wipes. I've come across a problem that is extreemly frustrating! I'm wondering if anyone has insight on a fix or if Adobe does service packs or fixes that I might be able to

  • How to make it work in HTML?

    The project run very well in Chrome, firefox and IE after published. (Stand alone) http://www.ctmotorfairing.com/Test/index.html However, after I integrated it in my existing HTML, in IE and firefox can't display any more. (Chrome is Perfect) http://

  • Calling Sub from Main

    I am attaching a full folder that contaions a small project with three VI s. What I want to do is this : Run the MAIN.vi. Choose the required sub.vi to load and click Auto Load. The Main FP is closed and the Sub VI loads. All working fine in design m

  • Import MS Excel in OA Framework

    We have a custom requirement to upload a Excel in to a custom portal. I have used "MessageFileUpload" item style in the page to select the Excel file from the local system. But is there any framework package available to read the Excel file? If not c

  • CF 4.5 doc root?

    Hello, We need to shutdown access to our site and we want to direct users to an alternate folder: docs2 instead of docs. This way, our main site will be inaccessible and we can display an alternate home page, without fear of users using bookmarks to