Add a delete button

Hi all,
I'm trying to add a delete button on the search page in the Content server (Search tab) but I don't know which service and template I must edit. Have anybody an idea?
Thanks in advance!

Hi,
Well I would just be concerned with a delete button on the search page simply because it's a very easy to use delete button. When you delete, there's a good chance you're loosing content permenetly and if someone takes the time to check something in to a content managment system that person probably felt there was some value at some time for that content.
Deleting just scares me a bit, though it also has it's purpose as well. If at all possible though I'd rather expire content, espesially if it's something you may need later. You could also archive it off. Every organization is different though, it's a very subjective decision.
From you reply though, I do have one word of caution; You don't want to delete directly from the database. You absolutly want to call a service for that. There are a number of tables that need to be updated when a delete happens in addition to a variety of application events that fire including search indexing.
I think John(JRS) is right that you'll probably need to loop through all the revisions and call the delete service for each one. The repository manager is able to delete all revisions of a document with one click though, so there may be an undocumented "super" delete service hanging out there as well.
What I might do make the "Delete" button an expire button and just set the expiration date using an update service call. From there, you could the remove expired content using archiver jobs, perhaps as a monthly administrative process. There's also a way to set up a trash can delete, so the content can be brought back.
Thanks
David

Similar Messages

  • Without data in textfield and datagrid if i click add or delete button it should through msgbox

    hi friends ,,
                     i am new to flex i am doing a application in flex4,i need help from this, i have two text inputs and one datagrid, and one add button and delete button.
    my requirement is without data if i click add or delete it should through error box how to do that,
    In 3 condtition it should  thorugh error or msg box;
    conditions are,
                      1.both textinputs and datagrid----> click (add or delete)--->error or msg box
                       2.both textinputs dont have value and datagrid have values----> click (add or delete)--->error or msg box
                       3..both textinputs  have value and datagrid  dont have values----> click (add or delete)--->error or msg box
    any suggession or snippet code are welcome
    Thanks in advance,
    B.venkatesan.

    Hi,
    Please try following code:
    <?xml version="1.0" encoding="utf-8"?><s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="
    library://ns.adobe.com/flex/spark" xmlns:mx="
    library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
     <fx:Declarations>
     <!-- Place non-visual elements (e.g., services, value objects) here -->
     </fx:Declarations>
     <fx:Script>
    <![CDATA[
     import mx.collections.ArrayCollection; 
    import mx.controls.Alert; 
    public function check():void{ 
    if(input1.text=="" || input2.text=="" || Dg1.dataProvider==""){
    Alert.show(
    "Enter the text boxes and DataGrid.");}
    else{Alert.show(
    "Do not Enter the text boxes DataGrid."); 
    ]]>
    </fx:Script>
     <s:TextInput x="77" y="107" id="input1"/>
     <s:TextInput x="254" y="107" id="input2"/>
     <mx:DataGrid x="80" y="150" id="Dg1">
     <mx:ArrayCollection>
     </mx:ArrayCollection>
     </mx:DataGrid>
     <s:Button x="95" y="329" label="Add" click="check()" />
     <s:Button x="290" y="329" label="Delete" click="check()"/></s:Application>
    I am keeping Arraycollection empty for example.Please try when you provide data to Arraycollection.
    Thanks and Regards,
    Vibhuti Gosavi | [email protected] | www.infocepts.com

  • UWL -- Need to add Thrash(Delete) Button

    Hi all,
    We are maintaing two tabs(Alerts and Notifications) in UWL and our clients wants to add "Delete" button at last of each lineitem(Subject,from,sent,priority,attachemtns), so client wants to delete unnessary notifications or alerts by pressing "Delete" button. I am not able to find any document how to maintain Icons in the Universal worklist. Please guide me if anybody come across thiw type of requirement or atleast let me know whether it can feasible in UWL.
    Thanks in advance
    Regards,
    Preetham

    Hi preetham,
    I am facing same issue.
    Could you please describe?
    Thanks

  • How to add the delete button

    Hello Guru's and Experts.
    I am working on a change request , the change request is as follows
    Once a cost simulation is run for a maintenance item and the data transferred to BI, it cannot be deleted from BI, only overwritten with an updated cost simulation. In the instance where the such items are no longer required to be included in the simulation, it must be made possible to delete the simulation costs in BI.
    The current design in my project significantly increases the effort required to identify unwanted cost simulations and greatly increases the potential for incorrect data to be used in Budgeting and forecasting.
    My question is how to add the delete functionality in the report. is it acheavable through the portal or WAD,
    iam new to SAP BI , if possible can anyone kindly suggest me the steps to do this functionality.
    Appreciate your quick response..
    Thanks
    Ravi.

    Hi Guru
    Thanks for your valuable information.
    We got the requirment changed now from the users , the delete button should display in the report, i mean in protal, Now the user wants to delete with the selection criteria, for example, once the user hits the row in the report, that means if he selects the Main work center, and selects the delete button , he wants all the data related to that main work center to be deleted.  and another senario is what ever row the user selects  the characteristics in the row, for example, if the user select  for any row, i mean it can be any cost center or fiscal year, maintaiance item, cost elements, ..etc.  
    Once the user  selects the row and hit the delete button,  and he wants to hit the save save button in the report to make sure it deleted, the other way around , if the dont want to hit save, then he wants the data to be in the report.
    In the above  scenario's  can  you please suggest me with the steps how can we acheive it.
    Please reply back if you need any other info., Apprieciate your quick response. its very urgent requirment which we have to start...
    sorry to bother u..
    Thanks
    Ravi.

  • Examples of Add and Delete buttons in Forms

    Hello, I have group project and we are having a hard time finding examples of how to add and delete records.
    We have tried for the add:
    INSERT INTO order_line VALUES
    (:orders.o_id,
    :order_line.inv_id,
    :order_line.ol_quantity);
    COMMIT;
    And this for the Delete:
    DELETE FROM order_line      WHERE
    o_id = :orders.o_id
    AND inv_id = :order_line.inv_id;
    COMMIT:
    We are just looking for a generic example of how the code should look. Please ignore any errors I may have typed I copied it from a print off.

    Please ask this question in the Forms discussion area instead of the Database discussion area.
    Thanks.

  • Help, need to add a delete button to my application?

    i have a little application that you can add numbers and friends email too
    i would like to add a minus selection/entry button?
    do any of you guys have any ideas?
    stop();
    //create a new sql connection
    var conn:SQLConnection= new SQLConnection();
    //add an event handeler for the open event
    conn.addEventListener(SQLEvent.OPEN, openHandler);
    //create the database if it doesn't exist, otherwise just opens it
    var dbFile:File =File.applicationDirectory.resolvePath ("exemplu.db");
    conn.openAsync(dbFile);
    function openHandler(event:SQLEvent):void {
    //create a new sql statement
    var sql:SQLStatement=new SQLStatement();
    //set the statement to connect to our database
    sql.sqlConnection=conn;
    //parse the sql command that creates the table if it doesn't exist
    sql.text= "CREATE TABLE IF NOT EXISTS contacte(" +
    "id INTEGER PRIMARY KEY AUTOINCREMENT, " +
    "nume TEXT, " +
    "telefon INTEGER)";
    //add a new event listener to the sql when it completes creating the table
    sql.addEventListener(SQLEvent.RESULT,retrieveData);
    //call the execute function to execute our statement
    sql.execute();
    function retrieveData(event:SQLEvent = null):void {
    //create a new sql statemant
    var sql:SQLStatement = new SQLStatement();
    sql.sqlConnection=conn;
    //this sql command retrieves all the fields from our
    //table in the database and orders it by name
    sql.text =  "SELECT id, nume, " +
    "telefon " +
    "FROM contacte ORDER BY nume";
    //add a new event listener if there is data
    //to display it
    sql.addEventListener(SQLEvent.RESULT, selectHandler);
    sql.execute();
    function selectHandler(event:SQLEvent):void {
    //first we clear our list
    lister.removeAll();
    //the we create a result variable that holds
    //all our contacts
    var result:SQLResult=event.target.getResult();
    //we check if results is not empty
    if (result!=null&&result.data!=null) {
    //and we add a new item to our list for
    //each contact in our database
    for (var i:Number = 0; i < result.data.length; i++) {
    lister.addItem ({ label:result.data[i].nume + "-" +result.data[i].telefon
    , nr:result.data[i].id });
    plus.addEventListener(MouseEvent.CLICK,adder);
    xu.addEventListener(MouseEvent.CLICK,closeapp);
    back.addEventListener(MouseEvent.MOUSE_DOWN,drag);
    //because my buttons are not real buttons
    //but movieclips i need to set the
    //buttonMode property to true
    plus.buttonMode=true;
    xu.buttonMode=true;
    function adder(e:MouseEvent):void{
    //remove the eventlistener and move to the
    //next frame
    plus.removeEventListener(MouseEvent.CLICK,adder);
    nextFrame();
    function closeapp(e:MouseEvent):void {
    //close the application
    NativeApplication.nativeApplication.exit();
    function drag(e:MouseEvent):void {
    //drag the application
    this.stage.nativeWindow.startMove();
    this is on the second key frame-
    //this line restricts the user input
    //to just numbers in the phone input box
    //add a new event listener to our plus button
    plus.addEventListener(MouseEvent.CLICK,adder2);
    function adder2(e:MouseEvent):void {
    //create a new sql statement variable
    var sql:SQLStatement=new SQLStatement();
    sql.sqlConnection=conn;
    //the next sql command creates a new entry
    //in the table contacte from our database
    sql.text =  "INSERT INTO contacte(nume, " +
    "telefon)" +
    "VALUES(@nume, " +
    "@telefon)";
    //to insert variables into sql commnads
    //we use the parameters definition
    sql.parameters["@nume"]=nume.text;
    sql.parameters["@telefon"]=tel.text;
    //add a new event listener that calls the
    //function that retrieves the data
    sql.addEventListener(SQLEvent.RESULT,retrieveData);
    sql.execute();
    //go to frame no. 1
    prevFrame();
    //remove the eventlistener from our plus button
    plus.removeEventListener(MouseEvent.CLICK,adder2);

    use:
    minus_btn.addEventListener(Event.MouseEvent,CLICK, clear)
    function clear(e:MouseEvent){
    var sql:SQLStatement = new SQLStatement();
    sql.sqlConnection = conn;
    var s:String = "DELETE from contacte WHERE nume= :numeparam AND telefon=:telefonparam";
    sql.text = s;
    sql.parameters[":numeparam"] = whatever;
    sql.parameters[":telefonparam"] = whatever else;
    //add listeners if you want
    sql.execute();

  • How to add a delete button on each row of the table.

    i create a table with a list , and i add a new column.
    and then i drag a delete botton from the list operation to the column.
    when i create several rows. and click any delete botton of the new created rows. all the new created rows will be deleted.
    rows that already exist when the page render are not influenced.and when i click these rows' delete botton,
    just the current row will be delete.
    that's because when i click the new created rows' delete botton,all the new created botton in this column will automatically be clicked.
    i think adf consider all the delete botton are the same one.
    is it the table bug? please tell me how to resolve this problem. thanks.
    Edited by: 917391 on 2012-3-21 下午6:53
    Edited by: 917391 on 2012-3-21 下午10:07
    Edited by: 917391 on 2012-3-21 下午10:16

    i don't use the adf BC, so it is not a VO. it's just a service method that return a list.
    and i create the datacontrol and drag it to the page.
    Edited by: 917391 on 2012-3-21 下午10:26

  • Delete buttons in report region & javascript

    I managed to add a delete button on each line of my report region using 'Column link' with
    text <img src="#IMAGE_PREFIX#delete.gif" border="0" alt="Verwijderen Icon">
    url f?p=&APP_ID.:504:#APP_SESSION#:TEST:::P504_DELETE_ID_LCNT:#ID#
    and some extra coding.
    problem is : i'd like to add a javascript:confirmDelete function
    In a 'Normal' button you can add it via URL Target.
    Can anyone help me ?

    This seems to be the way to add javascript to the url-code
    f?p=&APP_ID.:504:#APP_SESSION#:TEST:::P504_DELETE_ID_LCNT:#ID#" onClick="javascript:confirmDelete('Are you sure....')
    The only problem now is to add some kind of code to javascript to cancel further processing??????
    return true or false has no effect.
    I tried to set the REQUEST-value but i can't find the solution.
    Please help.

  • Table delete button doesn't work with Virtual Forms

    I applied all of Winston Prakash's tips to my project table (http://blogs.sun.com/winston/category/Creator), but my table is not the only component in the page, so I had to use Virtual forms.
    When I add the "Delete" button, i have to put it on a Virtual Form. I followed the steps on the multi selection table and the "Adding a button panel to the table component header" post, but when I select a row, the JavaScript works well (the row changes to yellow)... but the action code gets a :
    getTableRowGroup1().getSelectedRowsCount()==0
    and getTableRowGroup1().getSelectedRowKeys().length==0.
    I tried almost everything with the forms... I don't know what I missed...

    It works for me. Is it the Delete button in the Toolbar that doesn't work, or the Delete key in the keyboard, or what? Doesn't any other way of deleting a message work either (e.g. Edit > Delete)?

  • How do I get delete button back on inbox, it disapeared.

    My delete button has disappeared from my inbox. I have to open email to delete it now. How do I get it back?

    The delete key on your keyboard will always work.
    You can add a delete button to the Mail Toolbar by right clicking that toolbar and selecting Customize. Find the Delete button in the dialog box that opens and drag it onto the Mail Toolbar.
    There is also a delete button on the header of the Message Pane if you have that turned on. Pressing F8 toggles the message pane on and off.

  • Delete button added later.

    I have created a number of page pairs in my application using the "form on a table with report" method. Initially I asked for insert and update buttons but no delete buttons because I wanted to protect our test data. I now need to add the delete buttons. Sometimes they work and sometimes they do not. I have compared everything I can - please help me. Trudy.
    My delete button definition is as follows:
    Sequence = 20
    Button Name = DELETE
    Label = Delete
    Region is correct
    Button Position = Region Template Position #DELETE#
    Button Style = Template Based Button
    Button Template = Button
    Database Action = SQL DELETE action
    Condition Type = Value of Item in Expression 1 Is NOT NULL (or != Zero)
    Expression 1 = Pnn_NAME_ID where nn is the same page number
    Target = URL
    URL Target = javascript:confirmDelete(htmldb_delete_message,'DELETE');
    The delete buttons that work do not have an associated branch.

    *** MORE SPECIFIC PROBLEM DEFINITION
    The Delete button works when I change my definition as follows:
    Target = '- No Target -'
    URL Target = unavailable
    *** Please explain how I can to do the confirm delete popup.
    My delete button definition was as follows and it works OK for some other tables:
    Sequence = 20
    Button Name = DELETE
    Label = Delete
    Region is correct
    Button Position = Region Template Position #DELETE#
    Button Style = Template Based Button
    Button Template = Button
    Database Action = SQL DELETE action
    Condition Type = Value of Item in Expression 1 Is NOT NULL (or != Zero)
    Expression 1 = Pnn_NAME_ID where nn is the same page number
    Target = URL
    URL Target = javascript:confirmDelete(htmldb_delete_message,'DELETE');

  • Delete Button on Messagecenter-Email

    Hello,
    since Montain-Lion i get the Infobox on the right side, when a new Mail arrived. The Notification Center....
    Thats great, but i get a lot of Spam and other Stuff that i want directly delete. Is there a possibility to add a Delete button to the "mail-notification"? I see now only a "open" and a "close" Button.
    Thx a lot
    Kai

    That is not possible with the notification alerts, but that's the wrong solution anyway. You don't want to have to manually delete spam more often than you have to. If Mail's junk mail filtering is turned on, but isn't catching everything, you may want to try something like SpamSieve. Mail's filter is fine, but SpamSieve is far better.

  • ADF data table with Add,Edit,Delete functionality

    Hi Experts,
    I have a adf page where I need to implement add,edit,delete button. The table was bind with the Webservice obj call.I need to have one single button as "Add" which should add an inline row at end of the table.When I ll double click on the row I should have the in-line edit of the row.And for delete functionality,there should be delete button on each row which should delete the correspond row.Please help me to solve my problem.Please share the code to meif u ve any.my email: [email protected]
    Thanx
    Aswini

    Can you check the below links
    http://andrejusb.blogspot.com/2010/05/crud-operations-in-oracle-adf-11g-table.html
    http://andrejusb.blogspot.com/2009/11/crud-operations-in-jdeveloperadf-11g-r1.html
    ~Abhijit

  • There is no delete button on photostream!

    I made some pictures, but they were awfull, and i didnt want to share it on all my devices, so i try to delete this picture, but it stayed on photostream..
    maby an update for the next patch!?

    Apple has lost its mind.
    What were they thinking when they decided not to add a "delete" button?????
    This is the craziest and silliest idea ever!
    Don't they know that when you take a picture it could be blurry? Or not good, or whatever!
    I usually take two-three shots (multiplied by 2 when HDR is on...) and save only one. I don't want to have the 6 shots online!
    Don't they know that sometimes you takes pictures with friends and you don't want to share them with everyone?
    And what if your friend asks you not to share this photo?
    The only way to delete one picture is to delete all of them by turning off photostream.
    But it's not really working: the photos are still on my iPhoto (I quit and restarted it, not changes)

  • Add a delete account button already!

    I am trying to delete my skype name from the directory.  I have deleted, all personal information from my profile. Now I am trying to request customer service to remove the name, which I am aware, it seems, it will take up to two weeks.  NOW...The link to customer support does not work.  I have read multiple places I can have my screen name removed from the Skype directory through customer service, yet there is no way to get to customer service.  Considering the volume of people using skype and the amazing capabilities it has you would think the site would be sophisticated enough to handle a simple deletion.  Any other social networking site can be deleted with one click.  Why is it so difficult and time consuming to do the same here?  I have been at this for the last four hours.  I see many other people have requested the same...there should be no concern whether we want a new account in a different name, we made a mistake in the orginal setup of account or we no longer want to be a part of the network.. PLEASE just give all of us a link to do it ourselves. This avoids Skype customer support the issue of having to handle each request individually, if we ever actually even connect to them.  I am sure the others who requested this are tired of  "running in circles" to accomplish a simple request to the point they ever even joined skype to begin with.

    There should be a Delete button that you can add to the Mail Toolbar.
    When you right click the Mail Toolbar and select Customize do you not see a Delete button?
    There is a Delete button on the Header of the Message Pane if you turn that on. It toggles on and off with the F8 key.
    The Delete key on your keyboard works as does right click the message and select Delete.

Maybe you are looking for