Skip to Content
author's profile photo Former Member
Former Member

how to use create, delete, modify butttons in a table

hi all

in my application i have emp table in my source view

in that table i have inserted static data in columns i.e., empid, empname. i have 3 buttons create, delete, modify buttons in that table. when i press Create button it navigates to another view1 in which we have a emp form with create new emp button and labels empid, empname and 2 input fields.After filling the form when hit the create newemp button the form data should be displayed in the table.

The same for Modify and delete. i.e., when i select a particular empid row in my source view table and hit the modify button it should navigate to view2 in which the particular record form with data displays and after making necessary modifications the modified data should be display in the particular row .

For delete button, when i select a particular record in the table and hit delete button it should be deleted from the table.

any snippet of code is valuable

Thanks in advance

sravan

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 06, 2005 at 08:27 AM

    Hi Sravan,

    Do check out the following Weblog it will answer your query.Code Snippets are also provided there.

    Link :

    /people/harsh.chawla/blog/2005/03/08/table-handling-in-webdynpro

    Revert back for further assistance.

    Regards,

    Vijith

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Vijith,

      would you please so kind and send me also the code sample for thread:

      how to use create, delete, modify butttons in a table?

      I would be very very glad !

      Is there a Webservice included or what kind of model do you use?

      Thank you

      Regards Mario

  • author's profile photo Former Member
    Former Member
    Posted on Jul 04, 2005 at 11:32 AM

    Check some of the tutorials here on SDN. I'm quite sure they can answer some of your questions.

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/web dynpro tutorial and sample applications.faq

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 05, 2005 at 03:59 PM

    Hi Sravan,

    I just need a clarification, are you getting the table data from the back-end system?

    On the second view, after the user input on click of the "Create New" or "Modify" button, update the back-end. Once the update is successful, fire a plug back to the first view and reload the table or execute the model again. The updated records will be fetched from back-end system.

    On click of "Delete" button, remove the record from the back-end and execute the model again.

    This holds good if you have the data fetched from the back-end.

    Regards,

    Santhosh.C

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      hai santhosh

      in my application im not using any backend

      it will come into picture later.

      right i want to insert data into table through a form

      and modify the data through a form. table is my source view in which i have Create button which upon hitting we will get a form to be filled

      any snippet of code is valuable

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.