How to delete a UI element in a "safe" way?

When I delete/cut/copy a UI element from a project.
I cannot rebuild/archive the project due a "classpath" problem.
The project's structure is damaged and a lot of errors are generated.
1) How to delete UI elements from the layout without damage the project's structure?
2) If the project's structure is damaged. Is there an easy way to fix it?
(I tried the "repair" option from project name's context menu - didn't help).
Also, I tried to "organize imports" - didn't help either.
http://img67.imageshack.us/img67/4927/errors0ph.jpg
Thanks, Omri

Well, failing everything else, there is a way to do this if you have deleted an element and the project has become damaged.
In your Windows file explorer, browse to the project directory, search for and delete all the ".class" and ".java" files. Now browse through all the project subdirectories, open every file in Notepad, and search for references to the object which you deleted, and delete those references.
You need to be really careful when you do this, because you can totally ruin the Web Dynpro project. But if done correctly, it can revive a project which has run into the problem which you describe.
Walter

Similar Messages

  • How to delete the last element of a collection without iterating it?

    how to delete the last element of a collection without iterating it?

    To add to jverd's reply, even if you could determine the last element, in some collections it is not guaranteed to always be the same.
    From HashSet:
    It makes no guarantees as to the iteration order of the set; in particular, it does not guarantee that the order will remain constant over time.

  • How To Delete Multiple Query Elements in a Transport

    Guys,
    How do you delete Multiple Query Elements in a transport in DEV? Or it's not posible.  I tried to select multiple but only one is being deleted.
    Thanks,
    Recca

    Hi Recca,
    As Nanda said, just go to tcode SE03..Click Unlock Objects (Expert Tool)..Paste your TR number (one at a time) then click Unlock..
    Go back to SE10 and delete your TR numbers..
    Regards,
    Loed

  • How to delete particular child element

    hi
    i have one xml document like this;how to delete particular element ;i want to delete say playerid = 9;
    and also i want to update the particular element, IndianPlayer(child nodes(name,age)) say playerid = 5 with name=agarkar and age=27;
    <India>
    <IndianPlayer PlayerId="1">
    <Name>Sachin</Name>
    <Age>31</Age>
    </IndianPlayer>
    <IndianPlayer PlayerId="2">
    <Name>Saurav</Name>
    <Age>32</Age>
    </IndianPlayer>
    <IndianPlayer PlayerId="3">
    <Name>Yuvraj</Name>
    <Age>22</Age>
    </IndianPlayer>
    <IndianPlayer PlayerId="4">
    <Name>Dravid</Name>
    <Age>32</Age>
    </IndianPlayer>
    <IndianPlayer PlayerId="5">
    <Name>Kumble</Name>
    <Age>34</Age>
    </IndianPlayer>
    <IndianPlayer PlayerId="6">
    <Name>Sehwag</Name>
    <Age>24</Age>
    </IndianPlayer>
    <IndianPlayer PlayerId="7">
    <Name>Laxman</Name>
    <Age>32</Age>
    </IndianPlayer>
    <IndianPlayer PlayerId="8">
    <Name>parthiv</Name>
    <Age>18</Age>
    </IndianPlayer>
    <IndianPlayer PlayerId="9">
    <Name>Zaheerkhan</Name>
    <Age>26</Age>
    </IndianPlayer>
    </India>
    bye
    chaitanya

    Hi
    you can use the following code to delete a particular child based upon the given criteria
    Name the xml file as cricPlayer.xml(since i have used that name in the program)
    i hope this solves ur problem
    // Developed by ottran on 18/06/2004
    import java.io.*;
    import java.util.*;
    import org.w3c.dom.*;
    import org.xml.sax.*;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerException;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.transform.*;
    import javax.xml.parsers.*;
    import javax.xml.*;
    import javax.xml.transform.stream.StreamSource;
    public class CricDom
    public static void saveXML(Document doc, String str)
    try{
    TransformerFactory transformerFactory = TransformerFactory.newInstance();
    Transformer transformer = transformerFactory.newTransformer();
    transformer.setOutputProperty(OutputKeys.INDENT,"yes");
    transformer.transform(new DOMSource(doc),new StreamResult(str));
    catch(TransformerException e)
    System.out.println("Transformer Exception: "+e);
    public static void main(String args[]){
    try
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document document = builder.parse("cricPlayer.xml");
    document.getDocumentElement().normalize();
    Node ParentNode = document.getDocumentElement();
    NodeList list = document.getElementsByTagName("IndianPlayer");
    for(Node child= ParentNode.getFirstChild(); child != null; child = child.getNextSibling())
    try{
    if(child.getNodeType()==Node.ELEMENT_NODE)
    NamedNodeMap tw = child.getAttributes();
    if(child.getAttributes().getNamedItem("PlayerId").getNodeValue().matches("9"))
    ParentNode.removeChild(child);
    saveXML(document,"cricPlayer.xml");
    catch (NullPointerException nex)
    System.out.println("Null Exception : "+nex);
    catch (Exception ex)
    System.out.println("Exception : "+ex);
    Bye
    ottran

  • How to delete/close WBS elements

    Hello Guys,
    We are facing following issues - We have some WBS elements that has not been migrated from company code XX (now incative). Now we canot close those WBS and we are getting errors when posting Settlements (CJ8G/CJ88).
    Error - Asset under construction not completely credited.
    There are some old bookings on the WBS (total sum = 0)  but SAP does not allow us to close it. As this is already closed company code we cannot create assets here anymore.
    Do you know if there is a way to close or delete such WBS elements?
    Thank you..

    Hi Tushar,
    Following the screenshot sent by Tomas, there are many steps which needs to be carried out before setting the deletion flag for the WBS element. One is to ensure that the mandatory fields for the asset are filled as rightly pointed out, second is to ensure deactivating the asset, third is to delete the existing PO's/PR's associated with the project. This will ensure that the WBS element is back in its original state which will then allow us to mark the deletion flag or set the WBS element as deleted. However cant we close the WBS element and then try to set the deletion flag? Is this a wrong practice you feel?
    Kindly advise
    Regards
    Varun

  • How to delete photos in Elements 12 Organizer?

    Been using Elements 6 for years.  Bought E12 to go with a new iMac.  I am totally bewildered by 12.  Simple 1 or 2 click things have become procedures.
    Like deleting pictures from the Organizer... the Delete function is grayed-out in the pull down menu.  Jeez, it seems like a fairly simple thing to do, but I can't find an answer in either of the two books I now own and the darn video tutorials I've sat through! Your help is appreciated!
    1deu
    Just fixed the typos!

    Have you tried clicking once on the photo you want to delete and then press DEL button?  This should do the trick.
    This deletes the image from the catalog but if you want to delete the HD then check the box shown in this picture:

  • How to delete single MRP element line item

    Hi gurus,
    I need to delete a SINGLE line item for an MRP list for materials.  Is there a transaction to do this? 
    I have tried MD08, but that only deletes whole lists.  I am trying to clear out old elements that are years old in my list for a material.
    I will reward useful answers
    Thanks!

    Hi,
    It's very difficult to say what to do since I cannot see what you see, and I do not know anything about your system.
    In MRP there are: stock, requirements (IndReq, DepReq), transactional data (PO, SO, Delivery, PurRqs, etc)
    1. What you should do is to define which materials are related in this issue.
    2. Which kind of MRP elements are related (you have got old requirements, transactional data, etc?).
    If you have old requirements you should find the source of them. DepReq cannot be deleted > they come from higher levels > you should find where they come.
    Do they derive from old transactional data?
    Do they come from higher and higher level, I mean there are IndReqs, SOs for FG?
    (you can use 'pegged' function if you click on the MRP element)
    If you know from which kind of source they come (only they come from old transactional data or from IndReq, SO) > you should eliminate them accordingly.
    A. If they come from SO, IndReq you can use the steps written by me in my previous message. (You can use MD62 to delete old IndReq).
    B.
    If they come from old transactional data, you have to find the way to eliminate them. Maybe you cannot eliminate them by mass processing, I do not know.
    But you canmake groups / categorize the transactional data > after that maybe you can use mass change / handle them accordingly.
    I mean if you have SO and Delivery, you cannot delete the SO when Delivery refering to that SO exist.
    So, in case of requirements please delete the requirements (IndReq, SO) that exist at highest level and running MRP you will get rid of a lot of mess (top > down). In case of transactional data the strategy is the opposite: bottom > up.
    If you get error messages > double click on it and read what SAP says > if it's not clear search for the number of the error message on the forum.
    Sorrowfully, I cannot help in case of HU, I do not know them.
    BR
    Csaba
    Edited by: Csaba Szommer on Jul 23, 2008 10:54 PM
    Edited by: Csaba Szommer on Jul 23, 2008 10:56 PM

  • How to delete a data element? - error message

    Error in the ABAP Application Program
    The current ABAP program "SAPLRSSG" had to be terminated because it has
    come across a statement that unfortunately cannot be executed.
    The following syntax error occurred in program "GP0GVENGV13S7QSCONTM4LCHNZG "
    in include "GP0GVENGV13S7QSCONTM4LCHNZG " in
    line 172:
    "The type <b>"/BIC/OIUSITMDEC"</b> is unknown."
    I already deleted the InfoObject USITMDEC.

    Re-active the Transformation and DTP, then it worked.

  • How to delete a cost element

    I am unable to do a settlement for order number 6000110 as I get the message Complete alloacation structure in A1.
    I know the cause of this problem is due to an incorrect posting which has already been reversed, thereby reflecting no charges to the cost element . However, the actual cost element and its description still appear under the order 6000110.
    I do not want to extend the structure to include the incorrect cost element 60503 as the range starts from 80000 to 89999.
    Is there any way I can remove this cost element so that it does not display under order number 6000110 ?

    Hi NIketa
    Whats the detailed error message? Can you paste that here?
    Also, check the following, which may resolve your issue
    1. If you are settling to the Top most WBS, i.e. to the project itself, do not do that... Settle it to a lower level WBS, atleast one level lower than the project...
    2. Check if the status of that WBS is REL (released) and
    3. The flag for "acct asst elem." is checked in the WBS element
    Regards
    Ajay M

  • How to identify the file type in a safe way

    I need to identify the filetype of a file in my disc.
    I watched over internet and i've found this good site:
    http://filext.com/
    that supplys the "magic bytes" for many kind of files.
    I have also looked over internet for some ready class that identify different file types, and I have found FFident:
    http://schmidt.devlib.org/ffident/index.html
    Do you know any other Java package/class that is able to identify correctly the file types?
    Thank you,.

    The OS just watch the extension of the file.Not always. If you create a word doc but name it with
    some other extension, the OS still can determine that
    it is a word doc.On which OS?
    if i take foo.exe and i rename foo.doc so my OSwill
    try to open it as a MS Word Document.Again, garbage in, garbage out.What you mean?
    If I create a MS Word Document for a file .doc that is not a real .doc and it is not able to read, i will just lose cpu time and a lot of memory.
    So it is important to understand if I need really to open MS Word watching what is the real file type
    Either way, you're going to be doing way too much
    work (and wheel-reinventing) if you're going to build
    your own detection scheme.In the SDK there is not any file type checker, and if eventually really exists an OS like you say that is able to read inside the file, i prefer to have my own Java class that do that work in a safe and opensource way.
    However in my first post i've given a site with some java code that do what I need, i just was asking if anyone know if there is any ready-to-work java class that is better for doing this work.

  • How to delete cost element name from group after deleting the cost element

    Hi,
    Please let me know how to delete the cost element number  from the Cost element group hierarchy.I have deleted cost element but still showing only the CE number---no valid master record.If I d not want this to be visible within hierarchy let me know what should I do.
    Thanks

    Hi
    Go to change cost element group select the cost element click on select tab (3rd Tab from Left) it will take u to new screen in that screen select remove tab (1st tab from left)
    Regards
    Sandesh

  • How to delete the Generated WSR

    Hi experts
    how to delete the generated WSR , is there  any way to delete the Generated WSR rules
    please help
    Regards

    Hi,
    Go to Transaction PT02 (Change Work Schedule) use Delete function to delete existing work schedule.You can use the Choose function to display detailed data for the individual daily work schedules before deleting them.
    If you delete the work schedule for a month, choose Delete. Skip any months that you do not want to delete by choosing Next Month or Previous Month. The system deletes all work schedules for which period calendra month you displayed information.
    I hope this wil help you.
    Thanks,
    Padmaja

  • How to delete payment proposal

    Hi all,
    I have created payment print prog with sap script.  now i run this sap script through F-47 t-code. in F-47 i have created document for each vendor or multiple document. then run
    F110 t-code for automatic payment transcation. in f110 i created many proposal. somtimes its locked. i know how to delete proposal. go to edit, proposal and delete. but still its locked. when i click on display proposal i got red signal.somtimes i create document for multiple document, on that proposal 2 vendors got green signal and for 1 vendor i got red signal. i got a message also 2 generated and 2 complete so for that how to delete proposal? what is the proper way to delete payment proposal?
    Thanks
    Jigar

    Solved myself

  • How to delete email messages all at once?

    Please let me know how to delete all my email messanges from my pnone.  I know how to delete 1 art a time, but this way would take me forever.

    You can only select all and delete all from the trash folder.
    You may already know this, but to save a little time deleting each one, you can swipe left from the list of messages and delete, instead of opening each one and selecting the trash can.

  • How to delete elements from a cluster?

    Hello. I would like to know how to delete elements from a cluster. I got stuck with this problem. There is its own order of each element in a cluster. I tried to initiate an array but it seems like too complicated. In the attached file, I want to obtain only the data from "flow" not "pressure". I try to use array programming but it doesn't work. Would be nice if you help me to fix the file. Thanks
    Solved!
    Go to Solution.
    Attachments:
    test 1.vi ‏16 KB

    Bombbooo wrote:
    What about if I want to store data into the pressure array too? Do I have to create another loop or it can be done in the same loop as the flow loop?
    Try this, for example. Modify as needed.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    test1MOD2.vi ‏9 KB
    SelectFlowOrPressure.png ‏7 KB

Maybe you are looking for