How to Insert the New Row in the  Workbook (b/w the Records)

Hi All,
In my workbook, I have 10 records.
So my requirement is after 5 Records I want to Insert a New Row( ex: Total(1st Column) : SUM (2nd Column)of first five records )
And remaining records should display the same after inserted row.
For that what i did, Inserted a new row and put the sum for the first five records and save the workbook.
Problem is when I refresh the workbook, The inserted row is disappearing.
Please let me know can we do the aboue requirment or not?
Regards
Josu

Hello joji,
Please check this thread for changing working book template...
check the last post by Bhanu..
Re: Web Template creation .

Similar Messages

  • How to insert a new row in the middle of an set of rows

    Hi
    How to insert a new  row in the middle of an set of rows ? and How to Reset the line id after the new row added ?
    Regards,
    Sudhir B.

    Hai,
    just try this,
    Instead of using omatrix.Addrow(1,-1) use like
    omatrix.AddRow( RowCount , Position)
    RowCount
    The number of rows to add (default is 1)
    Position
    The position of the new rows (0-based; default is -1, meaning append row to the end)
    After adding rows in matrix For, sno.
    for i=1 to omatrix.visualrowcount
    otext=omatrix.getcellspecific("columnid",i)  '--where columnid is the unique id of the sno column
    otext.value=i
    next i
    Hope this helps you.
    Thanks & Regards,
    Parvatha Solai.N

  • How to insert the records using sql query

    hi,
    i insert the record uisng sql query and DOTNET programme successfully and increase the doc num .ubut when i try to  add record using SAP B1 the old Doc no show.It means its not consider the docnums which are not inserted by sql query.
    how can i solve this problem?
    Regards,
    M.Thippa Reddy

    You are not support use Insert / Update / Delete on SAP Databases directly.
    SAP will not support any database, which is inconsistent, due to SQL-Queries, which modify datasets or the datastructure of the SAP Business One Database. This includes any update-, delete- or drop-statements executed via SQL-Server Tools or via the the query interface of SAP Business One
    Check SAP Note: 896891 Support Scope for SAP Business One - DB Integrity
    [https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E&note_numm=896891]

  • How Can insert the records into Excel_sheet by using SQL Task-SSIS ?

    As per requirement ,
    insert the records in excel sheet(DT)  by using SQL Task-SSIS .
    I used SQL query in SQL Task-SSIS:
    e.g.., INSERT INTO [DT$B1:B1] VALUES ('COMMM')
    but error:Executing the query "INSERT INTO [DT$B1:B1] VALUES ('COMMM') " failed with the following error: "This table contains cells that are outside the range of cells defined in this spreadsheet.". Possible failure reasons: Problems
    with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
    Please any suggestion  ...
    -MADHU

    then first create a table inside Excel sheet based on your source data. You can Execute sql task for that using excel connection. then use insert to populate it
    see an example here where I create a dynamic sheet using execute sql task
    http://visakhm.blogspot.in/2013/09/exporting-sqlserver-data-to-multiple.html
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to insert a new Row in a table? - Need help

    Hi everyone,
    I'm using JDeveloper 10.1.2, UIX pages and STRUTS.
    This is my situation: When I navigate from page one to page two, I have in my page2 one table and I need to create a new row with some values by default, but I don't want to commit this line except the user decides to complete this line.
    Can anyone help me? This is very important.
    Thanks,
    Atena

    Hi Sascha,
    thanks very much for your replay.
    My project changed and I have another question about this. My page1 has a table (table1) and when I select one line from table1 and press a button, I go to page 2.
    I have an action in the Struts-Config.xml like this in page2 (S2PopUpObstaculos):
    <action path="/S2PopUpObstaculos" type="oracle.jheadstart.controller.strutsadf.action.JhsDataActionSaveObstaculos" className="oracle.jheadstart.controller.strutsadf.action.JhsDataActionMapping" parameter="/WEB-INF/page/S2PopUpObstaculos.uix" name="DataForm">
    <set-property property="modelReference" value="S2AltaSociais2UIModel"/>
    <set-property property="bindParams" value="S2DominiosLevel1Iterator=${data.S2AltaSociais2UIModel.Obstaculo},${data.S2AltaSociais2UIModel.AlsEpsPsId},${data.S2AltaSociais2UIModel.AlsEpsId},${data.S2AltaSociais2UIModel.Obstaculo}"/>
    </action>
    But now, the problem is, if I don't select one Row from table1 and press the button to go to page2, I need to pass diferent parameters to page 2, like this:
    <set-property property="bindParams" value="S2DominiosLevel1Iterator=0,${data.S2AltaSociais2UIModel.AlsEpsPsId},${data.S2AltaSociais2UIModel.AlsEpsId},0"/>
    </action>
    Do you have any ideia how to do this? Can you help me?
    Thanks,
    Atena

  • How to insert a new Row in table - Need help

    Hi everyone,
    I'm using JHeadstart 10.1.2, UIX pages and STRUTS.
    This is my situation: My page1 has a table (table1) and when I select one line from table1 and press a button, I go to page 2.
    I have an action in the Struts-Config.xml file, so I can pass some parameters to page2, like this:
    <action path="/S2PopUpObstaculos" <=PAGE2 type="oracle.jheadstart.controller.strutsadf.action.JhsDataActionSaveObstaculos" className="oracle.jheadstart.controller.strutsadf.action.JhsDataActionMapping" parameter="/WEB-INF/page/S2PopUpObstaculos.uix" name="DataForm">
    <set-property property="modelReference" value="S2AltaSociais2UIModel"/>
    <set-property property="bindParams" value="S2DominiosLevel1Iterator=${data.S2AltaSociais2UIModel.Obstaculo},${data.S2AltaSociais2UIModel.AlsEpsPsId},${data.S2AltaSociais2UIModel.AlsEpsId},${data.S2AltaSociais2UIModel.Obstaculo}"/>
    </action>
    But now, the problem is, if I don't select one Row from table1 and press the button to go to page2, I need to pass diferent parameters to page 2, like this:
    <set-property property="bindParams" value="S2DominiosLevel1Iterator=0,${data.S2AltaSociais2UIModel.AlsEpsPsId},${data.S2AltaSociais2UIModel.AlsEpsId},0"/>
    </action>
    Do you have any ideia how to do this? Can ayone help me?
    Thanks,
    Atena
    Message was edited by:
    Atena

    Hi Sascha,
    thanks very much for your replay.
    My project changed and I have another question about this. My page1 has a table (table1) and when I select one line from table1 and press a button, I go to page 2.
    I have an action in the Struts-Config.xml like this in page2 (S2PopUpObstaculos):
    <action path="/S2PopUpObstaculos" type="oracle.jheadstart.controller.strutsadf.action.JhsDataActionSaveObstaculos" className="oracle.jheadstart.controller.strutsadf.action.JhsDataActionMapping" parameter="/WEB-INF/page/S2PopUpObstaculos.uix" name="DataForm">
    <set-property property="modelReference" value="S2AltaSociais2UIModel"/>
    <set-property property="bindParams" value="S2DominiosLevel1Iterator=${data.S2AltaSociais2UIModel.Obstaculo},${data.S2AltaSociais2UIModel.AlsEpsPsId},${data.S2AltaSociais2UIModel.AlsEpsId},${data.S2AltaSociais2UIModel.Obstaculo}"/>
    </action>
    But now, the problem is, if I don't select one Row from table1 and press the button to go to page2, I need to pass diferent parameters to page 2, like this:
    <set-property property="bindParams" value="S2DominiosLevel1Iterator=0,${data.S2AltaSociais2UIModel.AlsEpsPsId},${data.S2AltaSociais2UIModel.AlsEpsId},0"/>
    </action>
    Do you have any ideia how to do this? Can you help me?
    Thanks,
    Atena

  • How to insert a new rows for missing rows

    Hi,
    I have data like below.Generally the heirarchy like Manager,Supervisor,clerk and Jr.clerk. But, some times clerk directly reports to Manager that time i need to show "no supervisor" when retrive the data. Is there any way can we do that by using the sql query instead writing the procedure or function.
    The heirarchy is not only three levels. Just i have given a sample data.
    Current data :
    HrchyId                   Role                 Name
    ======                ========               =======
    1                    Manager                     Scott
    2                    Supervisor                 Mary
    3                    Clerk                     Henry
    3                    Clerk                     Tyson
    1                    Manager                     Lee
    3                    Clerk                     Murry
    1                             Manager                      Kirk
    4                             Jr Clerk                        Tony
    Output:
    HrchyId                   Role                 Name
    ======                ========               =======
    1                    Manager                     Scott
    2                    Supervisor                 Mary
    3                    Clerk                     Henry
    3                    Clerk                     Tyson
    1                    Manager                     Lee
    2                             No Supervisor               Null
    3                    Clerk                     Murry
    1                             Manager                      Kirk
    2                             No Supervisor               Null
    3                             No clerk                      Null
    4                             Jr Clerk                        TonyAppreciated your help.
    Thanks & Regards,
    RM.

    Something like this?
    with x_roles
    as   (           select 'Manager'    Role, 1 HrchyId from dual
           union all select 'Supervisor' Role, 2 HrchyId from dual
           union all select 'Clerk'      Role, 3 HrchyId from dual
           union all select 'Jr Clerk'   Role, 4 HrchyId from dual
    ,    x_employees
    as   (           select 'Manager'    Role, 'Scott' Name, 1 Hrchyid_sq from dual
           union all select 'Supervisor' Role, 'Mary'  Name, 2 Hrchyid_sq from dual
           union all select 'Clerk'      Role, 'Henry' Name, 3 Hrchyid_sq from dual
           union all select 'Clerk'      Role, 'Tyson' Name, 4 Hrchyid_sq from dual
           union all select 'Manager'    Role, 'Lee'   Name, 5 Hrchyid_sq from dual
           union all select 'Clerk'      Role, 'Murry' Name, 6 Hrchyid_sq from dual
           union all select 'Manager'    Role, 'Kirk'  Name, 7 Hrchyid_sq from dual
           union all select 'Jr Clerk'   Role, 'Tony'  Name, 8 Hrchyid_sq from dual
    ,     x_hierarchy
    as    ( select r.HrchyId
            ,      e.Role
            ,      e.Name
            ,      e.Hrchyid_sq
            from   x_employees  e
            ,      x_roles      r
            where  1=1
            and    r.role = e.role
    ,     x_missing_hrchy
    as    (
            select Hrchyid_sq
            ,      HrchyId
            ,      Name
            ,      MissingHrchy
            from   (
                     select h.Hrchyid_sq
                     ,      h.HrchyId
                     ,      h.Name
                     ,      h.HrchyId - lag( h.HrchyId ) over ( order by h.Hrchyid_sq ) - 1  MissingHrchy
                     from   x_hierarchy  h
            where  1=1
            and    MissingHrchy > 0
    select m.HrchyId - g.HrchyGen   HrchyId
    ,      'No ' || r.Role          Role
    ,      'Null'                   Name
    ,      m.Hrchyid_sq             Hrchyid_sq
    from   x_missing_hrchy      m
    ,      ( select level HrchyGen
             from   dual
             ,      ( select max( MissingHrchy ) MissingHrchy from x_missing_hrchy ) m
             connect by level <= m.MissingHrchy
           )                    g
    ,      x_roles              r
    where  1=1
    and    g.HrchyGen <= m.MissingHrchy
    and    r.HrchyId  =  m.HrchyId - g.HrchyGen
    union
    select h.HrchyId
    ,      h.Role
    ,      h.Name
    ,      h.Hrchyid_sq
    from   x_hierarchy h
    order by 4
    ,        1
       HRCHYID ROLE          NAME  HRCHYID_SQ
             1 Manager       Scott          1
             2 Supervisor    Mary           2
             3 Clerk         Henry          3
             3 Clerk         Tyson          4
             1 Manager       Lee            5
             2 No Supervisor Null           6
             3 Clerk         Murry          6
             1 Manager       Kirk           7
             2 No Supervisor Null           8
             3 No Clerk      Null           8
             4 Jr Clerk      Tony           8I've used the queries x_roles, x_employees and x_hierarchy to generate the data you've provided.
    Query x_missing_hrchy determines for each Hrchyid_sq how many managers are missing:
    with ..
    select *
    from    x_missing_hrchy
    HRCHYID_SQ    HRCHYID NAME  MISSINGHRCHY
             6          3 Murry            1
             8          4 Tony             2Murry misses one supervisor and Tony misses two supervisors.
    For each missing supervisor I need to create a row. For that I use the connect by clause:
    with ..
    select m.Hrchyid_sq
    ,      m.HrchyId
    ,      m.Name
    ,      g.HrchyGen
    ,      m.HrchyId - g.HrchyGen MissingHrcyId
    from   x_missing_hrchy      m
    ,      ( select level HrchyGen
             from   dual
             ,      ( select max( MissingHrchy ) MissingHrchy from x_missing_hrchy ) m
             connect by level <= m.MissingHrchy
           )                    g
    where  1=1
    and    g.HrchyGen <= m.MissingHrchy
    order by m.Hrchyid_sq
    ,        5
    HRCHYID_SQ    HRCHYID NAME    HRCHYGEN MISSINGHRCYID
             6          3 Murry          1             2
             8          4 Tony           2             2
             8          4 Tony           1             3After that you just select the name of the missing role and add the original hierarchy to the set to get the requested output:
    with ..
    select m.HrchyId - g.HrchyGen   HrchyId
    ,      'No ' || r.Role          Role
    ,      'Null'                   Name
    ,      m.Hrchyid_sq             Hrchyid_sq
    from   x_missing_hrchy      m
    ,      ( select level HrchyGen
             from   dual
             ,      ( select max( MissingHrchy ) MissingHrchy from x_missing_hrchy ) m
             connect by level <= m.MissingHrchy
           )                    g
    ,      x_roles              r
    where  1=1
    and    g.HrchyGen <= m.MissingHrchy
    and    r.HrchyId  =  m.HrchyId - g.HrchyGen
    union
    select h.HrchyId
    ,      h.Role
    ,      h.Name
    ,      h.Hrchyid_sq
    from   x_hierarchy h
    order by 4
    ,        1
       HRCHYID ROLE          NAME  HRCHYID_SQ
             1 Manager       Scott          1
             2 Supervisor    Mary           2
             3 Clerk         Henry          3
             3 Clerk         Tyson          4
             1 Manager       Lee            5
             2 No Supervisor Null           6
             3 Clerk         Murry          6
             1 Manager       Kirk           7
             2 No Supervisor Null           8
             3 No Clerk      Null           8
             4 Jr Clerk      Tony           8Cheers Danny

  • How to insert the data even the trigger returned null

    Hi Gurus,
    I have a question regarding on how to insert the record even the condition being used by a "before insert trigger" returned null.
    The scenario is:
    2 tables have the same structure:
    Table A (Name varchar2 (100), No Number)
    Table B (Name_1 varchar2 (100), No Number)
    A script is using to load the data into table A daily, and a “before insert trigger” is being used to get the value for A.Name = B.Name whenever the condition A.No equals to B.No.
    If the B.No exists, then the trigger work fine, otherwise the records will be rejected, this is not the way we wanted, so I just wonder, is there any way to load all the data to the other fields but still using this trigger ?
    Thanks,
    Tran

    Either amend the select in the trigger that gets the name value to not raise a NO_DATA_FOUND exception (e.g. change "select name..." to "select min(name)..." ) or handle the NO_DATA_FOUND exception in an exception handler.
    e.g.
    EXCEPTION
      WHEN no_data_found THEN
        :new.name = 'where the streets have no name';

  • BAPI to insert a new row in the MCHA table

    Hi all,
    I am in search of a BAPI to insert a new row in the MCHA table... with the fields of the materail, plant and batch values.
    Any inputs on this..is highly appreciable...
    thanks in advance...
    regards..
    prathima.

    explore BAPI_BATCH_CREATE

  • BAPI to insert a new row in the AUSP table

    Hi all,
    I am in search of a BAPI to insert a new row in the AUSP table... with the fields of the object and
    characteristic values.
    Any inputs on this..is highly appreciable...
    thanks in advance...
    regards..
    prathima.

    hi,
    from best of my knowledge  here is list of bapi through you can insert ausp table.
    check it.
    CLSE_SELECT_AUSP
    CLVF_INSERT_AUSP
    BAPI_CLASS_CREATE
    C14K_AUSP_CHANGE_VALUE
    CLSE_SELECT_AUSP
    CLVF_UPDATE_AUSP
    C14K_AUSP_ADD_UPD
    BAPI_CLASS_CREATE
    regards,
    vipul

  • How to insert the new field to standard scheduling agreement script form.

    Hi Gurus,
    how to insert the new fields to standad sheduling agreement script form. its a need for me, i want to display the AEDAT field in scheduling agreement form ,
    The below one is my requirement,
    ex:-   Itu2019s requested the change of Scheduling Agreement printout. Itu2019s requested for this type of   document, the insertion, into the field u201CData Emissionu201D into the print, of the document last modify date instead of the document creation date. (This change will be done only for position change into the Scheduling Agreement). No change into the PO.
    Change SAPSCRIPT printout. Introduction, into the Scheduling Agreement, of last modified  
          document date (field EKPO-AEDAT).
    Thanks & Regards
    chinnu

    open TNAPR table and give the output type you need to modify.... get the print program name and check if some structure already have the date you wanted... if you have it already... then open the form in SE71 tr. and provide the strcuture name - feild in the position you want to have the date...
    se71--->
    &<str. name>-AEDAT&

  • Hello. I just know the muse and I need an organization of customers in alphabetical order. The problem is that you will always get new customers. I need to know how to insert a new customer (square) and it already comes in alphabetical order on the page.

    Hello.
    I just know the muse and I need an organization of customers in alphabetical order. The problem is that you will always get new customers. I need to know how to insert a new customer (square) and it already comes in alphabetical order on the page. The site will be like in the link below, and each client will be a window of these: http://www.connary.com/. I look back.
    A hug, Murilo.

    I believe you are referring to thumbnail image rectangles as customers on page ? not exactly customer database ?
    You can add rectangle with different effects with mouse rollover state and regarding adding new ones , you would need to do that manually in design mode .
    Thanks,
    Sanjit

  • In zfile how to insert the row (urgent)

    hello,
    i am making the zfile of standard programme, in that zfile how to insert the row for remarks, while making the zfile, in programme nothing is displaying i mean codes, how to identify and insert the row for remarks please explain at your earliest.
    thanks
    suja

    hello,
    thanks for your rely,
    again having the problem of while clicking the insert button, the insert button is not not accessing, insert button is not responding.
    Also i want to know the original programmes codes i have copy and paste the same in my zprogramme or what, please let me know after what i have to do.
    thanks
    suja

  • How to Insert the row in the View object

    I want to insert the row in the view object by instantiating Impl.java file
    Could someone please let me know how to insert the blank row
    Thanks

    Inserting onto a view object should be done the following way:
    //vo is your view object
    Row aRow = vo.createRow();
    //Set your attributes
    aRow.setAttribute("AttributeName", objectValue);
    //insert
    vo.insertRow(aRow);
    That should work for you if you are programming the input. If you are using java components bound to columns in a view object then the input should be done automatically for you when you commit.

  • If Both tables having References then how to insert the data each other

    Hai EveryOne..,
    My Sample data.,
    Create table emp (empno number primary key,ename varchar2(20));
    Create table emp_dup (empno number references emp(empno),ename varchar2(20) primary key);
    alter table emp add constraint ename_fk foreign key(ename) references emp(ename);
    My Question is How to insert the data into these two tables?
    Its a *"Circular Reference"* Concept.
    Please ...
    Thank You!!

    You need to set the DEFERRED clause of the constraint when you create your foreign key as DEFERRABLE by which you can move the constraint validation at transaction level.
    In an interview point of view that could be a reasonable answer. But in real time this could be strongly questionable.
    Here is an example
    SQL> create table emp1 (empno number, ename varchar2(10))
      2  /
    Table created.
    SQL> create table emp2 (empno number, ename varchar2(10))
      2  /
    Table created. Define Primary Key for two tables
    SQL> alter table emp1 add constraint emp1_pk primary key (empno)
      2  /
    Table altered.
    SQL> alter table emp2 add constraint emp2_pk primary key (ename)
      2  /
    Table altered. Add foreign key for two tables with DEFERRED clause set as DEFERRABLE
    SQL> alter table emp1 add constraint emp1_fk foreign key (ename) references emp2(ename) initially deferred deferrable
      2  /
    Table altered.
    SQL> alter table emp2 add constraint emp2_fk foreign key (empno) references emp1(empno) initially deferred deferrable
      2  /
    Table altered. Now here is the test case
    SQL> insert into emp1 values (1, 'karthick')
      2  /
    1 row created.
    SQL> commit      
      2  /
    commit
    ERROR at line 1:
    ORA-02091: transaction rolled back
    ORA-02291: integrity constraint (ARBORU.EMP1_FK) violated - parent key not found So the validation is done at Transaction level. Now let insert the value into both tables.
    SQL> insert into emp1 values (1, 'karthick')
      2  /
    1 row created.
    SQL> insert into emp2 values (1, 'karthick')
      2  /
    1 row created.
    SQL> commit
      2  /
    Commit complete.

Maybe you are looking for