How to move a row in an updatable report

Hello,
I'm using an updatable report. I need to move one row to up or down.
And when moving the last row further down, it should show up as the first row of ny report.
And moving the first column up, it should be moved to the end of my report.
How can I do this ?
Alain.

Alain,
Chanhe your login to something more firendly:)
See here on how to do that:
http://htmldb.oracle.com/pls/otn/f?p=31517:100
Denes Kubicek

Similar Messages

  • How to move result row for hierarchical character bellow corresponding rows

    Hi expert,
          in my query , I set a hierarchy for a character in row. but it result row is above rows, however I set all result row bellow corresponding rows in query property. also all other result rows display bellow corresponding rows. please tell me how to move result row for hierarchical character bellow corresponding rows.
    Many Thanks,

    Hi Yasinn,
    you are right and you can make it even shorter:
    LOOP AT ITAB.
      Collect ITAB Into ITAB2.
    EndLoop .
    It will work much faster using field-symbols:
    field-symbols:
      <itab> like line of itab.
    LOOP AT ITAB ASSIGNING <itab>.
      Collect <itab> Into ITAB2.
    EndLoop .
    BTW: Kishore Babu Gummadi's suggestion about the field catalog does not make any sense, not regarding your question and not regarding a field catalog derived from DDIC fields: What is the DDIC defined output length of ekbe-wrbtr?
    Regards,
    Clemens

  • How to move all the standard and adhoc reports from cube to multi provider

    How to move all the standard and adhoc reports from the basic cube to multi provider?
    i created this multiprovider to do the maintenence on the basic cube. for example the infocube physical partition, line item dimension and compression.
    what we decided to do is move all the Standard and ad-hoc reports from the basic cube to the multiprovider. How to do it? and make a copy of the basic cube and do the maintenence on the cube. please help.
    Thanks in advance sdn experts!

    Hi Les,
    This sounds good and one thing we try to always keep in mind when undertaking such activities is to always minimise the impact to the user and make the process as transparent to them as possible. So lets say you have your multiprovider and copied queries up in Prod, these queries will still pick up the data from the base cube.
    Now you need to make a copy of the base cube for some changes to the cube model, I would suggest that you copy the cube and make your changes on the copied cube itself. Then 9depending on the changes done) you can load data from Original Cube to New Cube. When this is being done, make sure that you change your queries to add a restriction on 0INFORPOV by Original Cube.
    After the load to the new cube is complete you can run reports restricted to each cube to verify the numbers. Then change the 0INFOPROV restriction in the queries to point to the New Cube and disengage the old cube from the multiprovider.
    Hope this helps...

  • How to add a new record in updatable report using apex_item

    Hi,
    i am using an updatable report using the following select
    select
    aPEX_ITEM.POPUP_FROM_QUERY(2,emp_code,
    ' SELECT emp_surname, emp_code FROM hrm_employee ' ,null,null,null,null,null,'onchange="f_set_multi_items_tabular(this.value ''#ROWNUM#'''
    || ')"',null,null,null) PF_No,
    apex_item.text (32,
    NULL,
    80,
    100,
    'style="width:190px" ',
    'f11_' || '#ROWNUM#'
    ) Name,
    " REST_DATE",
    "REMARKS",
    from "roster"
    when i click on the button add row , only the column rest_date and the remarks are enable.
    why is the apex_item.text and apex_item_popup_from_query is disable ? and how i can make it enable.
    thanks
    regards
    jerry

    I could see that you are using the addRow() function to generate new blank row.
    I guess, this function(used by the builtin tabular form s) , identifies editable columns when they are marked so at the report column attributes.
    When you use apex_item API, it expects the columns to be standard report column and hence render the new rows as such.
    Some one from the development team might be able to give a better answer on that.
    As for avoiding this issue
    <li>One method , would be to define the columns editable(and display types) in report column attributes.
    <li> You can duplicate the last row using jQuery( *$('tr.highlight-row:last).after( $('tr.highlight-row:last).clone() )* ) and removing the field values, but events(for example datepicker) would remain attached to the original row , so it isn't very straightforward either.
    <li>If you want to use apex_item you would have to use a pseudo union to DUAL for generating a blank row and re-render the report either by a page load or a Dynamic Action. Sounds like a nice idea for a plugin.
    Now , if you want to add rows multiple times without saving them, then you would need to store the values in a collection at load and update the collection before adding the row.

  • How To Insert a Row If The Update Statement Fails?

    Hi folks,
    For some reason I just can't get this working and wanted to throw it out to everyone, very simple one so won't take much of your time up.
    Going through each row of the cursor, and wanting to update a table, if the record doesn't exist, then I want to insert it.....but nothing is happening.
    IF v_related_enrolement < 1
    THEN
    BEGIN
    -- Record NOT found in Study_block_associations
    -- Insert Student record into ADM_EVER_REGISTERED table
    -- Set Ever_Registered column to 'N'
    UPDATE adm_ever_registered
    SET ever_registered = 'N'
    WHERE personal_id = v_personal_id
    AND appl_code = v_appl_code;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    INSERT INTO adm_ever_registered VALUES(v_personal_id, v_appl_code, v_choice_no, 'N');
    END;
    ELSE

    It's better to use a merge statement in this case.
    Your code doesn't work because of the false assumption that an update statement that doesn't update a single row fails with a no_data_found exception, where it's a successful update statement that just doesn't update a single row. So instead of the exception, use a "if sql%rowcount = 0 then" construct to make your current code work. Best option, as said, is to switch to the merge statement.
    Regards,
    Rob.

  • How to move a row to top in a report on button click

    Hi,
    I have a report and have 2 buttons(Top and Bottom). When I click on top button selected row should be moved to top in the list, when I click on bottom that select row should be moved to bottom. I checked Denes reorder rows example it has only up and down functionality.
    Could some one help me in doing that.
    Thanks in advance,
    Sri

    Hello, maybe I don´t get your problem, but I would just use: single table, form subform for row with positioned (manually like 2 rows) or flowed (with two "internal" subforms to help achieve 2-like-row-design of the row) content and that´s all. Otto
    p.s.: if your problem is not that simple then I don´t get it, please clarify

  • How can print blank rows for XML output report..

    Hi all,
    I am working in XML output PO fix format report and in that report there is 3 sections. (1) Header section(2)Line section (3) Footer section. My requirement is like this, header and footer section print in all pages and line section break for next page after printing fix 15 lines in a page. And if any page has less then 15 lines then it generate remaining blank row to maintain footer position.
    Please suggest me, how can i generate blank rows and break lines for page if there is more then 15 rows in Line section.
    Thanks in Advance!

    Hi,
    <?for-each:ROW?>
    <?end for-each?><xsl:variable name="cnt" select="count(//row|//ROW)" />
    <?for-each:xdoxslt:foreach_number($_XDOCTX,1,15-count(ROW),1)?> <?end if?>
    this will create 15 lines irrespective of you have that much rows of data in xml or not
    if you want more help , drop me mail @ [email protected]

  • How to edit "Single Row View" in Interactive Reports?

    Hi,
    When using Interactive Report when one clicks on the little page icon on the left on a gievn row - one is presented with a small output from all columns for that row.
    For example login as demo/demo to:
    http://apex.oracle.com/pls/apex/f?p=12988:1
    And click on the first icon in the first row. You'll get an output like:
    Empno     7839
    Ename     KING
    Job     PRESIDENT
    Mgr     -
    Hiredate     17-NOV-81
    Sal     5000
    Comm     -
    Deptno     10
    How (and where) can I modify the output of this?
    Regards,
    Pawel.

    Thanks, for your responses.
    In fact this is what I have done. What I am looking after is simply how to modify what is already there. That way, I don't need to create different pages with Next/Previous buttons etc... for every Interactive Report I have.

  • How to preselect all rows before displaying ALV report

    I would like to select all rows before sending ALV Grid Display. User then can unselect couple of rows for further processing. How do I do that ?. Im using Method grid1->SET_TABLE_FOR_FIRST_DISPLAY for ALV Report Display. Any help appreciated.

    Ok,
    I've started the editor and check my code. I made few small mistakes (like with this exporting/importing), here's the sample - correctly working - code:
    DATA: it_selected TYPE lvc_t_row,
          wa_selected TYPE lvc_s_row,
          wa_sflight TYPE sflight,
          ltp_layout TYPE lvc_s_layo.
         SELECT *
           FROM sflight
           INTO TABLE gi_sflight.
    ltp_layout-stylefname = 'CELLTAB'.
    ltp_layout-sel_mode = 'A'.
    LOOP AT gi_sflight INTO wa_sflight.
          wa_selected-index = sy-tabix.
          APPEND wa_selected TO it_selected.
    ENDLOOP.
    *   * Load data into the grid and display them
         CALL METHOD go_grid->set_table_for_first_display
           EXPORTING i_structure_name = 'SFLIGHT'
                     is_layout            = ltp_layout
                     i_save = 'A'
           CHANGING  it_outtab        = gi_sflight.
    CALL METHOD go_grid->set_selected_rows
          EXPORTING
            it_index_rows = it_selected.
    This time it is 100% correct.
    Edited by: Marcin Cudo on Apr 11, 2010 2:13 AM

  • How to highlight a row in a standard report?

    Friends,
    Hope you can help.
    I need to highlight a row in standard report dependent on some criteria.
    Having searched the forum I have been trying to implement the example given here.
    This is what I have done:
    1) Create a new report using the following query
    select decode(deptno, 10, 'class1', 20, 'class2', 30, 'class3') trclass , ename, job, sal, comm from emp
    2) Created a new Report Row Template from scratch and added the details given in the example above.
    3) Placed the CSS Style sheet code in the stylesheet box at the following location:
    Shared Components>Cascading Style Sheets>Edit Cascading Style Sheet
    3) Ran the page
    4) Employee report is displayed but nothing is highlighted.
    What have I done wrong?
    Thanks in advance for any help given (which of course will be marked helpful\correct!)
    Ian

    >
    >
    3) Placed the CSS Style sheet code in the stylesheet box at the following location:
    Shared Components>Cascading Style Sheets>Edit Cascading Style Sheet
    >
    What have I done wrong?The CSS needed to go in the page HTML Header.

  • How can i use multiple row subquery in update statement

    Hai All
    I using group function in my update statement.. and i need to update more rows so i need to use multiple row
    subquery pls tell me how to use multiple row subquery in update statement
    For example
    while i am using this like this i got an error
    update dail_att set outtime in (select max(r2.ptime) from temp_att where empcode=r2.enpno and
    barcode=r2.cardn and attend_date=r2.pdate group by enpno,pdate,cardn);
    Pls tell me how to use with example
    Thanks & regards
    Srikkanth.M

    Hai Man
    Thanks for ur response Let me clear what i need
    First step Fetch the records as text file and stores into table T1
    and the next step is i have seperated the text using substring and stores in different columns of a table
    There are two shifts 0815 to 1645 and 1200 and 2000
    Here I rep IN and O rep OUT
    Empno date time inout
    001 01-01-10 0815 I
    002 01-01-10 0815 I
    003 01-01-10 0818 I
    001 01-01-10 1100 0
    001 01-01-10 1130 I
    002 01-01-10 1145 0
    002 01-01-10 1215 I
    004 01-01-10 1200 I
    005 01-01-10 1215 I
    004 01-01-10 1315 O
    004 01-01-10 1345 I
    001 01-01-10 1645 0
    002 01-01-10 1715 0
    003 01-01-10 1718 0
    004 01-01-10 2010 0
    005 01-01-10 2015 0
    This is my T1 table i have taken data from text file and stored in this table from this table i need to move data to another table T2
    T2 contains like this
    Empno Intime Intrin Introut Outtime Date
    001 0815 1100 1130 1645 01-01-10
    002 0815 1145 1215 1715 01-01-10
    003 0818 1718 01-01-10
    004 1200 1315 1345 2010 01-01-10
    005 1215 2015 01-01-10
    This what i am trying to do man but i have little bit problems Pls give some solution with good example
    And my coding is
    declare
         emp_code varchar2(25);
    in_time varchar2(25);
    out_time varchar2(25);
    Cursor P1 is
    Select REASON,ECODE,READMODE,EMPD,ENPNO,FILL,PDATE,PTIME,INOUT,CARDN,READERN
    From temp_att
    group by REASON,ECODE,READMODE,EMPD,ENPNO,FILL,PDATE,PTIME,INOUT,CARDN,READERN
    ORDER BY enpno,pdate,ptime;
    begin
         for r2 in p1 loop
    declare
    bar_code varchar2(25);
    begin
    select barcode into bar_code from dail_att where empcode=r2.enpno and attend_date=r2.pdate;
    For r3 in (select empcode,empname,barcode,intime,intrin,introut,addin,addout,outtime,attend_date from dail_att)loop
    if r2.inout ='O' then
    update dail_att set outtime =(select max(r2.ptime) from temp_att where empcode=r2.enpno and barcode=r2.cardn and attend_date=r2.pdate group by r2.cardn,r2.enpno,r2.pdate );
    end if;
    end loop;     
    exception
         when no_data_found then
         if r2.inout ='I' then
                   insert into dail_att(barcode,empcode,intime,attend_date)(select r2.cardn,r2.enpno,min(r2.ptime),r2.pdate from temp_att group by r2.cardn,r2.enpno,r2.pdate );
         end if;
    end;
    end loop;
    commit;     
         end;
    Pls tell me what correction i need to do i the update statement i have used a subquery with group function but when i used it will return only one row but my need is to return many rows and i need to use multiple row subquery
    and how can i use it in the update statement
    Thanks In Advance
    Srikkanth.M

  • Problems with updatable Report - add rows

    Hello,
    I've an updatable report with about 650 rows.
    When I press the button "add rows" there is no empty row displayed.
    Is there a limit of rows for the updatable report?
    The report row limit is 1000 and the rows per page are 50.
    Thanks in advance
    Ulrike

    Hello Aiman,
    First ensure that your app is not pointing to .NET framework 4.0 client install.  I believe you are talking about VS2010 and CR4VS2010.
    You need to go to properties of the project --> 'Application' tab --> Target framework --> select frame work 4.0.
    You should be able to see the viewer in reporting section. Note # 1529493 have the details. Check:
    http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/f64f7c55-bbda-42f9-9d6e-a3c1e8f56300
    Hope it helps!
    Thanks.
    Edited by: A G on Nov 24, 2010 8:37 PM

  • Can a process update report Headings?

    Does anyone know how to use a process to directly update Report Headings, perhaps using the HTMLDB API? I need dynamic headings determined at run time, but I cannot use the PL/SQL Headings Type because I have too many columns in the report (the delimited headings string exceeds HTMLDB's length limit).

    500 columns!
    I thought there was a limit of 60 columns on report regions.
    In any case, there is also a limit on the total size of each row returned (regardless of number of columns). Are you not running into that limitation?
    See the discussion at Re: Report with Tabs - Enhancement Request? , that might help you. Basically, break the 500 columns into groups that make sense and put each set of columns in a tab and flip between them using the techniques in that thread.
    This way, each report has a more manageable number of columns and you can stay under the varchar2(4000) limit.
    [Carl's example page is at http://htmldb.oracle.com/pls/otn/f?p=11933:55]
    Hope this helps.

  • How to move rows up and down on a SharePoint List Item

    Hello,
    I have created a simple Project Plan Template for my team using a SharePoint list.
    I have listed a sample below:
         Date  
                                Tasks        
                                               Owner
    03/09/14                             Gather requirement                        
        X
    05/09/14                             Develop                          
                          Y
    07/09/14                             Deploy                          
                            Y
    Currently there is no functionality in the template to add another task to update the Plan. eg: I want to add another task with a due date 04/09/14 to confirm requirements.
    So basically I want to be able to add an item (task) towards the end and then move it to desired position depending on the due date.
    Please suggest how this can be implemented without complex code changes as I am new to working with SharePoint.
    Many Thanks in advance,
    BH

    Hi ,
    Thanks for the response.
    But I am looking to move the rows in a particular list A and not between 2 separate list items A and B according to the date.
    List Project A has separate tasks defined which needs to accomplished in a timely manner for the project to complete on schedule.
    I want to be able to move these tasks which are in a table on the SharePoint List.
    Hope this is clear.
    Please let me know if you have suggestions for this.
    -BH

  • How to move rows from one partition to another?

    We have a data retention requirement for 6 months and after 6 months the data can be removed except for few records with certain statuses (which cannot be removed even if they are over 6 months). We have Oracle 11g.
    I wanted to see if the following strategy works:
    I will have monthly partitions and 8 sub partitions (hash) in each of the main partitions. The hash sub-partitions are to spread the load of application data and balance the data insertion to avoid any contention.
    At the end of 6 months, is it possible for me to move the row that needs to be kept to a different partition and drop the last partition. I wanted to avoid data deletion because we only have very little database downtime and data deletion require us to coelize the database to avoid fragmentation.
    If I can move the data to another partition, how will I do it?
    Thanks

    I think you didn't get intentions correctly.
    My intention is to move the required data to a partition and then drop the original partition. that because the amount of data required to keep for future use is less than 1%.
    I understood what you meant to convey. Thanks a lot.
    I laid out eh plan something like the following.
    1. Add a new date column to facilitate the partitioning (say its called PARTITION_DT. PARTITION_DT will have the same data as ROW_CREAT_DTTM without the timestamp portion of the date.)
    2. We will start with monthly partition using PARTITION_DT, Create a 'Default' partition as well.
    3. Add hash sub-partitions on MSG_ID to spread the application data load and avoid contention (so the application load is balanced just like how its balanced through the hash partitions today)
    4. At the end of the data retention period, identify the records that needs to be retained (because of some trade statuses, etc ) and update the PARTITION_DT with a distant past date so the row will automatically move to the Default partition. The identification of the records to be retained and updating the PARTITION_DT can be done through a batch job. since this step involve very few records, it can be done in minutes or seconds.
    5. Now, we can drop the oldest partition and rebuild the index if required.
    6 The process should add sufficient number of monthly and its sub-partitions ahead of time to make sure we always have partitions available for new data.
    The entire process can be automated and executed through a scheduled job.

Maybe you are looking for