Split string with regular model and expression(10g)

Hello world

Could I ask you, your opinion on this query (tuning)?


SQL * more: version 10.1.0.4.2 - Production on Tue October 21 10:40:07 2008

Copyright (c) 1982, 2005, Oracle. All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64 bit Production
With partitioning, OLAP and Data Mining options


SQL > select * from test_1;

NR X
---------- -----------------------------------------------------------------------------------------
1 F01
2 F02
3 D01:D02
4 F03:G45:D34
5 G56:Y45:U89:E56


SQL > SELECT NR, STRING
2 FROM TEST_1
MODEL 3
4 RETURN THE UPDATED LINES
5 PARTITION BY (NR)
6 DIMENSION (POSITION 0)
MEASURES 7 (CAST (' ' AS VARCHAR2 (50)) AS STRING, X, LENGTH (REGEXP_REPLACE (X,'[^:] + ",")) + 1 NB_MOT)
8 RULES
9 (STRING [FOR POSITION 1 TO INCREMENT 1 NVL(NB_MOT[0],1)] =
10 CASES WHERE NB_MOT [0] IS NULL THEN X [0] ELSE REGEXP_SUBSTR (X [0], "[^:] +', 1, CV (POSITION)") END)
11 ORDER BY 1;

STRING OF NR
---------- --------------------------------------------------
1 F01
2 F02
3 D01
3 D02
4 G45
4 F03
4 D34
5 G56
5 Y45
U89 5
5 E56

11 row (s) selected (s).


Execution plan
----------------------------------------------------------
0 SELECT STATEMENT Optimizer = ALL_ROWS (cost = 5 card = 5 bytes = 325
)

1 0 SORTING (ORDER BY) (cost = 5 card = 5 bytes = 325)
2 1 MODEL (ORDERED) SQL (cost = 5 card = 5 bytes = 325)
3 2 TABLE ACCESS (FULL) 'TEST_1' (TABLE) (cost = 4 = 5 bytes map = 325)



Kind regards
Salim.

Why?

How long takes now?

Can you explain?

Kind regards.

LOULOU.

Tags: Database

Similar Questions

  • How to capture the data of type string with agent script and then compared to an alarm

    Hello...

    How to capture the string with agent of script data and then create a rule to compare the string data to generate alarm?

    Thank you!...

    Start here:

    http://en.community.Dell.com/TechCenter/performance-monitoring/Foglight-administrators/w/Admins-wiki/6155.custom-script-agent-1-leverage-an-existing-monitoring-script-to-push-data-into-Foglight

  • Split tunnel with ASA 5510 and PIX506.

    Hello

    I have the production between Asa 5510 (main office) and Pix 506 VPN tunnel. It is configured so that all traffic is encrypted and moves through the tunnel. This includes remote users behind Pix Internet traffic. I would like to use split tunnel and direct Internet traffic hitting the web directly from Pix instead of going through the tunnel. How can I do this safely? Please see current config Pix below:

    :
    6.3 (5) PIX version
    interface ethernet0 car
    interface ethernet1 10baset
    ethernet0 nameif outside security0
    nameif ethernet1 inside the security100

    clock timezone EDT - 5
    clock to summer time EDT recurring 2 Sun Mar 2:00 1 Sun Nov 02:00
    No fixup protocol dns
    fixup protocol ftp 21
    fixup protocol h323 h225 1720
    fixup protocol h323 ras 1718-1719
    fixup protocol http 80
    fixup protocol they 389
    fixup protocol rsh 514
    fixup protocol rtsp 554
    fixup protocol sip 5060
    No fixup protocol sip udp 5060
    fixup protocol 2000 skinny
    fixup protocol smtp 25
    fixup protocol sqlnet 1521
    no correction protocol tftp 69
    names of
    allow VPN 192.x.x.x 255.255.255.0 ip access list one
    LocalNet ip access list allow a whole
    pager lines 20
    opening of session
    monitor debug logging
    logging warnings put in buffered memory
    logging trap warnings
    Outside 1500 MTU
    Within 1500 MTU
    IP address outside 24.x.x.x 255.255.255.0
    IP address inside192.x.x.x 255.255.255.0
    IP audit name Outside_Attack attack action alarm down reset
    IP audit name Outside_Recon info action alarm down reset
    interface IP outside the Outside_Recon check
    interface IP outside the Outside_Attack check
    alarm action IP verification of information
    reset the IP audit attack alarm drop action
    disable signing verification IP 2000
    disable signing verification IP 2001
    disable signing verification IP 2004
    disable signing verification IP 2005
    disable signing verification IP 2150
    PDM logging 100 information
    history of PDM activate
    ARP timeout 14400
    Global 1 interface (outside)
    NAT (inside) 0 access-list LocalNet
    Route outside 0.0.0.0 0.0.0.0 24.x.x.x
    Timeout xlate 03:00
    Timeout conn 01:00 half-closed 0:10:00 udp 0: CPP 02:00 0:10:00 01:00 h225
    H323 timeout 0:05:00 mgcp 0: sip from 05:00 0:30:00 sip_media 0:02:00
    Sip timeout - disconnect 0:02:00 prompt Protocol sip-0: 03:00
    Timeout, uauth 0:05:00 absolute
    GANYMEDE + Protocol Ganymede + AAA-server
    AAA-server GANYMEDE + 3 max-failed-attempts
    AAA-server GANYMEDE + deadtime 10
    RADIUS Protocol RADIUS AAA server
    AAA-server RADIUS 3 max-failed-attempts
    AAA-RADIUS deadtime 10 Server
    AAA-server local LOCAL Protocol
    Enable http server
    enable floodguard
    Permitted connection ipsec sysopt
    Crypto ipsec transform-set esp-3des esp-md5-hmac AMC
    map UrgentCare 10 ipsec-isakmp crypto
    card crypto UrgentCare 10 corresponds to the VPN address
    card crypto UrgentCare 10 set counterpart x.x.x.x
    card crypto UrgentCare 10 value transform-set AMC
    UrgentCare interface card crypto outside
    ISAKMP allows outside
    ISAKMP key * address x.x.x.x 255.255.255.255 netmask
    ISAKMP identity address
    part of pre authentication ISAKMP policy 20
    ISAKMP policy 20 3des encryption
    ISAKMP policy 20 md5 hash
    20 2 ISAKMP policy group
    ISAKMP duration strategy of life 20 86400
    SSH timeout 15
    Console timeout 0
    Terminal width 80
    Cryptochecksum:9701c306b05151471c437f29695ffdbd
    : end

    I would do something by changing the acl that applies to your crypto card. You want to know what you want to support above the tunnel and then deny other networks.

    If you have:

    192.168.3.0/24

    192.168.4.0/24

    10.10.10.0/24

    172.16.0.0/16

    Do something like:

    VPN access list allow 192.x.x.x ip 255.255.255.0 192.168.3.0 255.255.255.0

    VPN access list allow 192.x.x.x ip 255.255.255.0 192.168.4.0 255.255.255.0

    VPN access list allow 192.x.x.x ip 255.255.255.0 10.10.10.0 255.255.255.0

    VPN access list allow 192.x.x.x 255.255.255.0 ip 172.16.0.0 255.255.0.0

    Then when the traffic is destined for something other than these networks, it will go not to the ISP instead of the tunnel.

    HTH,

    John

  • A question about the comparison with REGEXP_LIKE models and [[: alpha:]]

    Hi all

    I created the following table:
    CREATE TABLE names(
    name VARCHAR2(10));
    
    INSERT INTO names(name) VALUES('dariyoosh');
    INSERT INTO names(name) VALUES('John');
    INSERT INTO names(name) VALUES('Peter');
    INSERT INTO names(name) VALUES('Frank');
    INSERT INTO names(name) VALUES('Bernard250');
    INSERT INTO names(name) VALUES('Jack12');
    Now, I want to write a query that returns the names that consist only of letters. So I wrote:
    SELECT name
    FROM names
    WHERE REGEXP_LIKE(name, '[[:alpha:]]+');
    However, this also returns alphanumeric names. I don't understand why, because I know (please, correct me if I'm wrong)
    [[:alpha:]]
    refers only to letters, no?

    You kindly could guide me where I made a mistake in my query?

    Thanks in advance
    :)

    Hello

    Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
    Connected as hr
    
    SQL>
    SQL> SELECT NAME
      2    FROM names
      3   WHERE REGEXP_LIKE(NAME,
      4                     '^[[:alpha:]]+$');
    
    NAME
    ----------
    dariyoosh
    John
    Peter
    Frank
    
    SQL> 
    

    Kind regards

  • How to split string separated by commas and pass to the clause of the select statement

    Referring to article How to divide string separated by commas, then pass to clause of a select statement, tquery that there the following plan:

    Query1:

    select * from emp where ename in (
        select regexp_substr('SMITH,ALLEN,WARD,JONES','[^,]+', 1, level) from dual
        connect by regexp_substr('SMITH,ALLEN,WARD,JONES', '[^,]+', 1, level) is not null );
    

    Base1:

    Plan hash value: 4242290184
    
    
    --------------------------------------------------------------------------------------------
    | Id  | Operation                       | Name     | Rows  | Bytes | Cost (%CPU)| Time     |
    --------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT                |          |     1 |   133 |     7  (29)| 00:00:01 |
    |*  1 |  HASH JOIN                      |          |     1 |   133 |     7  (29)| 00:00:01 |
    |   2 |   VIEW                          | VW_NSO_1 |     1 |    46 |     3  (34)| 00:00:01 |
    |   3 |    HASH UNIQUE                  |          |     1 |       |     3  (34)| 00:00:01 |
    |*  4 |     CONNECT BY WITHOUT FILTERING|          |       |       |            |          |
    |   5 |      FAST DUAL                  |          |     1 |       |     2   (0)| 00:00:01 |
    |   6 |   TABLE ACCESS FULL             | EMP      |    14 |  1218 |     3   (0)| 00:00:01 |
    --------------------------------------------------------------------------------------------
    
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
    
       1 - access("ENAME"="$nso_col_1")
       4 - filter( REGEXP_SUBSTR ('SMITH,ALLEN,WARD,JONES','[^,]+',1,LEVEL) IS NOT NULL)
    

    However, the following query generates the plan I want:

    Query2:

    select * from emp where ename in ('SMITH','ALLEN','WARD','JONES');
    

    Plan2:

    Plan hash value: 3956160932
    
    
    --------------------------------------------------------------------------
    | Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    --------------------------------------------------------------------------
    |   0 | SELECT STATEMENT  |      |     4 |   348 |     3   (0)| 00:00:01 |
    |*  1 |  TABLE ACCESS FULL| EMP  |     4 |   348 |     3   (0)| 00:00:01 |
    --------------------------------------------------------------------------
    
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
    
       1 - filter("ENAME"='ALLEN' OR "ENAME"='JONES' OR "ENAME"='SMITH' OR
                  "ENAME"='WARD')
    

    Can I change the query1 query for plan2?

    As Juliet was mentioned in the first SQL that you generate from the ENAME list that you must pass in the IN clause when executing. But in the second SQL, it passed as a static value. So first SQL must do more work. So you see a different execution plan.

    But this is a work around to get what you are looking for. But I can't say it's a foolproof method. But anyway here you go.

    SQL > var ename_list varchar2 (100)
    SQL > exec: ename_list: = 'SMITH, ALLEN, WARD, JONES ';

    PL/SQL procedure successfully completed.

    SQL > select *.
    2 of PEM
    where the 3 «,» | : ename_list | ',' like '%', | Ename | ',%';

    EMPNO, ENAME, JOB HIREDATE DEPTNO ID COM SAL MGR
    ---------- ------ --------- ---------- --------- ---------- ---------- ---------- ----------
    7369 SMITH COMMITTED 7902 2975 2 APRIL 81 0 20
    7499 ALLEN 7698 1600 20 FEBRUARY SALESMAN 81 300 30
    7521 WARD 7698 1250 22 FEBRUARY SALESMAN 81 500 30
    7566 JONES MANAGER 7839 2975 2 APRIL 81 0 20

    SQL > select * from table (dbms_xplan.display_cursor);

    PLAN_TABLE_OUTPUT
    -------------------------------------------------------------------------------------------------------
    SQL_ID, 848zhvbvgf7d6, number of children 0
    -------------------------------------
    Select * from emp where «,» | : ename_list | ',' like '%', | Ename
    || ',%'

    Hash value of plan: 2872589290

    --------------------------------------------------------------------------
    | ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |
    --------------------------------------------------------------------------
    |   0 | SELECT STATEMENT |      |       |       |     2 (100) |          |
    |*  1 |  TABLE ACCESS FULL | EMP |     1.    38.     2 (0) | 00:00:01 |
    --------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):
    ---------------------------------------------------

    1 - filter(','||:ENAME_LIST||',' LIKE '%,'||") ENAME "|", %')

    19 selected lines.

    SQL >

  • Need help with regular expressions

    Hi all

    I need your help, because I have no ideas more...

    I have the following problem: in the column of the database table, I have the string with the names of files already uploaded to the database. For example: + File1_V01.txt +, + File1_v02.txt +, + File1_01_v01.txt +, etc. The string _vxx * + or _Vxx * + (non-case sensitive) represents the version of the file.

    Now the problem: I'll upload the file with the name + File1_v02.txt + (already exists in the table).
    If the file name already exists in the table the pl/sql function should get the name of the file with the following version number. In my case it takes + File1_v03.txt +.

    Is it possible to do this using SELECT with regular expressions?

    Best regards and thanks!
    with t as (
      select 'File_V05.txt' fn from dual union all
      select 'File_V04.txt' fn from dual union all
      select 'File2_v03.doc' fn from dual union all
      select 'File2_v115.doc' fn from dual union all
      select 'File2_v15.doc' fn from dual union all
      select 'File1_v03.doc' fn from dual union all
      select 'File1_v115.doc' fn from dual union all
      select 'File1_v999.doc' fn from dual union all
      select 'File2.doc' fn from dual union all
      select 'File2_v05.doc' fn from dual union all
      select 'File1_v01.txt' fn from dual union all
      select 'File1_v02.txt' fn from dual union all
      select 'File1_v1.txt' fn from dual union all
      select 'File1_v1.doc' fn from dual union all
      select 'File1_v2.txt' fn from dual union all
      select 'File2_v01.doc' fn from dual union all
      select 'File2_v02.doc' fn from dual union all
      select 'File1_ABC_v01_DEF.docx' fn from dual union all
      select 'File1_ABC_V02_ABC.docx' fn from dual union all
      select 'File1_ABC_v01_12_04_17.docx' fn from dual union all
      select 'ABC_V1_QWERT.pdf' fn from dual
    )
    
    select fn,
    case when fn!=fn_new then
     last_value(fn_new)
     over(partition by regexp_replace(upper(fn),'V[[:digit:]]+','') --(.*?V0*)([1-9]+)(\..*?)$
     order by nv
     rows between unbounded preceding and unbounded following
     )
    else fn
    end fn_new
    from (
        select
        case when v-1 <= 0 then fn
        else
               regexp_replace (fn,
                        '(_v|_V)(\d*)',
                        case
                        when length(substr(fn,v+1,p-v-1)+1) > (p-v-1)
                        then '\1'||to_char(substr(fn,v+1,p-v-1)+1)
                        else '\1'||lpad(substr(fn,v+1,p-v-1)+1,p- v-1,0)
                        end
               )
        end fn_new
        ,fn
        ,case when v-1 <= 0 then -1
         else
            substr(fn,v+1,p- v-1)+1
         end nv
        from (
            select fn, regexp_instr(upper(fn),'_V[[:digit:]]+',1,1,1) p, instr(upper(fn),'_V')+1 v from t
        )
    )
    order by fn
    
    FN     FN_NEW
    ABC_V1_QWERT.pdf     ABC_V2_QWERT.pdf
    File_V04.txt     File_V06.txt
    File_V05.txt     File_V06.txt
    File1_ABC_v01_DEF.docx     File1_ABC_v02_DEF.docx
    File1_ABC_v01_12_04_17.docx     File1_ABC_v02_12_04_17.docx
    File1_ABC_V02_ABC.docx     File1_ABC_V03_ABC.docx
    File1_v01.txt     File1_v3.txt
    File1_v02.txt     File1_v3.txt
    File1_v03.doc     File1_v1000.doc
    File1_v1.doc     File1_v1000.doc
    File1_v1.txt     File1_v3.txt
    File1_v115.doc     File1_v1000.doc
    File1_v2.txt     File1_v3.txt
    File1_v999.doc     File1_v1000.doc
    File2.doc     File2.doc
    File2_v01.doc     File2_v116.doc
    File2_v02.doc     File2_v116.doc
    File2_v03.doc     File2_v116.doc
    File2_v05.doc     File2_v116.doc
    File2_v115.doc     File2_v116.doc
    File2_v15.doc     File2_v116.doc
    
  • JTable with custom column model and model table does not display the table header

    Hello

    I create a JTable with a custom table model and a custom column template. However the table header is not displayed (Yes, it's in a get). I have narrowed the problem down in one compilable example:

    Thanks for your help.
    import javax.swing.*;
    import javax.swing.table.*;
    
    public class Test1 extends JFrame
    {
         public static void main(String args[])
         {
              JTable table;
              TableColumnModel colModel=createTestColumnModel();
              TestTableModel tableModel=new TestTableModel();
              Test1 frame=new Test1();
    
              table=new JTable(tableModel, colModel);
              frame.getContentPane().add(new JScrollPane(table));
    
              frame.setSize(200,200);
              frame.setVisible(true);
         }
    
         private static DefaultTableColumnModel createTestColumnModel()
         {
              DefaultTableColumnModel columnModel=new DefaultTableColumnModel();
              columnModel.addColumn(new TableColumn(0));
    
              return columnModel;
         }
    
         static class TestTableModel extends AbstractTableModel
         {
              public int getColumnCount()
              {
                   return 1;
              }
    
              public Class<?> getColumnClass(int columnIndex)
              {
                   return String.class;
              }
    
              public String getColumnName(int column)
              {
                   return "col";
              }
    
              public int getRowCount()
              {
                   return 1;
              }
    
              public Object getValueAt(int row, int col)
              {
                   return "test";
              }
    
              public void setValueAt(Object aValue, int rowIndex, int columnIndex)
              {
              }
         }
    }
    Published by: 802416 on October 14, 2010 04:29
    added
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

    See http://download.oracle.com/javase/6/docs/api/javax/swing/table/TableColumn.html#setHeaderValue (java.lang.Object)
    When the TableColumn is created, the default headerValue is null
    So the header ends up rendered empty label (probably of size 0 if the JTable calculates its size of header based on the size of the default rendering tool).

    It worked:

         private static DefaultTableColumnModel createTestColumnModel()
         {
              DefaultTableColumnModel columnModel=new DefaultTableColumnModel();
                    TableColumn col = new TableColumn(0);
                    col.setHeaderValue("Header Title");
              columnModel.addColumn(col);
                    return columnModel;
         }
    

    Published by: jduprez on October 14, 2010 14:09
    Beaten by a fraction of a second!

    Published by: jduprez on October 14, 2010 14:10
    OK, by a split of 17 minutes, specifically: o)

  • Can I plug two Airport Express units with ethernet cord and have a third Airport Express Terminal receive airplay music wirelesslly? In other words, can I combine a Wi - Fi network and roaming?

    I have an undesirable on the 1st floor, connected to the cable modem Ethernet event. I want to connect that AE to an another AE on 2nd floor with ethernet cable AND have a 3rd AE on the 1st floor to receive music through AirPlay wireless. I thought that linking the two first AEs with ethernet would improve the performance of web site on my iMac desktop, which is on the 2nd floor and connects to the 2nd floor AE via wifi. The EI the first two are newer model (MC414LL/A); the 3rd AE is old model (MB321LL/A) and is connected to a stereo Bose with a mini-jack to RCA cable double cord. I tried to set up this network using AirPort Utility, but have had no success. I don't know if it is possible to do what I want to do; and if this is the case, I don't know how to set the various parameters for each AE using AirPort Utility. I've temporarily implemented a purely wireless network; Do not connect DO NOT the two AEs with ethernet and everything works. I would enjoy my plan as above, or if I hold with purely network wireless. Any help would be greatly appreciated.

    Using ethernet network roaming between the two floors is a much better idea than anything wireless.

    The installation should be automagical if you start with the two AE plugged in by ethernet.

    It must be configured in standard roaming with identical names wireless.

    If you have any questions... Please, just after the airport utility screenshots of the configuration... but

    An express train is probably the router? You must confirm this.

    The second express is so configured in bridge... It's on the network tab, disable the bridge mode.

    Without thread is set to create a wireless network and simply use the same name and the same password as the other Express.

    As it should be automagical when you WAN on the second AE plugged into the LAN on the first AE.

    Wireless and then extend to will also be installed enough well automatically even if sometimes it works better in a client that extend wireless mode.

    See the Client mode.

    AirPort Express: How to join an existing client mode - Apple Support Wi - Fi network

  • HELP WITH REGULAR EXPRESSIONS

    Hello
    I'm just experimenting with regular expressions

    My information in table are as shown below
    TABLE NAME: -  EMP_TEST
    
    STRUCTURE WITH DATA
    
      X_NAME
    ---------------------
    12456com
    ab1245com
    AXM4554.com
    Now, I pulled the following query to find the rows that have 1
    select *
    from emp_test
    where regexp_like (x_name,'[1]')
    
    RESULT AS EXPECTED : -
    
    
      X_NAME
    ---------------------
    12456com
    ab1245com
    Now, I want to do a query that will give me tose lines that do not have 1

    Initially I have run the following query
    select *
    from emp_test
    where regexp_like (x_name,'[^1]')
    
    RESULT NOT AS EXPECTED : -
    
      X_NAME
    ---------------------
    12456com
    ab1245com
    AXM4554.com
    After a bit of searching on Google I found an application that works as expectd
    select *
    from emp_test
    where regexp_like (x_name,'^[^1]*$')
    
    RESULT AS EXPECTED : -
    
      X_NAME
    ---------------------
    AXM4554.com
    Where my basic question is that all seeking a 1 in a row we do not put the beginning ^ end $ and so on and the
    Works of query.
    So why do [^ 1] does not work as shown, while excluding an amd why is ^ [^ 1] * $ necessary while excluding a

    Hello

    Elessar wrote:
    So why do [^ 1] does not work as described

    Because regexp_like(str,'[^1]') means: search str who have at least one character that is not 1.
    When regexp_like(str,'^[^1]*$') means: search str done characters that are not 1 start (^) at the end ($)

  • Changeparticular the characters of a string using regular expressions...

    Hi all
    I'm writing a function using the function of expression regular oracles REGEXP_REPLACE but I could not succeed until now.

    My problem is as follows, I have a text in a column say "Scott Sdfdfs Sdfd" I want to replace all the s and S with X characters and make the text looks like "XdfXdf XdfdfX Xdfd".

    It is possible by using regular expressions in oracle?
    Can you give me some clue?

    Thank you
    select
      regexp_replace('sdfsdf Sdfdfs Sdfd',
                     's|S', 'X') Replaced
    from dual;
    
    REPLACED
    ------------------
    XdfXdf XdfdfX Xdfd 
    
  • Beginner problem: using the model and cannot see in design or split

    I put in place a model, he opened and saved as a html file. I don't see anything except in code view. Split and design view just shows a grey area with yellow outline and yellow tab with the words, "template: newbasic1". "newbasic" is the name of the template that I created.

    I was able to do all my work in code view and it checks all the as valid and works. But I would like to be able to work in split view. I have no idea what I did to create this problem.

    You can see the problem pages (all pages in the site have this problem) to:

    http://mrc3.com

    Any suggestions much appreciated.

    
    
    
    

    It is completely invalid code and is the reason why you don't see what in DW Design view - simply may not know what to do with your markup.

    1. you can't have an editable region in thetag.  That's why DW will not allow you to do this via the user interface.

    2. you do not close the tag body the way you have.  It is closed here-



  • RTF model. body with two loops and custimized footer

    Hello.
    I have a rtf model with a body and a custom footer. The body has two loops. The first loop x cheques and the second for loop for x elements of each control.
    The footer must be individually for each control. Is there a possibility of variable access from the first loop of the body in the foot?

    the structure of my rtf file:_
    header: vacuum
    body:
    <? for-each: Scheck? >
    An asfdfadsfasdf: <? One? >



    Article price
    <?-foreach: point? > <? name? > <? price? >
    <? end foreach? >

    Summe: <? sum (price)? >

    <? model: footer? >
    <? One? > does not work*.
    <? end model? >


    <? split-of-page-break:? > <? end foreach? >



    footer:
    empty space
    empty space
    empty space
    empty space
    empty space
    empty space
    empty space
    empty space
    empty space
    <? Call: Footer? >






    an excerpt from my xml file:_
    < root >
    < Scheck >
    < item > < name > Kunststoffe < / name > < price > 22000 < / price > < / item >
    < item > < name > Metalle < / name > < price > 100000 < / price > < / item >
    < item > < name > Holz < / name > < price > 6000 < / price > < / item >
    < item > < name > paper < / name > < price > 100 < / price > < / item >
    < item > < name > Kunststoffe < / name > < price > 22000 < / price > < / item >
    < item > < name > Metalle < / name > < price > 100000 < / price > < / item >
    < item > < name > Holz < / name > < price > 6000 < / price > < / item >
    < item > < name > paper < / name > < price > 100 < / price > < / item >
    < item > < name > Kunststoffe < / name > < price > 22000 < / price > < / item >
    < item > < name > Metalle < / name > < price > 100000 < / price > < / item >
    < item > < name > Holz < / name > < price > 6000 < / price > < / item >
    < item > < name > paper < / name > < price > 100 < / price > < / item >
    < item > < name > Kunststoffe < / name > < price > 22000 < / price > < / item >
    < item > < name > Metalle < / name > < price > 100000 < / price > < / item >
    < item > < name > Holz < / name > < price > 6000 < / price > < / item >
    < item > < name > paper < / name > < price > 100 < / price > < / item >
    < item > < name > Kunststoffe < / name > < price > 22000 < / price > < / item >
    < item > < name > Metalle < / name > < price > 100000 < / price > < / item >
    < item > < name > Holz < / name > < price > 6000 < / price > < / item >
    < item > < name > paper < / name > < price > 100 < / price > < / item >
    < item > < name > Kunststoffe < / name > < price > 22000 < / price > < / item >
    < item > < name > Metalle < / name > < price > 100000 < / price > < / item >
    < item > < name > Holz < / name > < price > 6000 < / price > < / item >
    < item > < name > paper < / name > < price > 100 < / price > < / item >
    < item > < name > Kunststoffe < / name > < price > 22000 < / price > < / item >
    < item > < name > Metalle < / name > < price > 100000 < / price > < / item >
    < item > < name > Holz < / name > < price > 6000 < / price > < / item >
    < item > < name > paper < / name > < price > 100 < / price > < / item >
    < Payment > HUNDERTACHTUNDZWANZIGTAUSENDEINHUNDERT < / payment >
    < a > Firma1 < year >
    < / Scheck >
    < Scheck >
    < element > < name > end < / name > < price > 2000 < / price > < / item >
    < item > < name > Metalle < / name > < price > 10000 < / price > < / item >
    < item > < name > Holz < / name > < price > 600 < / price > < / item >
    < item > < name > paper < / name > < price > 10 < / price > < / item >
    < element > < name > end < / name > < price > 2000 < / price > < / item >


    Thank you for helping me!

    Edited by: user12052573 the 19.05.2010 02:00

    Hello

    change your main loop shape

    This will create a new page with a section break for each change in 'Scheck. You can remove your split sentence of page break.

    -Karine

  • Mask a number with regular expressions

    Hi @ll!

    Is it possible to hide a given number

    of "12345678" in "XXXX5678".
    or '987458' to 'XX7458 '.

    with Regular Expressions and without substr()? To display only the last four digits and the 'X' value for the rest. The size of the number is not always the same.

    Alex, I think the OP wanted the first 4 characters to hide ;)

    Something like that?

    select translate(substr('12345678',1,length('12345678')-4),'1234567890','XXXXXXXXXX')
                    || substr('12345678',length('12345678')-3)
              from dual
    /
    TRANSLAT
    --------
    XXXX5678
    

    More

    with test_data as
    (
    select '12345678' card_no from dual
    union all select '123456' from dual
    union all select '5678900' from dual
    ) -- End of test data
    select translate(substr(card_no,1,length(card_no)-4),'1234567890','XXXXXXXXXX') ||
              substr(card_no,length(card_no)-3)
        from test_data
    /
    
    TRANSLATE(SUBSTR
    ----------------
    XXXX5678
    XX3456
    XXX8900
    

    Arun-

  • I have the model of macbook air 2016 with i5 Professor and 8 GB ram... since it's the fastest ssd, but I have not seen all speeds up to now, I want to say is bcz I need to have usb 3.0 USB key or hard drive to see the speed of the ssd to usb 2.0 will work

    I have the model of macbook air 2016 with i5 Professor and 8 GB ram... since it's the fastest ssd, but I have not seen all speeds up to now, I want to say is bcz I need to have usb 3.0 USB key or hard drive to see the speed of the ssd to usb 2.0 will work

    What do you mean, your message is not clear.

  • Satellite P770 - model with i7 CPU and blu - ray?

    I've been watching the P770 I would be interested in a resolution higher above the P750. The only problem is that he says he will have a blu - ray player, but the option that is currently available is a DVD player.

    I know this is that just came out so maybe they will add some soon, what are your impressions? I would get the P770 if it came with processor i7 AND blu - ray. This option is i5 + DVD. :(

    Hey Buddy,

    I also checked the new series of satellites P on the official website of Toshiba. I think it will be great notebook series with more recent and powerful and ideal material for the new multimedia features like the blu - ray.

    I checked the specifications of different models P770 and I saw * Satellite P770 - 10 p * with Intel Core i7 and blu - ray disc!
    Here's the direct link:
    http://EU.computers.Toshiba-Europe.com/innovation/series/satellite-P770-series/1104195

    It also has the graphics card GeForce GT540M Wow, that is as powerful for games :)

Maybe you are looking for

  • When Mozilla going to stop the Support of Java Applet?

    Need to know the details about when Mozilla will stop the Support of Java Applet.As it has been removed from the other browser.

  • Can no longer drag columns to rearrange them in

    I used to be able to drag columns in my spreadsheet to reorganize, but now they come right back to where they were originally and the other columns do not move to make room as they did.  Advice or advice on what I might have accidentally changed?

  • No problem with the logout?

    I have iCloud lit work Mac and I want to put out to keep my personal business out of it. Are there problems with disconnection? I want to just make sure that it will not remove anything of my other devices. Thank you.

  • Impossible to install Win XP on Tecra S4 - No visible HDD

    Hello I need your help to install xp on tecra s4, I tried two sp2 & sp3 but no luck. the operating system cannot recognize the disk sata hard. Please it is urgent

  • speakers are not too strong

    I have a pavilion dv6, with operating system windows 7. My problem or the problem is that my computer's sound volume is not too loud. in others, it feels like it needs more amplification. When the volume is set to 50%, the speakers do not produce a l