Addition and deletion in a table View in Visual composer 7.0

Hi All
I have a requirement of updating a table view from the entries that a user enters in an input form.
When the user makes entries in the input form and clicks on save he should see those entries in the table and these entries should also get updated in the backend.
Can anyone give me any ideas around it?
Please also let me know if VC 7.0 supports multiple actions on a click of a button?
Suppose if i create a button save on the form and implement two actions "Insert Row" and a custom action"Submit"(which eventually will hit the BAPI) in the backend to update so will it work ??
I read on SDN that in order to add or delete i would need 3 buttons atleast :ADD,(to add row),SAve(to call bapi) and Refresh(to make entry visibile) in the table.
Can anyone suggests better solution around it.
Thanks for all the pointers in advance.
Regards
Shweta

Hi Shweta,
Since tables only represent data retrieved from a backend service, I guess the correct functionality would be that the data in the form would be submitted to the proper service (that can recieve input and add it to the database), and then the table that will be connected to the output port of the service will be updated with the new data.
And sequence actions was added as a feature, so it depends on your SP level. If you can'e see it when you assign actions to a button, your SP doesn;t have it
Best regards,
Udi

Similar Messages

  • Regarding Table View In visual Composer

    Hi All,
    I am using Visual Compsoer 7.0. I have a table in my iview. When i go to the layout tab and right click the table. I cant see the options like "CUSTOMIZE TOOLBAR", where i can insert a row in my table. How can i have this option in VC 7.0?
    Regards,
    Divya.

    Hi Divya,
    Refer this pdf. It ll be useful to u
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c617533c-0a01-0010-b88e-a6e8e2e419c9">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c617533c-0a01-0010-b88e-a6e8e2e419c9</a>
    Regards,
    Hemalatha

  • Insert, update and delete on updatable join views

    Hi I need to insert, update and delete data in a views. I tried the foloing example
    http://download-uk.oracle.com/docs/cd/B14117_01/server.101/b10739/views.htm#i1006232
    We have two tables:
    CREATE TABLE dept (
    deptno NUMBER(4) PRIMARY KEY,
    dname VARCHAR2(14),
    loc VARCHAR2(13));
    CREATE TABLE emp (
    empno NUMBER(4) PRIMARY KEY,
    ename VARCHAR2(10),
    job VARCHAR2(9),
    mgr NUMBER(4),
    sal NUMBER(7,2),
    comm NUMBER(7,2),
    deptno NUMBER(2),
    FOREIGN KEY (DEPTNO) REFERENCES DEPT(DEPTNO));
    and one view:
    CREATE VIEW emp_dept AS
    SELECT emp.empno, emp.ename, emp.deptno, emp.sal, dept.dname, dept.loc
    FROM emp, dept
    WHERE emp.deptno = dept.deptno
    AND dept.loc IN ('DALLAS', 'NEW YORK', 'BOSTON');
    this update command works successfully
    UPDATE emp_dept
    SET sal = sal * 1.10
    WHERE deptno = 10;
    but this one fails because it attempts to modify the base dept table, and the dept table is not key preserved in the emp_dept view.:
    UPDATE emp_dept
    SET loc = 'BOSTON'
    WHERE ename = 'SMITH';
    I tried to create the view with "WITH CHECK OPTION" clause but whith no success :(
    My question is: how can I do this with a simple across this view. I rather not use Instead Of Trigger because it take a lot of PL/SQL code :(
    thanks in advance
    Operator

    UPDATE emp_dept
    SET loc = 'BOSTON'
    WHERE ename = 'SMITH';But that doesn't make sense. You cannot just LOC for SMITH, because LOC is not an attribute of EMP. If you change the LOC in the view then you must change it for all employees in DEPT 30 (or whatever).
    The key preserved thing is merely about maintaining your data integrity.
    I rather not use Instead Of Trigger because it take a lot of PL/SQL code :(The problem is, your business rule is not clear. Are you wanting to change the LOC for the DEPT record which is the DEPTNO to which SMITH belongs? Or are you wanting to change SMITH's DEPTNO to be the one for the BOSTON office?
    Cheers, APC

  • Disable sorting and resizing columns on table view

    Is there a way to disable sorting and resizing columns on table view?
    Thanks

    Use
    setSortable(false)
    setResizable(false)
    on each TableColumn

  • How to "group by" and display  in separated table views

    What cloud be the approach to the following scenario:
    1) A RFC returns a list of lot of invoices.
    2 How to group by "customer code" and display in separated table views  for each customer "group of invoices" ?
    Is there a way to do this using VC or only using WebDynpro ?
    thanks

    Issac,
    you dont hv to do this using dynpro. you can achieve this in vc by using the 'Filter' operator. from the output port of the rfc, feed the results to multiple filters. hv one filter for each segregation (for eg for each customer code). Then feed these filtered entries to the table views.
    prachi

  • How to  create i view  in visual composer give details screenshots

    how to  create i view  in visual composer give details screenshots

    Hi,
    Go through these threads
    VisualComposer
    http://help.sap.com/bp_epv170/EP_US/HTML/Executive_Cockpit.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1752b737-0401-0010-0ba3-87c3eda8c6ce
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e019d290-0201-0010-f186-8630a949800a
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30987099-a74c-2a10-70b5-a2751ce79359
    http://help.sap.com/saphelp_nw04/helpdata/en/fd/4a7e40417c6d1de10000000a1550b0/content.htm
    Tarak
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00b9ba6d-1291-2a10-208d-bd27544e7939

  • Using Insert and Delete icons in table control wizard.

    Can anyone tell me how to perform a new row insertion or deletion in a table created using the table control wizard.
    I see there is a form fcode_insert_row and fcode_delete_row, but dont know how to call them and what parameters to pass and all.
    Since iam new to SAP-ABAP, some code samples will be a great help.
    Thanks to all in advance.

    Hi Lavanya ,
    You have to add the icons personally in the table control.. . Put fcode for addition button as INSE and delete as DELE ..coding will be already thr in the wizard no need to anything just add icons in the table control by selecting from f4 help on icons option of screen.
    Thanks,
    Vishnu .

  • Problem with creating and deleting row in table

    Hi
    I'm using JDev11.1.1.2.0. I have a table "A" with primary key X -> CHAR(1). I have created Entity and ViewObject (with the primary key X).
    I created an editable Table with CreateInsert and Delete actions.
    When I click Insert, a new record is added and I enter some data. Then I move selection to some other row, and return back to the new row. When I press Delete, It does not delete the new row, but the previous one selected.
    In the console, when I navigate back two the new added record: <FacesCtrlHierBinding$FacesModel><makeCurrent> ADFv: No row found for rowKey: [oracle.jbo.Key[null ]].
    I tried the same scenario with a different table, that has RowID as a primary key and it works correctly.
    Any Idea why this is happening ? I suppose it's connected somehow with the primary key.
    Thanks
    agruev
    Edited by: a.gruev on Nov 26, 2009 9:47 AM

    I changed my entity: unchecked the X column to be primary key added RowID as a primary key. Now it works.
    What's wrong with my CHAR(1) as a primary key ?
    I also tried to add a Refresh button:
      <af:commandButton text="Refresh" id="cb3"/>and in the table add a partialTarget to the button. Now when I add new row and press the Refresh button - then it works.
    So it seems that the problem is when I add new row and enter data, the table is not refreshed and the row is missing it's primary key.
    Any solutions?
    Edited by: a.gruev on Nov 26, 2009 4:18 PM

  • Alv data upload and delete in database table

    hi .
       i have done data save in date base but not update and delete..writen this code..
    form save_data.
      CALL METHOD cont_editalvgd->check_changed_data.
      IF lt_display EQ it_city.
        MESSAGE s002(00) WITH 'No data changed'.
      ELSE.
        CLEAR: gd_answer.
        CALL FUNCTION 'POPUP_TO_CONFIRM'
          EXPORTING
            text_question  = 'Save_data?'
          IMPORTING
            answer         = gd_answer
          EXCEPTIONS
            text_not_found = 1
            OTHERS         = 2.
           delete
        IF sy-subrc EQ 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        IF ( gd_answer = '1' ). " yes
            lt_display = it_city.
         else.
         MESSAGE s001(00) WITH 'Action cancelled by user' .
         endif.
         endif.
        DELETE ADJACENT DUPLICATES FROM it_city.
       update zmg_city1 from it_city.
        MODIFY zmg_city1 FROM TABLE it_city.
    *DELETE  zmg_city1  FROM it_city.
        clear it_city.
        COMMIT WORK.
       else.
         DELETE ADJACENT DUPLICATES FROM it_city.
      IF SY-SUBRC EQ 0.
         DELETE ADJACENT DUPLICATES FROM it_city.
         update zmg_city1 from it_city.
        COMMIT WORK.
      endif.
    *ent rows from it_city
       DELETE ADJACENT DUPLICATES FROM it_city.
       update zmg_city1 from it_city.
    endform.                    "save_data
    not working update and delete ...plz say

    hi .
       i have done data save in date base but not update and delete..writen this code..
    form save_data.
      CALL METHOD cont_editalvgd->check_changed_data.
      IF lt_display EQ it_city.
        MESSAGE s002(00) WITH 'No data changed'.
      ELSE.
        CLEAR: gd_answer.
        CALL FUNCTION 'POPUP_TO_CONFIRM'
          EXPORTING
            text_question  = 'Save_data?'
          IMPORTING
            answer         = gd_answer
          EXCEPTIONS
            text_not_found = 1
            OTHERS         = 2.
           delete
        IF sy-subrc EQ 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        IF ( gd_answer = '1' ). " yes
            lt_display = it_city.
         else.
         MESSAGE s001(00) WITH 'Action cancelled by user' .
         endif.
         endif.
        DELETE ADJACENT DUPLICATES FROM it_city.
       update zmg_city1 from it_city.
        MODIFY zmg_city1 FROM TABLE it_city.
    *DELETE  zmg_city1  FROM it_city.
        clear it_city.
        COMMIT WORK.
       else.
         DELETE ADJACENT DUPLICATES FROM it_city.
      IF SY-SUBRC EQ 0.
         DELETE ADJACENT DUPLICATES FROM it_city.
         update zmg_city1 from it_city.
        COMMIT WORK.
      endif.
    *ent rows from it_city
       DELETE ADJACENT DUPLICATES FROM it_city.
       update zmg_city1 from it_city.
    endform.                    "save_data
    not working update and delete ...plz say

  • How to perform insert, update and delete in a table component

    hi all,
    i am using a table component in my page. I want to retreive data from multiple tables as well as perform insertion, updation and deletion operation.The changes should be affected in the corresponding tables. can anyone provide a solution for my problem.
    Thanks in advance
    regards,
    prasant

    There is a great tutorial for insert, update and delete records in a table.
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/inserts_updates_deletes.html
    Hope it helps.
    Thanks,
    Moumita

  • Rename title column and delete a column into view custom list

    Hi;
    I try to create a new custom list with only 2 column DEC et DSCC and I would like to rename or change the title column (Titre in french) with the name "DEC" and next hide or delete into the view "All elements" the column attached file ("Pièces
    jointes" in french).
    My code is :
    function CreateCustomList
      param(
      [string]$web
    $spWeb = Get-SPWeb -Identity $web
    $list=$spWeb.Lists.TryGetList($listeEspaceRTO)
    if($list -eq $null)
     $spTemplate = $spWeb.ListTemplates["Liste personnalisée"]
     $spListCollection=$spWeb.Lists
     $spListCollection.Add($listeEspaceRTO,"Liste espace RTO",$spTemplate)
     $path = $spWeb.url.trim()
     $spList = $spWeb.GetList("$path/Lists/$listeEspaceRTO")
     $spList.Fields.Add("DSCC","URL",$false)
     $Views = $spList.Views["Tous les éléments"]
     //$Views.ViewFields.delete("Pièces jointes")
     //$Views.ViewFields.Add("DEC")
     $Views.ViewFields.Add("DSCC")
     $Views.Update()
    else
      write-host -f yellow "la doc lib" $listeEspaceRTO "exits"
    $spWeb.dispose()
    The custom list is correctly created but with Title and the column "Pièces jointes" into the view.
    Regards

    Hi,
    Glad to hear that you solve this issue, thanks for your sharing.
    Thanks,
    Linda Li
    Linda Li
    TechNet Community Support

  • Check box in tabel view?when to use itereator and when to use table view

    hi,
    I want to have a check box along with the other 7fields  in the table view.
    when the checkbox is checked and the merge complete push button is clicked, the respective code for merge is to be executed.
    how can I do this?
    could anyone tell me hw to get a check boz in table view
    when to use a  iterator in BSP, how table view n iterator in comparision ae used or function/work.
    Regards,
    Pavan P.

    Hi Pavan,
    Table View is an BSP element used to display mass data in a layout similar to a table (table view).
    <b>Iterator</b>is an attribute to modify rendering row-by-row, and make it dependent on the clicked row. In this way, you define an action from a particular line. This action is defined in columnDefinitions or overWriteDefinitions.
    <htmlb:tableView id = "tvX"
                     headerText          = "Department List"
                     design              = "standard"
                     headerVisible       = "true"
                     width               = "30%"
         selectedRowKeyTable = "<%= selectedrowindextable %>"
         onRowSelection      = "MyEventRowSelection"
         sort                = "server"
         keepSelectedRow     = "TRUE"
         selectionMode       = "MULTISELECT"
         table               = "<%= i_dept %>" >
    </htmlb:tableview>
    In your <b> OnInputProcessing </b>, Use this Iterator table to get the data of selected records.
    IF selectedrowindextable[] IS NOT INITIAL.
    DESCRIBE TABLE selectedrowindextable LINES no .
    Rgds,
    Jothi.
    Pls do close the thread if ur problem is solved.

  • Unable to update and delete record in table

    Hello All,
    Kindly help me regarding the below mentioned issue plz
    When I want to update or delete record in table from form developed in 6i give no error message but no action and when I run same form on other system updation and deletion are successfully done.
    Any suggestion

    Hello
    More explanation is as under:
    1. I am working on only one table say A
    2. Wants to update only one row of Table A at one time in single user envoirment.
    3. My form is successfully update some rows as well but not on all rows on one PC while same form able to update all rows on other PC.
    4. I drop the table and re-create the table again but problem persist.
    Any advice plz.

  • EPMA Deploy - Additions and Delete for same member on Compare

    We migrated our Account dimension from another environment, but it didn't have some members we had in the source environment, so on the Compare from EPMA, it was showing some members were going to be Deleted. So we imported back our original Account dimensions, and now on the compare it shows the members that were going to be deleted as Deleted, but it also shows them as Additions.
    There are 34 Additions and 34 Deletes and they are all the same members for both. What happens if we deploy? Will it delete the member first, then add the member? If that was the case, then we are going to lose our data for those members.
    Can anyone offer any insight on what would happen if we deployed, or how to get the system to ignore these Deletes and Additions since there really isn't any.

    We discovered the issue was a SQL trigger that was active for this database in error. Once the trigger was removed the creation worked fine.

  • Help abt store and delete images as blob & bfile using Visual C++

    Hi
    Does anyone knows if there is code for visual c++
    to store and delete images as blob or bfile?
    thanx

    The documentation states there are examples in the oracle database distribution: <ORACLE_HOME>/rdbms/demo/cdemolb.c <ORACLE_HOME>/rdbms/demo/cdemolb2.c <ORACLE_HOME>/rdbms/demo/cdemolbs.c
    These examples are in c, but can be used in c++
    http://otn.oracle.com/doc/server.815/a67846/app_exam.htm#430289

Maybe you are looking for