Rows repeating themselves, without incrementing row count

Well, here's my problem. As the title says, some of my data's repeating itself. I first thought it might come from loops, but it quickly became obvious that it wasn't the case. It's especially strange since my table count doesn't take in consideration the repeated lines.
Here's the part of my code that interests us :
While Not rs.EOF
    package = New Package(cnn, CLng(rs.Fields("No_Package").Value))
    nbModules = nbModules + package.get_nb_modules
    dataset.item.AdditemRow("PACKAGE NO." & package.get_id)
    dataset.item.AdditemRow("Has " & package.get_nb_modules & " modules")
    dataset.item.AdditemRow("Date : " & package.get_date_creation)
    dataset.item.AdditemRow("Actual nb of rows : " & dataset.item.count)
    rs.MoveNext()
End While
It should get me something like this :
PACKAGE NO.X
Has X modules
Date : [some date]
Actual nb of rows : 3
[and so on]
But here's what I get :
PACKAGE NO.X
PACKAGE NO.X
Has X modules
Has X modules
Date : [some date]
Date : [some date]
Actual nb of rows : 3   [<-- odd]
[and so on]
If it's a known bug or issue, I'd really like to know how to solve it. In any case, I haven't modified any parameters regarding my fields, report or printer.
Thanks.
Edited by: carle_al on Apr 27, 2009 11:45 PM

Visual Studio 2005 (version 8.0).
Crystal Report v10 (with the label Business Object, used in the studio). Can't tell the patch level though.
Window application.
In designer and preview everything goes just fine, as with the header and footer fields. My only problem goes with the "body" (not sure it's the right name, I use a french version).
Not sure neither of what you mean by on the fly. Once the program starts, I fill my dataset and send my report to a report viewer for testing. I checked how it behave when printed directly and it ain't got any better.
Here's the part where I send it to the CRviewer :
cr.SetDataSource(dataset)
CRviewer.ReportSource = cr
Nothing fancy.
Thanks.

Similar Messages

  • Using Row Repeater - adding a remove row button

    I have an input field on my view for users to enter Project Numbers along with an Add Button.
    When the user enters a project number & clicks on the add button, I append that project to my row repeater. this is working fine.
    In my Context, I defined my row repeater as having 2 attributes: project_num and rem_row.
    I bound my row repeater to my context node. I wanted to use a Button element as my rem_row, so a user could click on the icon and I could remove that particular row.
    However, I can't bind the Button to the rem_row attribute of my context.
    is there a way to find out which row the user selects?

    what i've done is place a checkbox in the second field and evaluate that on the "on toggle" event. then delete the appropriate row.
    this works, but i'd really like an icon there instead of a checkbox and "Remove Row" text

  • How to display row to columns without using pivot keyword

    hi,
    could someone help me how to dispaly rows into columns without using pivot keyword and actuall my scenario is,iam having two tables with names and sample data is shown below
    ID PROJECT MID MINAME TASKID TASKNAME
    1     PROJ1     1     AA     100     PR1_TASK1
    1     PROJ1     3     CC     102     PR1_TASK3
    1     PROJ1     4     DD     103     PR1_TASK4
    1     PROJ1     5     EE     104     PR1_TASK5
    1     PROJ1     6     FF     105     PR1_TASK6
    2     PROJ2     5     EE     114     PR2_TASK1
    2     PROJ2     6     FF     115     PR2_TASK2
    2     PROJ2     7     GG     116     PR2_TASK3
    2     PROJ2     8     HH     117     PR2_TASK4
    2     PROJ2     9     JJ     118     PR2_TASK5
    2     PROJ2     10     KK     119     PR2_TASK6
    2     PROJ2     1     AA     120     PR2_TASK7
    The output should display project and count of tasks in particular milestone as shown below
    project AA BB CC DD EE FF GG HH JJ KK
    1 2 0 1 5 3 2 0 2 1 0
    2 1 2 0 2 1 0 2 4 3 1
    Thanks in advance ,
    vvr

    WITH t1 AS
    (SELECT 1 ID,
             'PROJ1' PROJECT,
             1 MID,
             'AA' MINAME,
             100 TASKID,
             'PR1_TASK1' TASKNAME
        FROM DUAL
      UNION
      SELECT 1, 'PROJ1', 3, 'CC', 102, 'PR1_TASK3'
        FROM DUAL
      UNION
      SELECT 1, 'PROJ1', 4, 'DD', 103, 'PR1_TASK4'
        FROM DUAL
      UNION
      SELECT 1, 'PROJ1', 5, 'EE', 104, 'PR1_TASK5'
        FROM DUAL
      UNION
      SELECT 1, 'PROJ1', 6, 'FF', 105, 'PR1_TASK6'
        FROM DUAL
      UNION
      SELECT 2, 'PROJ2', 5, 'EE', 114, 'PR2_TASK1'
        FROM DUAL
      UNION
      SELECT 2, 'PROJ2', 6, 'FF', 115, 'PR2_TASK2'
        FROM DUAL
      UNION
      SELECT 2, 'PROJ2', 7, 'GG', 116, 'PR2_TASK3'
        FROM DUAL
      UNION
      SELECT 2, 'PROJ2', 8, 'HH', 117, 'PR2_TASK4'
        FROM DUAL
      UNION
      SELECT 2, 'PROJ2', 9, 'JJ', 118, 'PR1_TASK5'
        FROM DUAL
      UNION
      SELECT 2, 'PROJ2', 10, 'KK', 119, 'PR1_TASK6'
        FROM DUAL
      UNION
      SELECT 2, 'PROJ2', 1, 'AA', 120, 'PR1_TASK7' FROM DUAL)
    SELECT id project,
           NVL((SELECT mid
                 FROM t1
                WHERE miname = 'AA'
                  AND id = t_out.id),
               0) AA,
           NVL((SELECT mid
                 FROM t1
                WHERE miname = 'BB'
                  AND id = t_out.id),
               0) BB,
           NVL((SELECT mid
                 FROM t1
                WHERE miname = 'CC'
                  AND id = t_out.id),
               0) CC,
           NVL((SELECT mid
                 FROM t1
                WHERE miname = 'DD'
                  AND id = t_out.id),
               0) DD,
           NVL((SELECT mid
                 FROM t1
                WHERE miname = 'EE'
                  AND id = t_out.id),
               0) EE,
           NVL((SELECT mid
                 FROM t1
                WHERE miname = 'FF'
                  AND id = t_out.id),
               0) FF,
           NVL((SELECT mid
                 FROM t1
                WHERE miname = 'GG'
                  AND id = t_out.id),
               0) GG,
           NVL((SELECT mid
                 FROM t1
                WHERE miname = 'HH'
                  AND id = t_out.id),
               0) HH,
           NVL((SELECT mid
                 FROM t1
                WHERE miname = 'JJ'
                  AND id = t_out.id),
               0) JJ,
           NVL((SELECT mid
                 FROM t1
                WHERE miname = 'KK'
                  AND id = t_out.id),
               0) KK
      FROM (SELECT DISTINCT id FROM t1) t_out
    PROJECT     AA     BB     CC     DD     EE     FF     GG     HH     JJ     KK
    1     1     0     3     4     5     6     0     0     0     0
    2     1     0     0     0     5     6     7     8     9     10As I understand, you want MID of MINAMEs displayed ? But output is not like yours.. What is exactly your requirements?

  • Adding 2 more rows to a select without inserting rows to base table

    hello all,
    i have a below simple select statement which is querying a table.
    select * from STUDY_SCHED_INTERVAL_TEMP
    where STUDY_KEY = 1063;
    but here is the situations. As you can see its returning 7 rows. But i need to add
    2 more rows..with everything else default value or what exist... except adding 2 more rows.
    i cannot insert into base table. I want my end results to increment by 2 days in
    measurement_date_Taken to 01-apr-09....so basically measurement_date_taken should
    end at study_end_Date...
    IS THAT EVEN POSSIBLE WITHOUT INSERTING ROWS INTO THE TABLE AND JUST PLAYIHY AROUND WITH
    THE SELECT STATEMENT??
    sorry if this is confusing...i am on 10.2.0.3
    Edited by: S2K on Aug 13, 2009 2:19 PM

    Well, I'm not sure if this query looks as good as my lawn, but seems to work anyway ;)
    I've used the 'simplified version', but the principle should work for your table to, S2K.
    As Frank already pointed out (and I stumbled upon it while clunging): you just select your already existing rows and union them with the 'missing records', you calculate the number of days you're 'missing' based on the study_end_date:
    MHO%xe> alter session set nls_date_language='AMERICAN';
    Sessie is gewijzigd.
    Verstreken: 00:00:00.01
    MHO%xe> with t as ( -- generating your data here, simplified by me due to cat and lawn
      2  select 1063 study_key
      3  ,      to_date('01-MAR-09', 'dd-mon-rr') phase_start_date
      4  ,      to_date('02-MAR-09', 'dd-mon-rr') measurement_date_taken
      5  ,      to_date('01-APR-09', 'dd-mon-rr') study_end_date
      6  from dual union all
      7  select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('04-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
      8  select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('09-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
      9  select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('14-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
    10  select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('19-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
    11  select 1063, to_date('22-MAR-09', 'dd-mon-rr') , to_date('23-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
    12  select 1063, to_date('22-MAR-09', 'dd-mon-rr') , to_date('30-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual
    13  ) -- actual query:
    14  select study_key
    15  ,      phase_start_date
    16  ,      measurement_date_taken
    17  ,      study_end_date
    18  from   t
    19  union all
    20  select study_key
    21  ,      phase_start_date
    22  ,      measurement_date_taken + level -- or rownum
    23  ,      study_end_date
    24  from ( select study_key
    25         ,      phase_start_date
    26         ,      measurement_date_taken
    27         ,      study_end_date
    28         ,      add_up
    29         from (
    30                select study_key
    31                ,      phase_start_date
    32                ,      measurement_date_taken
    33                ,      study_end_date
    34                ,      study_end_date - max(measurement_date_taken) over (partition by study_key
    35                                                                          order by measurement_date_taken ) add_up
    36                ,      lead(measurement_date_taken) over (partition by study_key
    37                                                          order by measurement_date_taken ) last_rec
    38                from   t
    39              )
    40         where last_rec is null
    41       )
    42  where rownum <= add_up
    43  connect by level <= add_up;
    STUDY_KEY PHASE_START_DATE    MEASUREMENT_DATE_TA STUDY_END_DATE
          1063 01-03-2009 00:00:00 02-03-2009 00:00:00 01-04-2009 00:00:00
          1063 03-03-2009 00:00:00 04-03-2009 00:00:00 01-04-2009 00:00:00
          1063 03-03-2009 00:00:00 09-03-2009 00:00:00 01-04-2009 00:00:00
          1063 03-03-2009 00:00:00 14-03-2009 00:00:00 01-04-2009 00:00:00
          1063 03-03-2009 00:00:00 19-03-2009 00:00:00 01-04-2009 00:00:00
          1063 22-03-2009 00:00:00 23-03-2009 00:00:00 01-04-2009 00:00:00
          1063 22-03-2009 00:00:00 30-03-2009 00:00:00 01-04-2009 00:00:00
          1063 22-03-2009 00:00:00 31-03-2009 00:00:00 01-04-2009 00:00:00
          1063 22-03-2009 00:00:00 01-04-2009 00:00:00 01-04-2009 00:00:00
    9 rijen zijn geselecteerd.If there's a simpler way (in SQL), I hope others will join and share their example/ideas/thoughts.
    I have a feeling that this is using more resources than needed.
    But I've got to cut the daisies first now, they interfere my 'lawn-green-ess' ;)

  • RTF Header Rows Repeat in eBus BI Publisher (5.6.3)

    Hi,
    I have been struggling to get the Header Rows Repeat functionality working when generating RTF output with the eBus integrated BI Publisher - currently eBus 11.5.10.2 with ATG H RUP 7. The "How to Determine the Version of Oracle XML Publisher for Oracle E-Business Suite 11i and Release 12" Note (362496.1) doesn't provide anything more specific than 5.6.3. Based on the "Naming and Versioning" sticky note from Tim, I think this is equivalent to 10.1.3.2.
    According to http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e10416/bip_misc_101333.htm, this functionality is not available until BI Publisher 10.1.3.3.3.
    To "Overview of Available Patches for Oracle XML Publisher (embedded in Oracle E-Business Suite)" Note (1138602.1) does not list any stand alone patch which seems to be refer to this functionality.
    Can someone tell me if this Header Rows Repeat in RTF output functionality available with the eBus integrated BI Publisher? Or do I need to log an SR?
    theFurryOne
    Edited by: thefurryone on Sep 14, 2010 5:01 PM

    Hi Tim,
    Thanks for that - the 7487412 readme doesn't say anything about the RTF header bug fix being included, but the Bugs Resolved by this Patch lists 6270261 (ER: RTF Output to support set Table Header Report, Table Row Keep-Together).
    Patch # 7487412 is only available in R12, but with the specific ER number, I was able to find Note # 861915.1 (I couldn't it find with my keyword search) and this note indicates that 11i patch # 7702372 should resolve the problem for me in 11i (and it's readme explicitly documents 6270261 as being fixed by the patch).
    Thanks again,
    theFurryOne

  • Deleting a row from a Row Repeater

    Hi All,
    How could i delete a row from a row repeater??????
    I am using REMOVE_ELEMENT method from IF_WD_CONTEXT_NODE interface... Is this the correct way!!!!!!.
    Is there anyother way to do the same?????
    Best Regards.
    Shafiq Ahmed Khan.

    Hi
    first u get the index from the context element. with the help of the index u can get that particular element using get element.
    then u remove the element .
    check this code.
    CALL METHOD context_element->get_index
      receiving
        my_index = lv_index.
    CALL METHOD lo_nd_rcf_edu_det->get_element
      EXPORTING
        index        = lv_index
      receiving
        node_element = lo_el_rcf_edu_det .
    CALL METHOD lo_nd_rcf_edu_det->remove_element
      EXPORTING
        element          = lo_el_rcf_edu_det
    receiving
       has_been_removed =
    Declare a parameter context_element in the method of type if_wd_context_element
    regards
    chythanya

  • GetTreeCellRendererComponent(): get path to value without using row-arg?

    I'm using a JTree to display hierarchical data which include cyclic dependencies (i.e. an item may be its own ancestor).
    If a node shows up for the second time in a hierarchical tree path, I put a stop to further expansion (using the getPath() of a TreeExpansionEvent in a TreeWillExpandListener), and I give the node a special display (using a tree-cell renderer with a custom implementation of getTreeCellRendererComponent()). The implementation uses tree.getPathForRow(row) to get the path by which can be detected if a node is cyclic, but this does not always work: sometimes tree.getPathForRow(row).getLastPathComponent() corresponds to the value-object given as argument to getTreeCellRendererComponent(), but sometimes it does not.
    The example below shows the difference (switch the lines marked "Not OK" by the line marked "OK"; to keep it simple, I left the cyclic dependencies out).
    Checking the swing source files reveals that if getTreeCellRendererComponent() is called by paintRow() in BasicTreeUI, value and row correspond. But if getTreeCellRendererComponent() is called by getNodeDimensions() in one of the LayoutCache-classes, the given value-object does not correspond to the object at the given tree-row. Somewhere I read that getNodeDimensions() is called to determine preferred sizes of nodes before they are shown for the first time. If that's the case, it is logical that value and row do not correspond, although I would have liked to get a hint, e.g. a row value of -1.
    To detect a cyclic node, I need a treepath, but the row-argument is unreliable. Is there another way to determine the path corresponding to the value-object passed to getTreeCellRendererComponent(), so without having to use the row-argument?
    * treeUpdate.java
    package treeupdate;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.util.ArrayList;
    import java.util.List;
    import javax.swing.JLabel;
    import javax.swing.JTree;
    import javax.swing.event.EventListenerList;
    import javax.swing.event.TreeModelListener;
    import javax.swing.tree.TreeCellRenderer;
    import javax.swing.tree.TreeModel;
    import javax.swing.tree.TreePath;
    public class treeUpdate extends javax.swing.JFrame {
        private javax.swing.JScrollPane jScrollPane1;
        private javax.swing.JTree jTree1;
        private ItemInHierarchy root = null;
        private SimpleTreeModel htm = new SimpleTreeModel();
        private SimpleTreeCellRenderer htcr = new SimpleTreeCellRenderer();
        public treeUpdate() {
            initComponents();
            generateHierarchy();
            jTree1.setModel(htm);
            jTree1.setCellRenderer(htcr);
        // init
        private void initComponents() {
            setTitle("row-value correspondence");
            setSize(new Dimension(300,500));
            jScrollPane1 = new javax.swing.JScrollPane();
            jTree1 = new javax.swing.JTree();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jScrollPane1.setViewportView(jTree1);
            add(jScrollPane1);
        // generate data
        private void generateHierarchy() {
            root = new ItemInHierarchy("Joverra");
            ItemInHierarchy c1 = new ItemInHierarchy("Kondat Kalbendate");
            c1.children.add(new ItemInHierarchy("Linovar Welchessante Somtanessia"));
            c1.children.add(new ItemInHierarchy("Muzarra Frontiminoi Wioppallae"));
            c1.children.add(new ItemInHierarchy("Niobitia Fyttichiokla Quantianou"));
            root.children.add(c1);
            ItemInHierarchy c2 = new ItemInHierarchy("Orud Kalbene");
            c2.children.add(new ItemInHierarchy("Pascalite Welchessante Somtanessia"));
            c2.children.add(new ItemInHierarchy("Quinnime Frontiminoi Wioppallae"));
            c2.children.add(new ItemInHierarchy("Ruttinovi Fyttichiokla Quantianou"));
            root.children.add(c2);
            ItemInHierarchy c3 = new ItemInHierarchy("Si Kae");
            c3.children.add(new ItemInHierarchy("Tonniate Welchessante Somtanessia"));
            c3.children.add(new ItemInHierarchy("Uvverten Frontiminoi Wioppallae"));
            c3.children.add(new ItemInHierarchy("Vlioppala Fyttichiokla Quantianou"));
            root.children.add(c3);
         * Tree model
        private class SimpleTreeModel implements TreeModel {
            protected EventListenerList listenerList = new EventListenerList();
            public Object getRoot() {
                return root;
            public Object getChild(Object parent, int index) {
                ItemInHierarchy i = (ItemInHierarchy)parent;
                return i.children.get(index);
            public int getChildCount(Object parent) {
                ItemInHierarchy i = (ItemInHierarchy)parent;
                return i.children.size();
            public boolean isLeaf(Object node) {
                ItemInHierarchy i = (ItemInHierarchy)node;
                return i.children.size()==0;
            public void valueForPathChanged(TreePath path, Object newValue) {
                // do nothing
            public int getIndexOfChild(Object parent, Object child) {
                ItemInHierarchy i = (ItemInHierarchy)parent;
                for (int k = 0; k < i.children.size(); k++) {
                    if (i.children.get(k).equals((ItemInHierarchy)child)) {
                        return k;
                return -1;
            public void addTreeModelListener(TreeModelListener l) {
                listenerList.add(TreeModelListener.class, l);
            public void removeTreeModelListener(TreeModelListener l) {
                listenerList.remove(TreeModelListener.class, l);
         * Cell renderer
        private class SimpleTreeCellRenderer extends JLabel implements TreeCellRenderer {
            public SimpleTreeCellRenderer() {
                setOpaque(true);
            public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) {
                // OK
                // setText(value.toString());
                // Not OK
                TreePath tp = tree.getPathForRow(row);
                if (tp!=null) {
                    setText(tp.getLastPathComponent().toString());
                } else {
                    setText("?");
                return this;
         * Item in hierarchy
        public class ItemInHierarchy {
            public List<ItemInHierarchy> children = new ArrayList<ItemInHierarchy>();
            public String name;
            public ItemInHierarchy() {
            public ItemInHierarchy(String name) {
                this.name = name;
            @Override
            public String toString() {
                return name;
        // main
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new treeUpdate().setVisible(true);
    }

    Kleopatra wrote:
    The only general way to hack-around, as far as I remember, is to force the VariableSomething out of the way and make a FixedSomething takes it place. No api, but you can reach that by doing both:
    - tree.setLargeModel(true)
    - tree.setRowHeight(somevalueabovezero)
    Your memory's fine. I ran a short test, this seems to make row- and value-arguments correspond to each other consistently.
    Kleopatra wrote:
    ... before expanding a node it calls the renderer with the row set to the the row following the row of the node to expand (same for all children)...I suspected something like this, and it opens up a way to solve my question, but it seemed like a too shallow basis for coding. I'm satisfied with fixed row heights, so I'll stick to your suggestion above, and I'll include a short equality test in getTreeCellRendererComponent(), just to make sure:
    value.equals(tree.getPathForRow(row).getLastPathComponent())Thanks for the help - Jan

  • Header Row Repeating Erratically

    Hi,
    I have a problem with a dynamic table using Adobe Lifecycle Designer 8.0 and Adobe Acrobat Professional 8.0.
    The table starts with a header row and a single row. The user can add additional rows and the table flows onto multiple pages. Everything appears OK, but when EITHER the user goes back to page 1 or if the user closes and reopens the file, there can be multiple header rows repeated on page 1. Sometimes there might only be 2 header rows, but other times there can be upwards of seven header rows one on top of the other.
    This is wrecking the layout and my head. Has anyone had similar problems or could give me a direction as to where I am going wrong.
    Thanks in advance.
    Niall

    Hi,
    I am facing the same issue.
    My table header has 2-3 rows of data...the data is populated dynamically. The text fields are set to expand, so I have to make the subforms to flowed.
    As soon as I set the subforms to Flowed...evrything overlaps on the second page.
    Please help.
    Regards
    Neha

  • Select Count(*) and actual row are differ: 136 rows vs 65k x 7 rows

    Dear All,
    Good morning. Need your advices. We had a view which is running and producing output to excel files. But recently after one of ours database migration, it were producing differ result: Select Count(*) and actual row are differ: 136 rows vs 65k x 7 rows. Error happen when we export out the row to csv file is produced 65000 rows x 7 worksheep. But when perform select count(*) from RTNEWWIP, result return: 136 rows.
    Is there any way to trace below sql to find where go wrong?
    The Veiw as below:
    CREATE OR REPLACE VIEW RTNEWWIP
    (FAB_ID, PO, PRD_NO, SHP_PRD_NO, LOT,
    WIP_QTY, ROUTEDESC, IN_TIME, STAY_DAY, BACK_DAY,
    WO_FCST_DATE, SHIP_FCST_DATE, SHIP_CONF_DATE, WS_DATE, ROUTERATIO,
    PROCESS, LOTSTATUS, LOTTYPE, RETICLEVERSION, PROCESSVERSION,
    ROUTESEQUENCE, PRIORITY, PROCESSGEN, PROCESSFAMILY)
    AS
    select
    --ord.order_no,
    'SILTERRA' FAB_ID,
    wip.PO_NUMBER PO,
    wip.FW_DEVICE PRD_NO,
    wip.USER_ITEM_DESCRIPTION SHP_PRD_NO,
    wip.LOT_ID LOT,
    wip.CURR_QTY WIP_QTY,
    wip.STEP_DESC ROUTEDESC,
    to_char(wip.RECORD_START_DATE,'DD-MON-YYYY HH24:MI:SS') IN_TIME,
    to_char((sysdate - wip.RECORD_START_DATE),'9999D99') STAY_DAY,
    to_char((wip.SCHEDULED_COMPLETE_DATE - sysdate),'9999D99') BACK_DAY,
    -- (sysdate - wip.RECORD_START_DATE) STAY_DAY,
    -- (wip.SCHEDULED_COMPLETE_DATE - sysdate) BACK_DAY,
    to_char(wip.SCHEDULED_COMPLETE_DATE,'DD-MON-YYYY') WO_FCST_DATE,
    to_char((wip.SCHEDULED_COMPLETE_DATE + 1),'DD-MON-YYYY') SHIP_FCST_DATE,
    --nvl(oel.attribute15, to_char(sysdate+3650,'DD-MON-YYYY')) SHIP_CONF_DATE,
    to_char(nvl(to_date(oel.attribute15,'DD-MON-YYYY'), sysdate+3650),'DD-MON-YYYY') SHIP_CONF_DATE,
    to_char(wip.LOT_START_DATE,'DD-MON-YYYY') WS_DATE,
    --wip.MASK_NO || '/' || wip.MASK_TOTAL ROUTERATIO,
    '''' ||wip.MASK_NO || '/' || wip.MASK_TOTAL ROUTERATIO,
    wip.PLAN_NAME_ACTIVE PROCESS,
    wip.LOT_STATUS LOTSTATUS,
    wip.LOT_TYPE LOTTYPE,
    0 RETICLEVERSION,
    wip.PLAN_VERSION_ACTIVE PROCESSVERSION,
    0 ROUTESEQUENCE,
    wip.PRIORITY PRIORITY,
    ' ' PROCESSGEN,
    ' ' PROCESSFAMILY
    from wip_report wip, lot_fact lf, order_fact orf, order_dim ord,
    apps.oe_order_headers_all@prod_myfabetl oeh,
    apps.oe_order_lines_all@prod_myfabetl oel
    where wip.CUSTNAME like 'Realtek%'
    --AND WIP.FW_DEVICE like '%R25C'
    and wip.ACTIVE_FACT_KEY = lf.RECORD_KEY
    and lf.ORDER_FACT_KEY = orf.RECORD_KEY
    and orf.ORDER_KEY = ord.RECORD_KEY
    and ord.ORDER_NO = to_char(oeh.order_number)
    and oeh.header_id = oel.header_id
    and orf.LINE_ITEM_NUMBER = to_char(oel.line_number)
    and orf.ITEM_SCHEDULE = to_char(oel.shipment_number)
    and wip.LOT_TYPE in ('ENX','PRA','PRD','PRT','CSK','MPW')
    union all
    select --od.order_no,'
    'SILTERRA' FAB_ID,
    od.CUST_PO PO,
    imd.FW_DEVICE_ID PRD_NO,
    nvl(orf.USER_ITEM_DESCRIPTION, nvl(imd.CUST_DEVICE_ID, imd.FW_DEVICE_ID)) SHP_PRD_NO,
    sfl.LOTID LOT,
    sfl.currentcompqty WIP_QTY,
    'CREATED' ROUTEDESC,
    to_char(to_date(substr(recordstartdate,1, 14), 'yyyymmddhh24miss'), 'DD-MON-YYYY HH24:MI:SS') IN_TIME,
    --sysdate - to_date(substr(recordstartdate,1, 14), 'yyyymmddhh24miss') STAY_DAY,
    --to_date(sfl.scheduledcompletedate,'yyyymmdd') - sysdate BACK_DAY,
    to_char(sysdate - to_date(substr(recordstartdate,1, 14), 'yyyymmddhh24miss'),'9999D99') STAY_DAY,
    to_char(to_date(sfl.scheduledcompletedate,'yyyymmdd') - sysdate,'9999D99')BACK_DAY,
    to_char(to_date(sfl.scheduledcompletedate,'yyyymmdd'),'DD-MON-YYYY') WO_FCST_DATE,
    to_char(to_date(sfl.scheduledcompletedate,'yyyymmdd') + 1, 'DD-MON-YYYY') SHIP_FCST_DATE,
    --nvl(oel.attribute15, to_char(sysdate+3650,'DD-MON-YYYY')) SHIP_CONF_DATE,
    to_char(nvl(to_date(oel.attribute15,'DD-MON-YYYY'), sysdate+3650),'DD-MON-YYYY') SHIP_CONF_DATE,
    to_char(to_date(sfl.startdate,'yyyymmdd'), 'DD-MON-YYYY') WS_DATE,
    ' ' ROUTERATIO,
    sfl.tempprocessplan PROCESS,
    sfl.currentstatus LOTSTATUS,
    sfl.currenttype LOTTYPE,
    0 RETICLEVERSION,
    0 PROCESSVERSION,
    0 ROUTESEQUENCE,
    ' ' PRIORITY,
    ' ' PROCESSGEN,
    ' ' PROCESSFAMILY
    from SIL_FW_LOTCREATED_VIEW sfl, order_dim od, order_fact orf, item_master_dim imd,
    apps.oe_order_headers_all@prod_myfabetl oeh,
    apps.oe_order_lines_all@prod_myfabetl oel
    where substr(sfl.salesorderno,1,instr(sfl.salesorderno,'-',1,1)-1)= to_char(od.ORDER_NO)
    and od.RECORD_KEY = orf.ORDER_KEY
    and od.RECORD_CURRENT_FLAG = 1
    and orf.RECORD_CURRENT_FLAG =1
    and to_char(orf.LINE_ITEM_NUMBER) = substr(sfl.salesorderno,instr(sfl.salesorderno, '-',1,1) +1, (instr(sfl.salesorderno, '.',1,1) -1) - instr(sfl.salesorderno, '-',1,1))
    and to_char(orf.ITEM_SCHEDULE) = substr(sfl.salesorderno,instr(sfl.salesorderno, '.',1,1) +1, length(salesorderno) - instr(sfl.salesorderno, '.',1,1))
    and orf.ITEM_MASTER_KEY = imd.RECORD_KEY
    and sfl.customername = 'Realtek'
    and od.ORDER_NO = to_char(oeh.order_number)
    and oeh.header_id = oel.header_id
    and orf.LINE_ITEM_NUMBER = to_char(oel.line_number)
    and orf.ITEM_SCHEDULE = to_char(oel.shipment_number);
    select count(*) from rtnewwip;
    COUNT(*)
    136
    1 row selected

    query might be referring to different environment/schema as you are using database link to access some tables.
    getting result/count from view means executing query which forms that view. try to run that query separately and see the output.
    it may help you to debug

  • How can I use table headers only without using rows.

    how can I use table headers only, without using rows and without leaving the space.
    If anyone could say me how to paste the pic in this questions, I would have shown it.
    The flow of view is in this way
    {Table header(table on top of table)
    column header1___|| column header2__ || column header3__ ||}
    <b>Here is the blank space I am getting, How to avoid this space?this space is of one table row height</b>
    {Contents column1 || Contents column2 || Contents column3 || (This is of other table below the uper table)}
    I am using scroll for the content part of table only.
    So I am using two tables.
    I am using NW04.

    I did the possibles you explained, but couldn't get rid off the space.
    Any other solutions?
    I am keeping the header static and the content columns scrollable.
    I have used two tables one to display header above and the other to display only the contents.
    I have put the contents table in scroll container.
    And the header table in transperent container.
    Thanks and Regards,
    Hanif Kukkalli

  • How to repeat 2 table header rows in adobe form

    Can anybody suggest me how to repeat 2 table header rows .
    one header row is for displaying only columns header list
    second header row is for displaying 'from date' and 'to date'.
    and i want this to be done using layout tab(palletes) in the form.  will it be?
    Message was edited by:
            M Madhu

    loop at ot into wa.
    at first header one
    write second header.
    endloop.
    declear one internal table append both values in come internal table .
    pass the header in comen internal table.
    Message was edited by:
            Karthikeyan Pandurangan

  • Dynamically populating a row repeater

    Hi,
    I have a requirement  wherein in the UI i have to populate a link with a delete icon for each of the selected(multiple via f4) records. This would be 0..n. The row reaptor should have 2 columns. The contents are generated on the fly as and when the records are selected. In the Webdynpro view we jst have a transparent container and a button.
         Can anyone suggest how do we go  about this? [I also tried using a row repeater ui element in the view but it actually repeats the same row :).  ]
    Regards,
    Abhay

    I hope you already created table column with link_to_action UI element as cell editor and created another attribute in the context node which is binded to your table UI element.
    You just need to bind the imageSource property with the newly created context attribute.
    In the event handler of the onSelect of the table.
    get the lead selected element and set the new attribute to value 'ICON_DELETE'
    Abhi

  • Issue with Row repeater

    Hi All,
    I am using a row repeater UI element to display the results of search. Once the results are displayed the user can navigate to a different page in the row repeater. Lets say the user navigates to page 5. Now when the user goes back and modifies the selection criteria, the row repeater still displays page 5. This time there might be no data in page 5. How can we go back to first page.
    Thanks,
    Pooja

    Hello Pooja,
    I didnt see any method available in the CL_WD_ROW_REPEATED to reset it. Alternative what I can think of is to reset the view elements. But I'm not sure whether this will have impact on you other UI elements. May be you can try this
    1. create a member variable in Attributes tab (MR_VIEW) of type ref to IF_WD_VIEW
    2. in the WDDOMODIFYVIEW, write the following code
    if first_time = abap_true.
       wd_this->mr_view = view.
    endif.
    3. in the search method or in the event handler method for search, call reset_view
    wd_this->mr_view->reset_view( ).
    this method will reset all the UI elements in the view
    other alternative would be to place the Row_Repeater in a transparent container. And during search delete the old row repeater and create a new one and bind the data source.
    BR, Saravanan

  • DropDown by Key and Row Repeater

    Hello,
    I 've build a form inside a rowrepeater, inside the form there are several empty drop down by key.
    The key value table of each dropdown by key belong to the selected country grouping (an input field with search help inside the form).
    OnEnter event of the molga field, I call a BL to fill the key value table and get the index of the form (regarding to the dataprovider of my row repeater).
    Here is the structure of my context:
    CONTEXT _
                     |_CTX_COLL (0:N)
                                  |_CTX_DROPDOWN (1:1)
    * --- GET MOLGA --- *
    * navigate from <CONTEXT> to <CTX_COLL> via lead selection
      lo_nd_ctx_coll = wd_context->get_child_node( name = wd_this->wdctx_ctx_coll ).
      lo_nd_ctx_coll->get_static_attributes_table( importing table = lt_ctx_coll ).
      read table lt_ctx_coll into ls_ctx_coll index iv_index.
      lv_molga = ls_ctx_coll-country.
    * --- GET DROPDOWN NODE INDEX REFERENCE --- *
      lv_idx_str = iv_index.
      concatenate 'CTX_COLL.'
                  lv_idx_str
                  '.CTX_DROPDOWN' into lv_path.
      condense lv_path no-gaps.
    * navigate from <CONTEXT> to <CTX_DROPDOWN> via index selection
      lo_nd_ctx_dropdown = wd_context->path_get_node( path = lv_path ).
      lr_node_info = lo_nd_ctx_dropdown->get_node_info( ).
    * --- SET DROPDOWN --- *
      lt_value_set = wd_assist->get_priority( lv_molga ).
    * set values (table) to context attribute
      lr_node_info->set_attribute_value_set(
       name = `PRIORITY`
       value_set = lt_value_set

    well ehrr
    I see two completely different implementations
    the context dropdown must be used with a drop down by INDEX
    the value set must be used wth a dropdown by KEY
    as you have a ddk, it uses the value set
    furthermore, you set the value set on the dropdown context
    try the index one
    I'm not sure what you are trying to do, but try the following option
    you have a node in which your dropdown field resides
    make a subnode with the values for that field
    fill the subnode depending on the selected country (don't forget to invalidate the node when the country changes)
    bind a ddi to the dropdown values in the node
    the value set is defined on node level, not on element level
    so setting a different value set per element won't work i'm afraid
    correct me if i'm rong
    Edited by: Tom Van Doorslaer on Apr 3, 2009 3:48 PM

  • Making atabase clone (but without data=rows) from hot-backup

    Hi,
    I am newbie in Oracle administration. I am using Oracle 10g database. I would like to clone database i.e. make an exact copy of tablespaces, tables, indexes, triggers, functions etc. but without data.
    What is the most efficient way to do it.? I am having the full hot backup of another database. Is it possible to restore a that backup using rman but without data (=rows) on the fresh installed oracle database
    Thanks for any advice
    Groxy

    I don't think RMAN has the feature you are looking for.
    For this purpose, it could be easier to use:
    - either old export with FULL=Y ROWS=N
    - or new data pump export with CONTENT=METADATA_ONLY.
    However in both cases you would need to recreate the empty database before importing the export file.
    Message was edited by:
    Pierre Forstmann

Maybe you are looking for

  • Locockpit setuptable issue.

    Hi, I have to load 3yrs data for these data source 2lis_02_HDR,ACC,ITM . but user is not agreeing the down time for loading the these datasource to bw system. i gone through  some of documents like first load init without data transfer and followed b

  • How to Connect Oracle database from excel

    I have installed oracle 11g on Windows 8 64 bit OS  on my laptop. I have Microsoft excel 2013. I can connect to database from SQL and from TOAD. Now  i want - from excel to connect to database. Please guide me the steps. Thanks

  • Certain websites not opening

    What do I need to change to open some retail stores web sites and allow me to download information? runing winidw 7 Hp TouchSmaert 300pc.

  • Notifiers VS Queues

    Hello all! I have a pretty simple question... what is the main difference between notifiers and queues?  Which should I use in which case?  Are queues preferable to pass data?  Anyways, you get the point! Thanks in advance! Yohan

  • Newspaper article database application

    I am working on an application that would store and retrieve articles related to the work of our organization in the local newspapers. I work at a government ministry and there are quite a few articles in the newspapers every day. Generally, the prin