Deleting Personal views of ALV from database

Hi All,
Is there any database table where we store the personal views of user for ALV?
If there is one how can we delete it?
Best Regards,
Arti.

I'm sure it is stored in the DB and you can always do a SQL trace to find out where.  SQL trace is a great way to find out where anything is stored.  I did a quick SQL trace and it appears that the views are stored in WDY_CONF_USER and WDY_CONF_USERT (for the language depend text description). The component name is SALV_WD_TABLE.
However direct manipulation of this table by your own coding would not be supported by SAP and could potentially be quite dangerous.  I can't recommend that you should write your own program to remove entries. There is a Web Dynpro ABAP application however that lets you do some editing and deleting of user configuration.  It is WD_ANALYZE_CONFIG_USER.  It looks like you can mark several entries and delete them in mass.  You can also transport entries.  Just search for all configs for component SALV_WD_TABLE.  You can also search by user.

Similar Messages

  • WHAT IF I DELETE THE SYSTEM06.DBF FILE FROM DATABASE /U01/DB/apps_ sid / system06.dbf and how to recover it in apps

    WHAT IF I DELETE THE SYSTEM06.DBF FILE FROM DATABASE /U01/DB/apps_<sid>/ system06.dbf and how to recover it in apps

    Hi,
    First of all you must Open a ticket with oracle Support and explore the options
    You can use this note to fix it:
    RECOVERING FROM A LOST DATAFILE IN A UNDO TABLESPACE [ID 1013221.6]
    If you is Unable to Drop Undo tablespace Since Undo Segment is in Needs Recovery
    You can Upload the following trace file while opening the ticket
    SQL>Alter session set tracefile_identifier='corrupt';
    SQL>Alter system dump undo header "<new of undo segment in recover status>";
    Go to udump
    ls -lrt *corrupt*
    Upload this trace file
    Also upload the alert log fileRegards,
    Levi Pereira
    Edited by: Levi Pereira on Nov 29, 2011 1:58 PM

  • How to delete previously deleted files off iphone PERMANENTLY from database

    Someone I happen to know hacked my iPhone 4s. They took my iPhone when I left it out. They plugged it into their Macbook and used software I beleive called Wondershare Data Recovery, to raid my phone and go through confidential files I had previously deleted on my phone. They went through text messages, photos and files that were personally confidential to myself. They made it aware they did this because they personal told me they would continue "tracking" what I do on my phone because my files will be backed up onto their computer. I was also made aware that after I decided to put a password on my phone, the person told me "It doesnt matter if you put a password on the phone since my phone is now ENCRYPTED with the laptop".
    My first question is how do I go about this situation. Is there a program i can use to fully erase all the "deleted" files i thought were deleted previously on my phone? Is there a data base i can PERMANENTLY delete my files from so they can never be acessed in a data base in the future?
    How do I make sure i dont continue to get stalked by this "close friend" in the future?

    If you have permanently deleted iPhone file thoroughly, No one can get you personal information and data from iPhone,after you sell, donate or give it away.
    To permanently delete photo,video and other files on iPhone,you can use a iPhone data eraser,there are some iPhone data eraser software in the market, but few can be completely and permanently delete the data on iPhone, even if data has been cleared, some professional iPhone data recovery software can recover them later.
    Please read this use guide about how to Permanently Erase iPhone Data Before Selling your iPhone.So
    <Link Edited By Host>

  • Deletion of condition record (vk11) from Database

    Dear,
    can anybody tell me how to delete condition record completely from database nt delettion flag.
    regards,
    Debesh

    Hi,
    I think archive the condition record is better option for you insted of deleting it !!!!
    For archiving please go through the below link.
    http://help.sap.com/saphelp_45b/helpdata/en/8d/3e5ae4462a11d189000000e8323d3a/content.htm
    Hope this will help you to resolve your query!
    Regards,
    KRishna O

  • View in image from database

    hi will i be able to view image from my database using this class, am using jdeveloper 11g release 2
    package TaskFlowView;
    import java.io.BufferedInputStream;
    import java.io.IOException;
    import java.io.OutputStream;
    import java.sql.Blob;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.sql.DataSource;
    public class ImageServlet extends HttpServlet {
        private static final String CONTENT_TYPE =
            "image/jpg; charset=utf-8";
         * @param config
         * @throws ServletException
        public void init(ServletConfig config) throws ServletException {
            super.init(config);
         * @param request
         * @param response
         * @throws ServletException
         * @throws IOException
        public void doGet(HttpServletRequest request,
                          HttpServletResponse response) throws ServletException,
                                                               IOException {
            response.setContentType(CONTENT_TYPE);
            response.setContentType(CONTENT_TYPE);
            String detailDocumentId = request.getParameter("detail");
            String thumbnailDocumentId = request.getParameter("thumbnail");
            boolean thumbnail = true;
            String DocumentId = null;
            OutputStream os = response.getOutputStream();
            Connection conn = null;
            try {
                Context ctx = new InitialContext();
                DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/SMSDEV");
                conn = ds.getConnection();
                PreparedStatement statement = conn.prepareStatement(
                  "SELECT file_name, " +
                  "dlin.id, " +
                  "FROM  sms_document_links dlin " +
                  "sms_document_references dref" +
                  "WHERE dref.id = ?" +
                  "dref.dlin_id = dlin.id");
                if (detailDocumentId != null) {
                    DocumentId = detailDocumentId;
                    thumbnail = false;
                } else {
                    DocumentId = thumbnailDocumentId;
                statement.setString(1,(thumbnail ? "Y" : "N"));           
                statement.setInt(2, new Integer(DocumentId));
                ResultSet rs = statement.executeQuery();
                if (rs.next()) {
                    Blob blob = rs.getBlob("IMAGE");
                    BufferedInputStream in = new BufferedInputStream(blob.getBinaryStream());
                    int b; byte[] buffer = new byte[10240];
                    while ((b = in.read(buffer, 0, 10240)) != -1) { os.write(buffer, 0, b); }
                    os.close();
            } catch (Exception e){
                System.out.println(e);
            } finally {
                try{
                    if (conn != null){
                         conn.close();
                 } catch (SQLException sqle){
                     System.out.println("SQLException error");
        }Edited by: Tshifhiwa on 2012/05/29 1:52 PM
    Edited by: Tshifhiwa on 2012/05/29 1:56 PM

    hi this what i have done, am still having error with my iterator line= DCIteratorBinding lBinding = lBindingContainer.findIteratorBinding(sms4200ModuleDataControlIter),the error say type or variable sms4200ModuleDataControlIter not found but thats the name in my page defination,and is this the class i must write this method
    import com.sun.rowset.internal.Row;
    import com.sun.xml.internal.messaging.saaj.packaging.mime.internet.ContentType;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.sql.SQLException;
    import oracle.jbo.domain.BlobDomain;
    import oracle.jbo.domain.Timestamp;
    import oracle.jbo.server.AttributeDefImpl;
    import oracle.jbo.server.EntityImpl;
    import oracle.jbo.server.ViewRowImpl;
    import javax.faces.event.ValueChangeEvent;
    import org.apache.myfaces.trinidad.model.UploadedFile;
    import javax.faces.application.FacesMessage;
    import javax.faces.context.FacesContext;
    import javax.faces.event.ValueChangeEvent;
    import oracle.adf.model.binding.DCBindingContainer;
    import oracle.adf.model.binding.DCIteratorBinding;
    import oracle.adf.model.BindingContext;
    import oracle.adf.model.binding.DCIteratorBindingDef;
    import sms4200.common.SmsDocumentLinksViewRow;
    import sun.misc.IOUtils;
    // ---    File generated by Oracle ADF Business Components Design Time.
    // ---    Wed May 30 13:12:49 CAT 2012
    // ---    Custom code may be added to this class.
    // ---    Warning: Do not modify method signatures of generated methods.
    public class SmsDocumentLinksViewRowImpl extends ViewRowImpl implements SmsDocumentLinksViewRow {
        public static final int ENTITY_SMSDOCUMENTLINKS = 0;
        private static final String CONTENT_TYPE =
            "image/jpg; charset=utf-8";
            DocumentImage {
                public Object get(SmsDocumentLinksViewRowImpl obj) {
                    return obj.getDocumentImage();
                public void put(SmsDocumentLinksViewRowImpl obj, Object value) {
                    obj.setDocumentImage((BlobDomain)value);
      public static final int DOCUMENTIMAGE = AttributesEnum.DocumentImage.index();
        public BlobDomain getDocumentImage() {
            return (BlobDomain) getAttributeInternal(DOCUMENTIMAGE);
         * Sets <code>value</code> as attribute value for DOCUMENT_IMAGE using the alias name DocumentImage.
         * @param value value to set the DOCUMENT_IMAGE
        public void setDocumentImage(BlobDomain value) {
            setAttributeInternal(DOCUMENTIMAGE, value);
        private BlobDomain createBlobDomain(UploadedFile file)
            // init the internal variables
            InputStream in = null;
            BlobDomain blobDomain = null;
            OutputStream out = null;
            try
                // Get the input stream representing the data from the client
                in = file.getInputStream();
                // create the BlobDomain datatype to store the data in the db
                blobDomain = new BlobDomain();
                // get the outputStream for hte BlobDomain
                out = blobDomain.getBinaryOutputStream();
                // copy the input stream into the output stream
        39               * IOUtils is a class from the Apache Commons IO Package (http://www.apache.org/)
        40               * Here version 2.0.1 is used
        41               * please download it directly from http://projects.apache.org/projects/commons_io.html
        42               */
                IOUtils.copy(in, out);
            catch (IOException e)
                e.printStackTrace();
            catch (SQLException e)
                e.fillInStackTrace();
            // return the filled BlobDomain
            return blobDomain;
        public void uploadFileValueChangeEvent(ValueChangeEvent valueChangeEvent){
                    // The event give access to an Uploade dFile which contains data about the file and its content
                    // Get the original file name
                    UploadedFile file = (UploadedFile) valueChangeEvent.getNewValue();
                    // Get the original file name
                    String fileName = file.getFilename();
                    String contentType = CONTENT_TYPE.valueOf(fileName);
                        //get(fileName);
                    // get the current roew from the ImagesView2Iterator via the binding
                    DCBindingContainer lBindingContainer =
                        (DCBindingContainer) BindingContext.getCurrent().getCurrentBindingsEntry();
                   // DCIteratorBinding lBinding = lBindingContainer.findIteratorBinding(&quot;sms4200ModuleDataControlIter&quot;);
                      DCIteratorBinding lBinding = lBindingContainer.findIteratorBinding(sms4200ModuleDataControlIter);
                    Row newRow = (Row)lBinding.getCurrentRow();
                    // set the file name
                    //newRow.setAttribute(&quot;DOCUMENTIMAGE&quot; fileName);
                    newRow.setColumnObject(DOCUMENTIMAGE, fileName);
                    // create the BlobDomain and set it into the row
                   // newRow.setAttribute(DOCUMENTIMAGE, createBlobDomain(file));
                    newRow.setColumnObject(DOCUMENTIMAGE, createBlobDomain(file));
                    // set the mime type
                    //newRow.setAttribute(&quot;ContentType&quot;, contentType);
                    newRow.setColumnObject(DOCUMENTIMAGE,contentType);                                                       
    my PageDef file is
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel" version="11.1.2.60.81" id="sms4200PageDef"
                    Package="SmsFrontUI.pageDefs">
      <parameters/>
      <executables>
        <variableIterator id="variables"/>
        <iterator Binds="ViewObj1" RangeSize="25" DataControl="TaskFlowAppModuleDataControl" id="ViewObj1Iterator"/>
        <iterator Binds="sms4200_1" RangeSize="25" DataControl="TaskFlowAppModuleDataControl" id="sms4200_1Iterator"/>
        <iterator id="sms4200ModuleDataControlIter" DataControl="sms4200ModuleDataControl" RangeSize="25"
                  Binds="SmsDocumentLinksView1"/>
      </executables>
      <bindings>
        <attributeValues IterBinding="ViewObj1Iterator" id="IntegrationTypeName">
          <AttrNames>
            <Item Value="IntegrationTypeName"/>
          </AttrNames>
        </attributeValues>
        <attributeValues IterBinding="ViewObj1Iterator" id="Name">
          <AttrNames>
            <Item Value="Name"/>
          </AttrNames>
        </attributeValues>
        <attributeValues IterBinding="ViewObj1Iterator" id="LocalUpDirectory">
          <AttrNames>
            <Item Value="LocalUpDirectory"/>
          </AttrNames>
        </attributeValues>
        <attributeValues IterBinding="sms4200_1Iterator" id="IntegrationTypeName1">
          <AttrNames>
            <Item Value="IntegrationTypeName"/>
          </AttrNames>
        </attributeValues>
        <attributeValues IterBinding="sms4200_1Iterator" id="Name1">
          <AttrNames>
            <Item Value="Name"/>
          </AttrNames>
        </attributeValues>
        <attributeValues IterBinding="sms4200_1Iterator" id="LocalUpDirectory1">
          <AttrNames>
            <Item Value="LocalUpDirectory"/>
          </AttrNames>
        </attributeValues>
      </bindings>
    </pageDefinition>and my view is
    <?xml version="1.0" encoding="windows-1252" ?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <!---->
    <ViewObject
      xmlns="http://xmlns.oracle.com/bc4j"
      Name="SmsDocumentLinksView"
      Version="11.1.2.60.81"
      SelectList="SmsDocumentLinks.ID,
           SmsDocumentLinks.EDRMS_ID,
           SmsDocumentLinks.FILE_PLAN_NO,
           SmsDocumentLinks.DOCUMENT_NAME,
           SmsDocumentLinks.SCAN_DT,
           SmsDocumentLinks.DATE_CREATED,
           SmsDocumentLinks.DATE_MODIFIED,
           SmsDocumentLinks.MODIFIED_BY,
           SmsDocumentLinks.CREATED_BY,
           SmsDocumentLinks.DOCUMENT_IMAGE,
           SmsDocumentLinks.DITYP_ID,
           SmsDocumentLinks.DWSTA_CODE,
           SmsDocumentLinks.SOURCE_FILE_NAME"
      FromList="SMS_DOCUMENT_LINKS SmsDocumentLinks"
      BindingStyle="OracleName"
      CustomQuery="false"
      PageIterMode="Full"
      UseGlueCode="false"
      RowClass="sms4200.SmsDocumentLinksViewRowImpl"
      ComponentClass="sms4200.SmsDocumentLinksViewImpl"
      RowInterface="sms4200.common.SmsDocumentLinksViewRow"
      ClientRowProxyName="sms4200.client.SmsDocumentLinksViewRowClient">
      <DesignTime>
        <Attr Name="_codeGenFlag2" Value="Access|Coll|Prog|VarAccess"/>
        <Attr Name="_isCodegen" Value="true"/>
      </DesignTime>
      <EntityUsage
        Name="SmsDocumentLinks"
        Entity="sms4200.SmsDocumentLinks"/>
      <ViewAttribute
        Name="Id"
        IsNotNull="true"
        PrecisionRule="true"
        EntityAttrName="Id"
        EntityUsage="SmsDocumentLinks"
        AliasName="ID">
        <TransientExpression><![CDATA[(new oracle.jbo.server.SequenceImpl("SMS_CAT_SEQ",adf.object.getDBTransaction())).getSequenceNumber()]]></TransientExpression>
      </ViewAttribute>
      <ViewAttribute
        Name="EdrmsId"
        PrecisionRule="true"
        EntityAttrName="EdrmsId"
        EntityUsage="SmsDocumentLinks"
        AliasName="EDRMS_ID"/>
      <ViewAttribute
        Name="FilePlanNo"
        PrecisionRule="true"
        EntityAttrName="FilePlanNo"
        EntityUsage="SmsDocumentLinks"
        AliasName="FILE_PLAN_NO"/>
      <ViewAttribute
        Name="DocumentName"
        PrecisionRule="true"
        EntityAttrName="DocumentName"
        EntityUsage="SmsDocumentLinks"
        AliasName="DOCUMENT_NAME"/>
      <ViewAttribute
        Name="ScanDt"
        PrecisionRule="true"
        EntityAttrName="ScanDt"
        EntityUsage="SmsDocumentLinks"
        AliasName="SCAN_DT"/>
      <ViewAttribute
        Name="DateCreated"
        PrecisionRule="true"
        EntityAttrName="DateCreated"
        EntityUsage="SmsDocumentLinks"
        AliasName="DATE_CREATED"/>
      <ViewAttribute
        Name="DateModified"
        PrecisionRule="true"
        EntityAttrName="DateModified"
        EntityUsage="SmsDocumentLinks"
        AliasName="DATE_MODIFIED"/>
      <ViewAttribute
        Name="ModifiedBy"
        PrecisionRule="true"
        EntityAttrName="ModifiedBy"
        EntityUsage="SmsDocumentLinks"
        AliasName="MODIFIED_BY"/>
      <ViewAttribute
        Name="CreatedBy"
        PrecisionRule="true"
        EntityAttrName="CreatedBy"
        EntityUsage="SmsDocumentLinks"
        AliasName="CREATED_BY"/>
      <ViewAttribute
        Name="DocumentImage"
        IsQueriable="false"
        PrecisionRule="true"
        EntityAttrName="DocumentImage"
        EntityUsage="SmsDocumentLinks"
        AliasName="DOCUMENT_IMAGE"/>
      <ViewAttribute
        Name="DitypId"
        PrecisionRule="true"
        EntityAttrName="DitypId"
        EntityUsage="SmsDocumentLinks"
        AliasName="DITYP_ID"/>
      <ViewAttribute
        Name="DwstaCode"
        PrecisionRule="true"
        EntityAttrName="DwstaCode"
        EntityUsage="SmsDocumentLinks"
        AliasName="DWSTA_CODE"/>
      <ViewAttribute
        Name="SourceFileName"
        PrecisionRule="true"
        EntityAttrName="SourceFileName"
        EntityUsage="SmsDocumentLinks"
        AliasName="SOURCE_FILE_NAME"/>
    </ViewObject>Edited by: Tshifhiwa on 2012/05/30 8:57 PM

  • Deletion of  a particular record  from database table

    hai friends,
         i want to <b>delete</b> (or)   <b>insert</b> particular record from  predefined sap table... that is with out module pool programming...  can i delete or insert a record to or from  the table..
         thanks in advance
    @jay

    hi,
    ucan do it without module pool programming in your normal report program.
    To insert a line into an index table, use the statement:
    INSERT <line> INTO <itab> [INDEX <idx>].
    <line> is either a work area that is convertible to the line type, or the expression INITIAL LINE. If you use <wa>, the system adds a new line to the internal table <itab> and fills it with the contents of the work area. INITIAL LINE inserts a blank line containing the correct initial value for each field of the structure.
    To select the lines that you want to delete using a condition, use the following:
    DELETE FROM <target> WHERE <cond> .
    All of the lines in the database table that satisfy the conditions in the WHERE clause are deleted. The FROM expression must occur between the keyword and the database table.
    You should take particular care when programming the WHERE clause to ensure that you do not delete the wrong lines. For example, if you specify an empty internal table in a dynamic WHERE clause, all of the lines in the table are deleted.
    If at least one line is deleted, the system sets SY-SUBRC to 0, otherwise to 4. SY-DBCNT contains the number of lines deleted.
    regards,
    keerthi

  • How to block user create personal view and select ALL VIEW?

    How to block user create personal view and select ALL VIEW?

    Hello,
    >create personal view
    To restrict creating personal view, you need to modify your existing permission level or create new one. Login with admin account to your site and open role.aspx page (http://siteurl/_layouts/role.aspx). Then click on existing permission or add new permission
    level-->and move to "Personal Permissions" section-->uncheck "Manage Personal Views - Create, change, and delete personal views of lists" option. Later you can assign this permission to all users, whom you don't want
    to allow to create.
    >and select ALL VIEW
    Since SP does not supports view level permission directly so you have to use custom solution or use below designer solution to restrict user to open any view.
    http://www.codeproject.com/Articles/433486/How-to-set-view-level-permissions-out-of-the-box-i
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • HOW TO DELETE THE ROW FROM DATABASE

    hI,
    Iam pasting my code below.My problem isi retrieve rows from database and display them in jsp page in rows.For each row there is delete hyperlink.Now when i click that link i should only delete the row corresponding to that delete link temporarily but it should not delete the row from database now.It should only delete the row from database when i click the save button.How can i do this can any one give some code.
    thanks
    naveen
    [email protected]
    <%@ page language="java" import="Utils.*,java.sql.*,SQLCon.ConnectionPool,java.util.Vector,java.util.StringTokenizer" %>
    <html>
    <head>
    <meta http-equiv="Content-Language" content="en-us">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <title>Item Details</title>
    <script>
    function submitPage()
    document.details.action = "itemdetails.jsp" ;
    document.details.submit();
    </script>
    </head>
    <body>
    <form name="details" action="itemdetails.jsp" method="post">
    <%
    ConnectionPool pool;
    Connection con = null;
    Statement st;
    ResultSet rs =null;
    %>
    <table border="0" cellpadding="0" cellspacing="0" width="328">
    <tr>
    <td width="323" colspan="4"><b>Reference No :</b> <input type="text" name="txt_refno" size="14">
    <input type="submit" value="search" name="search" ></td>
    </tr>
    <tr>
    <td width="81" bgcolor="#000099"><font color="#FFFFFF"><b>Item Code</b></font></td>
    <td width="81" bgcolor="#000099"><font color="#FFFFFF"><b>Item No</b></font></td>
    <td width="81" bgcolor="#000099"><font color="#FFFFFF"><b>Amount </b></font></td>
    <td width="80" bgcolor="#000099"> </td>
    </tr>
    <%
    pool= new ConnectionPool();
    Utils utils = new Utils();
    double total =0.00;
    String search =utils.returnString(request.getParameter("search"));
    if(search.equals("search"))
    try
    String ref_no =utils.returnString(request.getParameter("txt_refno"));
    String strSQL="select * from ref_table where refno='" + ref_no + "' ";
    con = pool.getConnection();
    st=con.createStatement();
    rs = st.executeQuery(strSQL);
    while(rs.next())
    String itemcode=rs.getString(2);
    int item_no=rs.getInt(3);
    double amount= rs.getDouble(4);
    total= total + amount;
    %>
    <tr>
    <td width="81"><input type=hidden name=hitem value=<%=itemcode%>><%=itemcode%></td>
    <td width="81"><input type=hidden name=hitemno value=<%=item_no%>><%=item_no%></td>
    <td width="81"><input type=hidden name=hamount value=<%=amount%>><%=amount%></td>
    <td width="80"><a href="delete</td>
    </tr>
    <%
    }catch(Exception e){}
    finally {
    if (con != null) pool.returnConnection(con);
    %>
    <tr>
    <td width="323" colspan="4">
    <p align="right"><b>Total:</b><input type="text" name="txt_total" size="10" value="<%=total%>"></td>
    </tr>
    <tr>
    <td width="323" colspan="4">                   
    <input type="button" value="save" name="save"></td>
    </tr>
    </table>
    </form>
    </body>
    </html>

    You mean when you click on the hyperlink you want that row to disappear from the page, but not delete the row from the database until a commit/submit button is pressed?
    Personally, I think I'd prefer that you have a delete checkbox next to every row and NOT remove them from the display if I was a user. You give your users a chance to change their mind about their choice, and when they're done they can see exactly which rows will be deleted before they commit.
    You know your problem, of course, so you might have a good reason for designing it this way. But I'd prefer not removing them from the display. JMO - MOD

  • Delete entry from Database table

    Hi,
    I configured one PCR scenerio in SPRO node -> business Packakes/ funtional packages-> Manager self service-> Personal Change request -> Group Change request scenerio.
    later I deleted that entry in backend, but still the same entry exist in db table "TWPC_PCR_Groups" .
    How can we delete that entry?
    thanks

    Hi,
    If you just want to delete a single entry from database table then you have to it in debug mode .
    go to se11->Give table name->Press F7( ie: display table entries)-> Goto the table contents (CTRLSHIFTF10)->Select the entry you want to delete->Give /H in the command bar ->enter into debug mode-> Give code as DELE -> save it. and press enter. Your entry will be deleted from database.
    Hope this helps..

  • ADF delete from database.

    Hi,
    I am trying to design a page which will delete a particular row from one or more database tables. The jdeveloper version is 11.5 and the database is oracle 10.2 version.
    How can I do it?
    Thanks

    Hi all, Thanks for the reply..
    Actually I am trying to delete one record at a time, from the same table, from which m populating it on the jspx..
    That means the list source and the base source are same..which is not possible..
    What can be the solution for it ??
    I tried to create a separate view object for population on jspx and kept it in list source.. And I am using different view object in base source.. Both view objects refer to the same table..
    But it is not working out..the problems are..
    The record is getting deleted only for the first time when i run it.. Even after getting deleted from database, the record shows up in the list..
    And when i do the same operation one more time in the same session, 1st record in the table is getting updated with the value which i tried to delete..
    And I am not using managed bean..
    regards

  • CMP Entity Bean from dataBase views

    Hi forum,
    I Have to migrate an existing application to JEE (with EJB3).
    In this application there are a lot of dataBase views.
    I'm new in EJB3 and I don't know how to structure cleanly entity beans (Specially when it are created from dataBase views).
    My problem is that for each query made from the same dataBase view I almost have to create a new entity bean with a different @Id.
    What can I do to to avoid it?
    I had thought to genrate a new @Id (attribute not persistent) but I think is not possible. It's right ?
    Someone can help me ?
    Thanks

    "CMP provides you with database independence and less coding efforts."
    BMP is not database dependent, unless you invoke database specific things in your SQL (something I do not do). CMP on the otherhand is inherently appserver specific (which was it's goal when BEA, IBM, et al. came up with it), and still limits your design possibilities. See this thread for an example:
    http://forum.java.sun.com/thread.jsp?forum=13&thread=318785
    As for less coding effort, that is a relative statment. Yes a simple CMP bean requires less coding to develop the first time. I personally view a few lines of SQL to load and store the data as being fairly trivial. But that needs to be offset with the problems inherent in using appserver specific CMP implementations.
    As an example, try mapping WebSphere CMP to a pre-existing database without using IBM's IDE. It's an incredible pain in the ass since WebSphere does not come with a "meet-in-the-middle" solution. Any J2EE developer that has had the experience of working with different appservers (especially if they have had to port an app, as I have) can attest to the complications that arise with each implementation.
    A BMP bean, written with non-DB-specific SQL, is the most portable, most flexible approach to EntityBeans. Yes, it requires the developer to be able to write some SQL, which should not take a significant amout of time. WRT queries, you have to write them, either SQL, EQL, or some appserver specific format.
    As an aside, the use of code generators to simplify the creation of EJBs lends itself well to BMP. By using a (or writing your own) code generator, you can mitigate the annoying SQL bugs that creep up early in development.

  • CallResponder|Datagrid|delete item from Database

    Hello guys,
    I succeeded to display datas from database inside the DataGrid using the CallResponder, but until now I still don't know how can I access to the data that already stored in column in the DataGrid !
    the DataGrid Structure is (id, login, password, email, firstname, lastname), and want to access to those datas using the action script
    My question, what is the object that already stored these datasin memory? is it "dataProvider", or "data".
    When I want to delete a person from the dataGrid, I want to click on the dataGrid and then click the delete button, the button will seek for the "id" stored in the memory and finaly send the query to the server to delete the item token from the data Grid !
    example :
    I click on the second item in the DataGrid, and this item it's id = "14" so dataGrid.selectedIndex == 2, but the value of the attribute of that item is 14
    how can I access to to the values ?
    I face this problem because I don't know where the dataGrid does already stores the data that it displays, and what is the structure of it even it is ArrayList or ArrayCollection.
    I hope you understood my challenge?

    Thank you a lot, that is correct, I executed the application in debug mode and I saw that the dataProvider is already an ArrayCollection, so I can understand that all the method of an Arraycollection is already applyable to the dataProvider.
    I didn't know that it is the case, so before you reply me, I was thinking about doing that manually, by pushing the result that come from the CallResponder into an ArrayCollection that is already declared manually in the mxml file, after that adding an event listener and calling a function that is going to make a loop and store all the result into a the ArrayCollection.
    Here is the code: (I think it is useful if someone is going to select something manually from the database so he has to do the same thing and filtring the results inthe loop)
    Creating Manulally the dataProvider()
    Script :
    protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
    getAllUserResult.token = userService.getAllUser();
    getAllUserResult.addEventListener(ResultEvent.RESULT,onResult);
    protected function onResult(event:ResultEvent):void
    for (var i:int=0 ;i< event.result.length;i++){
    userMemory.addItem(event.result[i]);
    Mxml File (Declaration) :
    <fx:Declarations>
    <s:CallResponder id="getAllUserResult"/>
    <userservice:UserService id="userService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
    <s:ArrayCollection id="userMemory"/>
    </fx:Declarations>
    I must thank you my brother for the answer, and for the fast reply !

  • Problem When deleting record from database

    Hi ,
    I have a question. Firstly I'm using VB
    I have a problem about deleting any record from access database , That's the code I'm use it for add new item and it's work but it's not work when I tried to edit any rows " it's not want to Save" but work for add new Item.
    Try
    Me.Validate()
    Me.CustomerBindingSource.EndEdit()
    Me.CustomerTableAdapter.Update(Me.KonoDataSet.Customer)
    MsgBox("Update Successful")
    Catch ex As Exception
    MsgBox("Update Failed")
    End Try
    And That's my code for Deleting any record from database But it's not work and that's a problem.
    CustomerBindingSource.RemoveCurrent()
    CustomerBindingSource.EndEdit()
    Me.CustomerTableAdapter.Update(Me.KonoDataSet.Customer)
    Can anybody help me about that issue ?

    Hi kono20006000,
    Your issue seems really strange. I would recommend you make a troubleshooting.
    1.Made sure your code works with the single copy of the database. You could check if it scans hard drive for the database file name and check if it modifies dates on found files. You could check if you operate with the same database.
    2. Use the application update the record at the form_load event to see if it would work correctly.
    3.Check the table in update statement and the table in add statement.
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • View links in oracle ADF/query featching from Database

    Please any one help for this query
    I have two tables Emp, Dept
    I have query like this select * from Emp e, Dept d where e.deptno=d.deptno
    Query is fetching like this
    Empno Ename job Salary Comm deptno deptno dname      Loc
    15 i1     support     50000     11     5     5     IT          sss
    15 i1     support     50000     11     3     3     Account     sss
    16 i2     support     8000     10     5     5     IT          sss
    16 i2     support     8000     10     3     3     Account     sss
    16 i2     support     8000     10     3     3     Software      sss
    16 i2     support     8000     10     4     4     Operation      sss
    Query is fetching 6 rows.
    but my requirement is what ever records fetching from database with same employee number is one record that is same employee number dept names grouped I will show it as one record how to fetch records from data base.
    Here is the example (My Requirement):
    This is first row:
    Empno Ename job Salary Comm
    15 i1     support 50000     11
    Deptno dname      Loc
    5     IT          sss
    3     Account     sss
    This is second row:
    Empno ename job Salary Comm
    16 i2     support     8000     10
    Deptno dname      Loc
    5     IT     sss
    3     Account     sss
    2     Software sss
    4     Operation sss
    i am useing oracle ADF if any possibility in view links either i get from the query as i mentioned.
    plz any one can help
    thanks

    Please any one help for this query
    I have two tables Emp, Dept
    I have query like this select * from Emp e, Dept d where e.deptno=d.deptno
    Query is fetching like this
    Empno Ename job Salary Comm deptno deptno dname      Loc
    15 i1     support     50000     11     5     5     IT          sss
    15 i1     support     50000     11     3     3     Account     sss
    16 i2     support     8000     10     5     5     IT          sss
    16 i2     support     8000     10     3     3     Account     sss
    16 i2     support     8000     10     3     3     Software      sss
    16 i2     support     8000     10     4     4     Operation      sss
    Query is fetching 6 rows.
    but my requirement is what ever records fetching from database with same employee number is one record that is same employee number dept names grouped I will show it as one record how to fetch records from data base.
    Here is the example (My Requirement):
    This is first row:
    Empno Ename job Salary Comm
    15 i1     support 50000     11
    Deptno dname      Loc
    5     IT          sss
    3     Account     sss
    This is second row:
    Empno ename job Salary Comm
    16 i2     support     8000     10
    Deptno dname      Loc
    5     IT     sss
    3     Account     sss
    2     Software sss
    4     Operation sss
    i am useing oracle ADF if any possibility in view links either i get from the query as i mentioned.
    plz any one can help
    thanks

  • SQL query or view used internally by Discoverer Open Workbook from Database

    Hi Experts,
    I am involved in developing a web application wherein I have to display the 'All Workbooks' similiar functionality in the 'Open Workbook from Database' dialog box of Discoverer. Can anybody provide me with the background query or view that Discoverer uses to retrieve this data for workbook listing? Please let me know if my question is confusing and requires more details.
    Thanks
    Thomas

    Hi,
    If you just need the list of workbooks then you need to use the EUL_DOCUMENT table:
    SELECT u.User_Name          Owner_Name
    *,Doc.Doc_Name Workbook_Name*
    *,Doc.Doc_Updated_Date Last_Update_Date*
    FROM   Eul_Us.Eul5_Documents Doc
    *,Eul_Us.Eul5_Eul_Users Own_Usr*
    *,Fnd_User u*
    WHERE  Own_Usr.Eu_Id = Doc.Doc_Eu_Id AND
    To_Char(u.User_Id(+)) = Substr(Own_Usr.Eu_Username
    *,2*
    *,10);*
    If you want the exact same list then you need to do the above along with the sharing :
    SELECT DISTINCT
    case when instr(disco_docs.doc_created_by,'#')=0 then disco_docs.doc_created_by
    when instr(disco_docs.doc_created_by,'#')>0 and instr(disco_docs.doc_created_by,'#',2)=0 then (select fu.user_name from fnd_user fu where fu.user_id=substr(disco_docs.doc_created_by,2,5))
    else NULL
    end "Workbook Owner/Creator",
    disco_docs.doc_name "Workbook Name",
    disco_docs.Doc_Updated_Date  "Last Update Date",
    case when instr(disco_users.eu_username,'#')=0 then disco_users.eu_username
    when instr(disco_users.eu_username,'#')>0 and instr(disco_users.eu_username,'#',2)=0 then (select fu.user_name from fnd_user fu where fu.user_id=substr(disco_users.eu_username,2,5))
    else (select resp.responsibility_name from fnd_responsibility_tl resp where resp.responsibility_id=substr(disco_users.eu_username,2,5))
    end as "Shared Name / Responsibility"
    FROM
    eul_us.eul5_documents disco_docs,
    eul_us.eul5_access_privs disco_shares,
    eul_us.eul5_eul_users disco_users
    WHERE
    disco_docs.doc_id = disco_shares.gd_doc_id (+)
    and disco_users.eu_username(+) NOT IN ('EUL5', 'PUBLIC')
    AND disco_users.eu_id(+) = disco_shares.ap_eu_id;
    * Change the EUL_US to your discoverer schema...
    Then you will need to compare the current user with the sharing list or creator
    Good luck
    Tamir

Maybe you are looking for

  • ABAP how to receive the control byte [] type of argument?

    I use C # to write a control that contains a method: public byte [] CutBytePicture (); I refer to the following link: http://help.sap.com/saphelp_nw04/helpdata/en/85/c80ec6e9464c4ab8ca829a7b9e8a48/frameset.htm Use XSTING type to receive the byte [] t

  • Adding scene selection button

    How do I add a button that links to the scene selection on the disc menu?

  • Duplicate invoices verification not working in FI

    Hi all, We experienced the problem with duplicate invoices posting check in FI (not logistics). The indicator Chk double inv. (LFB1-REPRF) is checked in Vendor master data. However, we are still able to post several documents with these fields identi

  • I cant find adobe encore in the creative cloud

    I cant find adobe Encor in the creative cloud and this way doesn't work any more from the moment they have lounched adobe cc 2014: Encore CS6 niet geïnstalleerd met Creative Cloud I hope you can tell me how i can instal adobe encore.

  • Can CPS be installed multiple times on same server

    We have implemented CPS in our environment but want to know if CPS and can be installed multiple times the same server. We are using Contribute 3 as the client but our users don't know if they want to share administration for both Intranet and Public