Convert multiline single line?

Oracle Database 10g Enterprise Edition Release 10.2.0.4.0

We deal with spatial data from another source to display in our GIS environment.

The data is a set of multiline. The gtype is 2006. A typical geometry looks like:
SDO_GTYPE     2006
SDO_SRID      31370
SDO_POINT.X   NULL     
SDO_POINT.Y   NULL
SDO_POINT.Z   NULL
SDO_ELEM_INFO (1,2,1, 7,2,1)
SDO_ORDINATES (105094.84, 195084.96,
               105094.54, 195080.22,
               105094.84, 195084.96,
               105094.84, 195084.96,
               105094.68, 195082.47 )
Now, this isn't a real multiline... it's just encoded as a multiline, but if you look at the details, you will see that the endpoint of the first line is the same as the beginning of the second line (105094.84, 195084.96).

A better way to code this geometry would be:
SDO_GTYPE     2002 <---
SDO_SRID      31370
SDO_POINT.X   NULL     
SDO_POINT.Y   NULL
SDO_POINT.Z   NULL
SDO_ELEM_INFO (1,2,1)
SDO_ORDINATES (105094.84, 195084.96,
               105094.54, 195080.22,
               105094.84, 195084.96, <---
               105094.68, 195082.47 )
Is there a standard function in Oracle that performs this conversion for me? Or do I have to write my own :)

Thank you very much!
Rob

Rob,

Many ways for this cat with the standard tools of the skin.

with mLine as (
select SDO_GEOMETRY(2006,31370,NULL,
SDO_ELEM_INFO_Array (1,2,1, 7,2,1),
SDO_ORDINATE_ARRAY (105094.84, 195084.96,
               105094.54, 195080.22,
               105094.84, 195084.96,
               105094.84, 195084.96,
               105094.68, 195082.47 )) as geom
 from dual
)
select sdo_util.concat_lines(l1.geom,l2.geom) as line
  from (select sdo_util.extract(geom,1) as geom from mline) l1,
       (select sdo_util.extract(geom,2) as geom from mline) l2
union all
select sdo_geom.sdo_union(geom,geom,0.005) as line
  from mline l
union all
select sdo_util.remove_duplicate_vertices(sdo_geometry(2002,l.geom.sdo_srid,l.geom.sdo_point,SDO_ELEM_INFO_ARRAY(1,2,1),l.geom.sdo_ordinates),0.005) as line
  from mline l;
-- Results
--
LINE
---------------------------------------------------------------------------------------------------------------------------------------------------------------
SDO_GEOMETRY(2002,31370,NULL,SDO_ELEM_INFO_ARRAY(1,2,1),SDO_ORDINATE_ARRAY(105094.84,195084.96, 105094.54,195080.22, 105094.84,195084.96, 105094.68,195082.47))
SDO_GEOMETRY(2002,31370,NULL,SDO_ELEM_INFO_ARRAY(1,2,1),SDO_ORDINATE_ARRAY(105094.54,195080.22, 105094.68,195082.47, 105094.84,195084.96))
SDO_GEOMETRY(2002,31370,NULL,SDO_ELEM_INFO_ARRAY(1,2,1),SDO_ORDINATE_ARRAY(105094.84,195084.96, 105094.54,195080.22, 105094.84,195084.96, 105094.68,195082.47))

Note how SDO_UNION reorganizes and cleans the linestring which you can't.

concerning
Simon

Tags: Database

Similar Questions

  • Multi lines convert to a single line

    Dear Group members
    I want to convert the queries that return multiple lines in a single line. Scanario is provided for in
    select * from inout v
    where v.empcode = '00047'
    and v. dated = '27-dec-09'
    
    EMPCODE      DATED        IN_TIME   NET_TIME     ATT_STATUS     VAL
    00047     27/12/2009     0     0       G             1
    00047     27/12/2009     0     0       R             1
    00047     27/12/2009     7.44     483       P             1
    This query gives multi lines, but I would like to convert it into a line like this
    EMPCODE      DATED        IN_TIME   NET_TIME     ATT_STATUS     VAL
    00047     27/12/2009     7.44     483       R             1
    If the employee came the day that has three traffic status ('G', 'R', 'P'), then it should show in_time, net_time situation and their participation should be 'R '.

    In this example there are two rows. I need the line that has in_time > 0, which is the 2nd bet replaces att_status 'P' for 'R '.
    EMPCODE      DATED        IN_TIME   NET_TIME     ATT_STATUS     VAL
    00047     25/12/2009     0     0       R             1
    00047     25/12/2009     7.59     476       P             1
    Suppose that there are the 25/12/2009 and employee came that day then it shows the following result.
    EMPCODE      DATED        IN_TIME   NET_TIME     ATT_STATUS     VAL
    00047     25/12/2009     7.59     476       R             1
    It presents 'R' Att_status coloums instead of 'P '.

    >
    Note that
    'G' = blew in gusts
    'R' = rest
    "P" = present
    >

    Test case is provided for in
    CREATE TABLE INOUT
    (
      EMPCODE     VARCHAR2(10),
      DATED       DATE,
      IN_TIME     NUMBER(10,2),
      NET_TIME    NUMBER(10,2),
      ATT_STATUS  VARCHAR2(5),
      VAL         NUMBER(3)
    )
    
    insert into inout(EMPCODE,    DATED     ,IN_TIME , NET_TIME, ATT_STATUS, VAL  )
    values           ('00047','25-DEC-2009',     0    ,       0     ,   'R' ,           1);
    insert into inout(EMPCODE,    DATED     ,IN_TIME , NET_TIME, ATT_STATUS, VAL  )
    values           ('00047','25-DEC-2009',     7.59 ,       476   ,   'P' ,           1);
    insert into inout(EMPCODE,    DATED     ,IN_TIME , NET_TIME, ATT_STATUS, VAL  )
    values           ('00047','27-DEC-2009', 0    ,    0         ,   'G'     ,       1);
    insert into inout(EMPCODE,    DATED     ,IN_TIME , NET_TIME, ATT_STATUS, VAL  )
    values           ('00047','27-DEC-2009',     0    ,       0     ,       'R'     ,       1);
    insert into inout(EMPCODE,    DATED     ,IN_TIME , NET_TIME, ATT_STATUS, VAL  )
    values           ('00047','27-DEC-2009',     7.44 ,       483   ,       'P' ,           1);
    Thanks and greetings
    select distinct empcode,dated,
           case when cnt>0 then
             max(in_time) over (partition by empcode,dated)
            else
               in_time
            end in_time,
           case when cnt>0 then
             max(net_time) over (partition by empcode,dated)
            else
               net_time
            end net_time,
    
           case when cnt >0 then
               case when status in  ('G','P','R')  then
                'R'
                    when status in ('HCP','1/2') THEN
                'HCP'
               end
             else
               status
            end status
           from (
            select v.empcode,v.dated,v.in_time,v.net_time,(count(*) over (partition by v.empcode,v.dated)) cnt,att_status status
             from inout v
            where v.empcode = '00047')
    

    Published by: Khaled Aradhye, January 20, 2010 02:23

  • converting and application of single line

    Greetings,

    The data tables and release date are on the bottom.
    Tables of process contains the id of the base of different dealing with the fabric. 1 single command will have (at most) 2 or 1 process different store (s). Need to create a query list all order no as well as names of processes, work shop. It also requires to convert each numeric field to 0 if the value is null. I was able to create a query as follows but stuck on do not know how the order number listed as single line more this conversion of numeric field when there are 2 different process no.. Can you help me? I know there are a lot of gurus here who can give me a lift. Thank you.

    Select
    B.porderno,
    Decode(pprocessno,1,A.Name,null) as '1 storename. "
    Decode(pprocessno,2,A.Name,null) as '2nd storename.
    Decode (pprocessno, 1, NVL(B.PLength,0), null) as "1 length."
    Decode (pprocessno, 2, NVL(B.PLength,0), null) as '2nd length.
    of test_store2 A, test_process B
    where A.storeid = B.pstoreid...



    CREATE TABLE test_store2
    (storeid NUMBER (3.0) not null,)
    (20) is not name VARCHAR2 null,
    addr VARCHAR2 (30) not null

    )
    /
    CREATE TABLE test_process
    (porderno NUMBER (10,0) not null,)
    pstoreid number (3.0) not null,
    pprocessno number (3.0) not null,
    PLength number (3.0).
    pwork VARCHAR2 (30)

    )

    /
    INSERT INTO test_store2 (storeid, name, address)
    VALUES (001, 'papas, 123 route1')
    INSERT INTO test_store2 (storeid, name, address)
    VALUES (002, "tcbi" ', ' st 652 sky ")
    INSERT INTO test_store2 (storeid, name, address)
    VALUES (003, 'tutu club' ', ' 888 grand ave ")
    INSERT INTO test_store2 (storeid, name, address)
    VALUES (004, "stinkys', ' 432 bobo st")
    /

    INSERT INTO test_process (porderno, pstoreid, pprocessno, plength, pwork)
    VALUES (811, 2, 1, null, "prepNdye")
    INSERT INTO test_process (porderno, pstoreid, pprocessno, plength, pwork)
    VALUES (811, 1,2,30, "cutting")

    INSERT INTO test_process (porderno, pstoreid, pprocessno, plength, pwork)
    VALUES (812, 1,1,10, 'dye')

    INSERT INTO test_process (porderno, pstoreid, pprocessno, plength, pwork)
    VALUES (813, 3,1,40, 'preparation')
    INSERT INTO test_process (porderno, pstoreid, pprocessno, plength, pwork)
    VALUES (813, 4.2, null, 'dye')
    /
    Search result page layout
    order  1st storename 2nd storename      1st length    2ndlength         1stwork            2nd work
    
    811     tcbi                papas             0             30            prepNdye           trimming
    812     papas                                 10             0            dye
    813     tutu club           stinks            40             0            prep               dye

    Hello

    I wanted to answer the OP, not Florian. I'm sorry.

    In your [last thread | http://forums.oracle.com/forums/message.jspa?messageID=3514404#3514404], we have treated the two stores as if they were in the two tables, using two copies of the test_store2 table.
    We can do the same thing with the process: the two process, as if they were in the two tables, using two copies of the process table.
    Since it may not be a 2nd treatment, the 2nd copy of the table of alternation (and the second copy of the table test_store2, which is distal in relation to it) must be attached to an outside.

    SELECT    p1.porderno
    ,       s1.name          AS "1st storename"
    ,       s2.name          AS "2nd storename"
    ,       NVL (p1.plength, 0)     AS "1st length"
    ,       NVL (p2.plength, 0)     AS "2nd length"
    ,       p1.pwork             AS "1st work"
    ,       p2.pwork             AS "2nd work"
    FROM            test_process     p1
    JOIN            test_store2     s1     ON     p1.pstoreid     = s1.storeid
                               AND     p1.pprocessno     = 1
    LEFT OUTER JOIN     test_process     p2     ON     p1.porderno     = p2.porderno
                                     AND     p2.pprocessno     = 2
    LEFT OUTER JOIN     test_store2     s2     ON     p2.pstoreid     = s2.storeid
    ORDER BY  p1.porderno
    ;
    

    Another approach, since you want to exit with a line by porderno, would be to start by creating a version of the process table that has one line per processid, using GROUP BY, as Florian, and then join two copies of the table of test_sorte2 this result set.

    Published by: Frank Kulash, June 9, 2009 10:45

  • convert the column values to a single line...

    I have to return the column values to a single line separated by commas.
    If the nulls in the column just ignore without a comma.
    Here is one for example. There are three values and two NULL values in the table
    SQL> select ID from temp_fa;
    ID
    -----
    
             1
             2
    
             3
    
             5
    
    6 rows selected.
    
    
    I am expecting an output as 1,2,3,5
    Help, please

    There is always more than one title in the Oracle world ;)
    You can use the TRIM, for example (same configuration as your example):

    hoek&XE>  create table t as select level col  from dual connect by level <= 6;
    
    Tabel is aangemaakt.
    
    hoek&XE> update t set col = null where col in (1,3,5);
    
    3 rijen zijn bijgewerkt.
    
    hoek&XE> select * from t;
    
           COL
    ----------
    
             2
    
             4
    
             6
    
    6 rijen zijn geselecteerd.
    
    hoek&XE> select ltrim(sys_connect_by_path(col, ','), ',') output
      2  from  ( select col
      3          ,      row_number() over (order by col) rn
      4          from   t
      5        )
      6  where connect_by_isleaf=1
      7  start with rn=1
      8  connect by rn = prior rn+1;
    
    OUTPUT
    -------------------------------------------------------------------------------------------------------------
    2,4,6,,,
    
    1 rij is geselecteerd.
    
    hoek&XE> select trim ( both ',' from sys_connect_by_path(col, ',')) output
      2  from  ( select col
      3          ,      row_number() over (order by col) rn
      4          from   t
      5        )
      6  where connect_by_isleaf=1
      7  start with rn=1
      8  connect by rn = prior rn+1;
    
    OUTPUT
    -------------------------------------------------------------------------------------------------------------
    2,4,6
    
    1 rij is geselecteerd.
    
  • given in the lines, combine them in a single line

    Hello world

    I have programmed plsql to organize data based on a condition, but I need to do it directly in sql, if possible, once the value of the line in another line to combine in a single line, for example

    Header 1 Header 2 Header 3
    A77A84A12
    A12A10A11
    A30A44A42
    A77A02A70

    A08

    A09A86A08

    The goal

    Header 1 Header 2 Header 3 Header 4 Header 5 Heading 6
    A02A10A11A12A77A84
    A08A09A86
    A30A42

    A44

    If you can see the line no 2 & 4 there is A12, A77 who do declare on line no 1, so I need to combine and so on.

    example of data

    CREATE TABLE testrows (col1 VARCHAR2 (10), col2 VARCHAR2 (10), col3 VARCHAR2 (10));

    INSERT INTO testrows

    VALUES ('77', 'A84', 'A12');

    INSERT INTO testrows

    VALUES ("A12", "A10", "A11");

    INSERT INTO testrows

    VALUES ('A30', 'A44', "A42");

    INSERT INTO testrows

    (col1, col2

    )

    VALUES ("A08", "A09"

    );

    INSERT INTO testrows

    (col1, col2

    )

    VALUES ('A86","A08"

    );

    INSERT INTO testrows

    VALUES ('A77","A02","A70");

    Kind regards

    Hello

    I'm not sure that understand what you want.  You must explain in more detail, citing specific examples.

    Why won't you 'The A70' in the results?

    Maybe you want something like this:

    WITH got_r_num AS

    (

    SELECT col1, col2, col3

    ROWNUM AS r_num

    OF testrows

    )

    got_grp AS

    (

    SELECT the val

    MIN (val CONNECT_BY_ROOT) AS grp

    -The following 3 lines are necessary only if rotating into discrete columns

    -, ROW_NUMBER () OVER (PARTITION OF MIN (val CONNECT_BY_ROOT)

    --                               ORDER BY      val

    --                             )          AS c_num

    OF got_r_num

    UNPIVOT (val

    FOR the collar (col1, col2, col3)

    )

    CONNECT BY NOCYCLE (val = val PREREQUISITE AND r_num <> r_num PREREQUISITE)

    OR (val <> val PREREQUISITE AND r_num = PRIOR r_num)

    GROUP BY val

    )

    SELECT LISTAGG (val, ",") THE Group (ORDER BY val) AS val_list

    OF got_grp

    GROUP BY grp

    ORDER BY grp

    ;

    The results I get include "The A70" and are in a tall column concatenated, but are also what you asked:

    VAL_LIST

    ----------------------------------------

    A02, A10, A11, A12, A70, A77, A84

    A08 A09, A86

    A30, A42, A44

    The number of columns in the output must be hard-coded in the application.  If you want the number of columns depends on what the search query, you need dynamic SQL statements.  The following all the addresses this issue:

    Re: 4. How can I convert rows to columns?

    Re: County report and the sum of the number of rows by multiple columns

    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:4471013000346257238

  • How to merge data from the table with a single line

    Hello

    I have three tables subscription_type, the address and the person. Here are the details of the table

    Person Subscription_type Address                                           

    Person_Id AdressType_id Address_id

    Person_name Description Address_type_id

    Person_id

    Address details


    There are three types of different address - home, postal and previous.

    Each person can have these three different addresses.

    I want to create a view that displays all addresses of three of each person in the table of the person in a single line.

    Any help please

    In your example, there are 2 rows of columns street1, TOWN, SUBURB etc for a single person. To convert this into a single line, with the new columns we could simply use CASES or DECODE in the select as the SQL below. To understand why consolidation function THAT MAX is used - remove the MAX and GROUP BY in SQL keyword and try.

    Select full_name

    , max (case when description = "Home" then end street1) Home_Street

    , max (case when description = "Home" then end suburb) home_suburb

    , max (case when description = end of the "Home" then City) home_city

    , max (case when description = "Home" then postal code end) home_postcode

    , max (case when description = "Home" then end state_name) home_state

    , max (case when description = 'Postal' then end street1) Postal_Street

    , max (case when description = 'Postal' and then end of suburb) Postal_suburb

    , max (case when description = 'Postal' then the city) Postal_city

    , max (case when description = 'Postal' and then end of CP) Postal_postcode

    , max (case when description = 'Postal' then state_name end) Postal_state

    , max (case when description = "Back" then end street1) Prev_Street

    , max (case when description = "Back" then end suburb) Prev_suburb

    , max (case when description = "Back" then city end) Prev_city

    , max (case when description = "Back" then postal code end) Prev_postcode

    address a

    S State

    No p

    Subscription_type att

    where a.person_id = p.person_id

    and a.state_id = s.state_id

    and a.address_type_id = att.address_type_id

    Full_name group

  • Single-line print multi-line TextField

    Hi all

    I have 2 TextFields on a frame in my film. What happens is, if my connection to losses of film to a server, it starts to run a timer to continue to retry the connection every 10 seconds. And what I'm trying to do is to write in one of current advance TextFields and what 'Retry' count on what we... But for some reason, I'll try to have 2 htmlText lines appear on the same line, except the second method htmlText adds new text to a line break.

    I already put the TextField on the stage to be single line and no. WordWrap, and set the text of TLF. So how could it possible to appear on separate lines 2. ? What confuses me the most, is that I updated the TextField on the stage and in the following single line (* just to see if it helped, and there no), then why he would print to a second line is spooky in my mind.

    Here is my code:

    / * There are 2 TextFields:

    *    #1. Title/header field, this text will not change.

    *    #2. Message/info field, this is the text I want to change to each loop timer

    */

    function retry_connectSocket(event:TimerEvent)

    {

    trace ("FUNCTION IN: retry_connectSocket():");

    WBDMovie.errorMsg_textField.multiline = false;

    WBDMovie.errorMsg_textField.wordWrap = false;

    Add text to the textfield 'errorMsg_textField ':

    err_string = ' # ' + myTimer.currentCount + '. '. Retrying connection... "

    WBDMovie.errorMsg_textField.htmlText = "< font color ="#FFFFFF"size = '25' > < b > ' + err_string + ' < /b > < / police > ';

    Call function 'connectSocket()' to try to reconnect to the server:

    connectSocket();

    If socket.connected returns TRUE, then the connection has succeeded

    If (socket.connected)

    {

    Print the Message that the connection is successful:

    WBDMovie.errorMsg_textField.htmlText += ' < font color = "#00FF00" size = '25' > connection successful! " "< / police > ';

    } else {}

    Print the Message saying that the connection has failed:

    WBDMovie.errorMsg_textField.htmlText += ' < font color = "#FF0000" size = '25' > Connection Failed! "< / police > < br / > ';

    }

    }

    No idea why it is printing several lines? In addition, any ideas for why the "BOLD" < /b > < b > tags do nothing no more?

    Any ideas or suggestions would be greatly appreciated!

    Thanks in advance,

    Matt

    Have you tried to use a regular dynamic TextField instead of a TLFTextField?

  • Replace or remove all single line breaks in a Blob

    Hello

    I want to remove/replace all new simple lines (NOT the carriage return / new line) in a BLOB.

    I tried to convert the BLOB in a clob, and then replace all occurrences of new lines of simple with the function replace (for example replace (clob, 10),)
    I even cut the clob into small pieces of varchar2 and tried to apply the function replace etc., but without success!

    I'd be happy if someone could give me a tip how I could fix this problem.

    I use
    Request 4.1.0.00.32 Express on
    Oracle 10g (10.2.0.4.0 - 64 bit)

    Thank you
    Johnny

    Johnny Be Good wrote:
    Hi Paul,.

    the answer to your first question is simple. I use a blob instead of a clob object because I download a file (csv) using an element "Browse file".
    The file is then stored in FLOWS_FILES. WWV_FLOW_FILE_OBJECTS$ (wwv_flow_files) that stores the file in a blob (blob_content) column.

    What to do now is to store the contents of the BLOB to a file in a directory in order to to use as an external file.
    After this, I question the external file and merge the contents into a normal table within the database.

    The problem I have now is that sometimes downloaded csv files have 'broken data sets' in the way that a line (a single dataset), which was divided into
    two or more rows (with a single line break at the end of each line instead of a carriagereturn/linefeed to the normal lines).
    Sometimes, when the lines matching/data sets contain a very large text (e.g. 3000 characters) in a single column and MS excel (the tool used to record the original excel in csv file) can not handle this long texts of a column and breaks the content of a line into multiple lines in a cell.

    However, I need to "Break" the broken data sets in the blob downloaded by removing (or replace) single line breaks, which are an indication of a split data set.

    In view of this process. I converted to CLOB BLOB when the file is extracted from APEX_APPLICATION_FILES, remove the EPA of the problem, and then write in the file system as a CLOB.

    I tried to do by converting the BLOB in a clob, for example with this function:

    A function like this is reinventing the wheel. 10g comes with dbms_lob.convertToClob (see above).

    And after conversion, trying to replace all the occurrences of single line within this clob breaks, for example with this code:

    l_clob := replaceClob(l_clob,chr(10),' ');
    

    Who will replace all the LFs, whether or not they are in CR/LF pairs. Use regexp_replace/regular expressions to exclude EPA following a CR (see above).

    "Without success" means, that the line breaks have not been replaced. I tried several ways as delete (replace without a third parameter and the corresponding function), replacement (for example with a white) etc. !

    I even tried to apply the function of standard replacement for varchars on a clob that I read somewhere that it is supported in 10g and apex 4.1 but with the same result.

    I think that you have been making life difficult for yourself. Everything that seems to involve more (ineffective) writing code as necessary. Everything you need is built into 10g (it seems that you could use the obsolete references?)

    I hope I could explain the question a bit better now and would appreciate it if you had a starting point for me.

    Should have what you need in the above examples.

  • Logo JPG of trace to a single line vector?

    Hello

    I have about 20 different company logo in color, and the original file is a jpeg. I have converted all sucesfully color vectors, however, I now want to convert all vectors of the single line.

    I downloaded an image of what image I have (in color), and the other black outlines are the result I want to achieve.

    I played a bit with vectorization, but I do not see how to get fair 'contours' or to change the type of line.

    Manual tracing is not really an option because there is not a lot of logos and they all vary in style and complexity.

    Thank youLogo.png

    Expand the vectorization, and then apply the stroke and fill you need.

    Take a look at sites like brandoftheworld.com to get the best quality of the vectors.

    But normally you should get your customer logo. If you use their logo without permission, you could get into trouble.

  • All dimension values must be single line values

    Hi all

    I have a dimension long_description attribute mapped to a column of text that contains a character "/ n". When I try to load dimension I get following error.


    An error occurred on the server
    Class of error: failure of the Express
    Server error descriptions:
    INI: error creating a generic Manager definition to < BuildProcess > TxsOqConnection::generic
    INI: XOQ-01600: OLAP DML error "ORA-34052: all the dimension values must be single line values." while executing DML 'SYS. AWXML! R11_COMPILE_ATTRIBUTES('TEST.) DIMENSION') ', generic for TxsOqStdFormCommand::execute '.

    If I delete the mapping between my column of text in the description attribute long size loads very well.

    It was happening because my text column contains several lines? text seems valid for reporting purposes (I mean having several lines)

    Thank you
    Dietsch.

    Analytic workspace dimensions do not support dimension members that contain new lines. This assumption is so integrated in language OLAP DML that it is difficult to see how it could ever be changed. Therefore, you cannot map a level (or hierarchy) key to a column that contains values to the new lines. But in your case you map an attribute, not a level key, so the error message is confusing. The problem is that your long description attribute is "indexed", which means that it is implemented using a DIMENSION and a RELATIONSHIP rather than a VARIABLE. To illustrate, I created a dimension named TEST with two levels, A and B, and one attribute, LONG_DESCRIPTION. The page of an attribute in AWM has two check boxes 'Create columns in views level attribute' and 'Index' that control how the attribute is being implemented.

    This is what is created in the AW if both are false.

    ->listnames like '%TEST%LONG%'
       1 VARIABLE
       ---------------------
       TEST_LONG_DESCRIPTION
    

    This is what is created if "Index" is checked.

    ->listnames like '%TEST%LONG%'
       1 DIMENSION                    1 VARIABLE
       ----------------------------   ----------------------------
       TEST_LONG_DESCRIPTION_INDEX    TEST_LONG_DESCRIPTION_STORED
    
       1 RELATION
       ----------------------------
       TEST_LONG_DESCRIPTION
    

    And here's what you get if you check "create columns for the level attribute of views."

    ->listnames like 'TEST%LONG%'
       2 DIMENSIONs                     3 VARIABLEs
       ------------------------------   ------------------------------
       TEST_A_LONG_DESCRIPTION_INDEX    TEST_A_LONG_DESCRIPTION_STORED
       TEST_B_LONG_DESCRIPTION_INDEX    TEST_B_LONG_DESCRIPTION_STORED
                                        TEST_LONG_DESCRIPTION
    
       6 RELATIONs
       ------------------------------
       TEST_A_LONG_DESCRIPTION
       TEST_A_LONG_DESCRIPTION_HIER_U
       TEST_A_LONG_DESCRIPTION_UNIQUE
       TEST_B_LONG_DESCRIPTION
       TEST_B_LONG_DESCRIPTION_HIER_U
       TEST_B_LONG_DESCRIPTION_UNIQUE
    

    The thing to note is that if you check one of these boxes, then your attribute is implemented by using a dimension of AW and AW relationship. This gives a good performance, but imposes the limitation that your attribute values cannot contain newlines. The obvious solution is to uncheck both boxes so that your attribute is implemented as a VARIABLE. If you absolutely have indexed attributes, so I guess you can use the SQL REPLACE function to change the new lines in escaped to the mapping layer

    GLOBAL > select REPLACE('a
      2  b', '
      3  ',
      4  '\n')
      5* from dual
    /
    
    REPL
    ----
    a\nb
    
    GLOBAL > select REPLACE('a\nb', '\n','
      2  ')
      3* from dual
    /
    
    REP
    ---
    a
    b
    

    You must convert the escape sequence in a new line endangered.

  • single line autoSize

    Although surprising, but I must confess that i's really confusing for me to link all of these span and paragraphs to each other in my mind and most of the time I mix everything...

    In short, what I seem not to be find nowhere not even in documentations... or maybe I am looking for it in a bad place?

    All I want to do is to create a single line of textFlow and its width will be adjusted automatically based on the text put into it... I remember the old days and how easilly I used to handle this with the TextField!

    In addition, it would be great how to a textFlow multiline and autoSize too...? I know that my mind has always the construction form TextField... I hope that I can digest this TextLayout framework

    Best way to avoid the large size is to associate as a RSL. In this way it downloads just once. The Flex SDK kit is configured this way now, you can find examples of how do.

  • Single line of bold in datagrid

    It seems like I'm burying language abstract of Flex, but I'll try to find a way to make just a single line in a datagrid "BOLD". I know that the index of the line, it's easy.

    Is there a quick and dirty to do this?

    I appreciate any help in advance.

    Thank you!
    -Jacob

    How to 'quick and dirty '. Hmm. I am not afraid. You need an itemRenderer. And since you want all columns to have bold text, you will need to use the same rendering engine for each column. I recommend you to write a custom converter (.) MXML file).

    First of all, how do you know which line you want bold? Is it all just because you want to 4th place or have anything to do with the data? Usually, there is something on the data that you use to determine the visual appearance.

    Let's say in the data, when the amount is > 1000, you want boldfacing.

    Here's an itemRenderer to drop-in for one of the columns. You can repeat this step in the same file or create a custom converter.







  • How to set up single-line message headers?

    Previously, in the message display area, I had configured Thunderbird so that a message appears that the subject of the message in the message header section just above the body of the message. But I just upgraded to to 38.1.0 and now I have in reserve, [address], in the header box, although I've seen-> headers-> Normal (Compact) set.

    Please tell us how to get back to the option just to display the subject line. Real estate vertical display is much too precious to not having the capacity of the old view of a single line.

    Thank you
    [email protected]

    Install this add on.

    https://addons.Mozilla.org/en-us/Thunderbird/addon/compactheader/?src=HP-DL-featured

    The normal headers view removes the routing information only. It has nothing to do with what you are trying to accomplish.

  • When you type an e-mail, when I go to the next line, it jumps two lines instead of a single line. How can I fix it?

    I was typing an email and when I would go to the next line, it will skip two lines instead of a single line. How can I fix the problem?

    I'm not sure that you understand the problem. Could include a screenshot of it just after what happens?

    If you need help to create a screenshot, please see How to make a screenshot of my problem?

    Once you have done so, attach the file to screen shot saved to your post on the forum by clicking on the button Browse... under the box to post your reply . This will help us to visualize the problem.

    Thank you!

  • How can I add a spell checker this spelling laurys for a single line?

    I want a spell checker that checks my spelling for just a single line. For example, Ebay feedback is only one line long then how I spell check my typed in response? Thank you.

    You can do this by changing a hidden preference

    1. Type of topic: config in the address bar and press on enter, accept the message of warning that is displayed and you will be taken to a list of preferences
    2. In the upper search box, type out, will you limit the results to a small number of preferences
    3. Double-click the layout.spellcheckDefault preference and change its value to 2, which will allow the spell on simple lines

    See http://kb.mozillazine.org/Layout.spellcheckDefault for more details about this preference

Maybe you are looking for