Implementing delete functionality programmatically

Hi All,
I am trying to implement delete functionality programmatically.
Below is my code:
OAImageBean dots2 = (OAImageBean)oapagecontext.getWebBeanFactory().createWebBean(oapagecontext, OAWebBeanConstants.IMAGE_BEAN, null,"dotsImage2");
dots2.setID("dotsImage2");
dots2.setSource(OAWebBeanConstants.APPS_MEDIA_DIRECTORY + "deleteicon_enabled.gif");
dots2.setShortDesc("delete");
dots2.setHeight("20");
dots2.setWidth("20");
deleteColumn.addIndexedChild(dots2);
deleteColumn.setRendered(Boolean.TRUE);
tableBean.addIndexedChild(deleteColumn);
Hashtable params = new Hashtable(1);
params.put("param1", "compElementId");
Hashtable paramsWithBinds = new Hashtable(1);
dots2.setFireActionForSubmit("xxdelete",params, paramsWithBinds,false, false);
Tried to put the parameter programmatically.event getting fired. but iam getting null if i use below line
paramsWithBinds.put ("param1",new OADataBoundValueFireActionURL(dots2,"${oa.encrypt.CompElementsEOVO.CompetenceElementId}"));
getting error like
Definition CompetenceElementId of type Attribute not found in CompElementsVO
if i use below line
paramsWithBinds.put ("param1",new OADataBoundValueViewObject(dots2, "CompetenceElementId", "CompElementsVO", true, true));
but the CompetenceElementId attribute is there in VO.
pls help.
Thanks,
Raghava.

Hi Gyan,
Thanks for reply..
Yes VO attached is CompElementsEOVO but the View Instance name is CompElementsVO.
We r working on standard page and we r not recommended to change the standard page. so creating the image bean programmatically for implementing delete functionality.
Even i tried CompElementsEOVO as View Instance. But im getting error as View Instance not found in the AM.
Thanks,
Raghav.

Similar Messages

  • How to implement delete functionallity on a form

    Hello
    I have a form that displays the current row of a table, and you can modify it. I want to implement delete functionality in such a way that deletes the current row and shows the next one in the form.
    My problem is that the delete button must be with immediate=true, because I don't want the fields to be validated, just deleted!
    But when a command button (like Delete) is immediate=true then the input fields in the form doesn't get updated with the next row values (only the readonly fields like output text get updated).
    Any idea how this scenario must be implemented in JSF ?
    Thanks!

    try binding the table to an arrayList , and make shure the form or its area is reRendered once you delete it from the arrayList

  • Delete Functionality in manual tabular form

    Hi everyone,
    I have created 2 tabular forms on the same page.everthing is working fine.Both the tabular form are able to insert and update.I am getting problem to implement the DELETE functionality in those tabular form.
    I inserted this code htmldb_item.checkbox(6, id) del in the region and i created a delete process.But i am getting (no data found) error.
    could anyone help me in solving this.
    thanks
    phani
    ===========================================================
    DELETE PROCESS:
    FOR i in 1..HTMLDB_APPLICATION.G_F01.count
    LOOP
    DELETE FROM (TABLE NAME)
    WHERE id = HTMLDB_APPLICATION.G_F06(i);
    END LOOP;
    =============================================================
    TABULAR FORM 1:
    REGION:
    select x.column1,
    x.column2,
    x.column3,
    x.column4,
    x.column5,
    x.del,
    x.cks
    from (
    select htmldb_item.hidden(1,column1) column1,
    htmldb_item.text(2,column2,10) column2,
    htmldb_item.text(3,column3,10) column3,
    htmldb_item.text(4,column4,10) column4,
    wwv_flow_item.date_popup(5,null,column5) column5,
    htmldb_item.checkbox(6,column1) del,
    htmldb_item.md5_checksum(column2,column3,column4,column5) cks
    from TABLENAME
    union all
    select htmldb_item.hidden(1,null) column1,
    htmldb_item.text(2,null,10) column2,
    htmldb_item.text(3,null,10) column3,
    htmldb_item.text(4,null,10) column4,
    wwv_flow_item.date_popup(5,null,null) column5,
    htmldb_item.checkbox(6,null) del,
    htmldb_item.md5_checksum(null,null,null,null) cks
    from dual) x
    ==================================================================
    PROCESS:
    declare
    l_cks wwv_flow_global.vc_arr2;
    j pls_integer := 1;
    begin
    -- Get original MD5 checksum
    select wwv_flow_item.md5(column2,column3,column4,column5) cks
    BULK COLLECT INTO
    l_cks
    from TABLE;
    -- Compare the original checksum, l_cks,
    -- with submitted checksum, htmldb_application.g_fcs.
    -- If they are different, raise an error.
    -- for i in 1..l_cks.count
    -- loop
    -- if htmldb_application.g_fcs(i) != l_cks(i) then
    -- rollback;
    -- raise_application_error(
    -- -20001,
    -- 'Current version of data in database has changed '||
    -- 'since user initiated update --process.');                      
    --return;
    -- end if;
    -- end loop;
    -- update
    for i in 1..htmldb_application.g_f01.count
    loop
    if htmldb_application.g_f01(i) is not null then
    update TABLENAME
    set column2= htmldb_application.g_f02(i),
    column3 = htmldb_application.g_f03(i),
    column4 = htmldb_application.g_f04(i),
    column5 = htmldb_application.g_f05(i)
    where column1 = htmldb_application.g_f01(i);
    else
    if htmldb_application.g_f03(i) is not null then
    insert into TABLE
    (column2,
    column3,
    column4,
    column5
    values
    (htmldb_application.g_f02(i),
    htmldb_application.g_f03(i),
    htmldb_application.g_f04(i),
    htmldb_application.g_f05(i));
    end if;
    end if;
    end loop;
    end;
    I created the other tabular form on the same page with
    htmldb_application.g_f11(i)
    htmldb_application.g_f12(i)
    htmldb_application.g_f13(i)
    htmldb_application.g_f14(i)
    used the same code.

    Have you got any response on this? I would like to know how to do it too. I am trying to implement a manual tabular form on a page and need this functionality.
    I do know one thing. After attending the ODTUG conference last week, Raj said something about you have to process check boxes and radio groups separately from the rest of the form.
    Thanks,
    Michelle

  • DELETE function on list

    Hi,
    <br />
    <br />I have just got the toolbox extension for Dreamweaver &amp; I am playing round with the "Create Dynamic List Wizard". I can create the list fine but I notice it creates 2 links at the end of each row, "Update" and "Delete". I have played around with the update one and can get it to work but I cannot get the delete one working. It pops up with the "Do you want to delete option" but im not sure how to put the code behind this. What am I supposed to add to the list to <%=NXT_getResource("delete_one")%> to get the delete functioning?
    <br />
    <br />Thanks

    Peter, As you probably know, If you use the Dynamic List Wizard to create your List on your a main page, it automatically creates a new page for the Details (then you just open that detail page & run the Dynamic Form Wizard) and all of the Edit/Delete buttons work for sure. (at least they have for me)
    For me, I have created my own plain Update Pages and added the Delete behaviors. So far my forms are working ok for now.
    Regarding support & forums, where do I begin..?
    - From a developers point of view I think that ADDT as a product was better off being independent.
    - Currently there is limited "direct" answers to our "specific" questions
    - Using it for "Simple or Basic" sites works fine "Out of the Box" but if you need more functionality you're basically on your own.
    - The Documentation is good at explaining what each tool does; But "real use" & customization is not addressed very well.
    - Dreamweaver integration with Ajax & Spry has ZERO documentation. I have yet to find anyone in the forums or the Web in general who can or has implemented ADDT w/Spry.
    Overall, I'm thankful for ADDT, & working w/Dreamweaver, SPRY, & JavaScript has moved me quickly forward in the world of dynamic websites. Once I "learn" the Spry code and can produce functional pages, I may be letting ADDT go.
    jlig

  • 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

  • Hi, i want to implement a function in ODI

    hi, i am new to odi.
    i have created a project in odi which was very simple and only transfers data from one table to another.
    but now i want to implement a function in odi. i have the code for that function which is written in pl/sql.
    my function accepts some values that are used ahead in the function. now i dont know how to pass the values
    so can anyone plz tell me that how to pass values.
    regards,
    prateek.
    Edited by: user11116379 on May 21, 2009 1:37 AM

    If you want to call a PL/SQL function, you may want to do this in an ODI procedure. Take a look at the documentation which describes how to call a stored procedure, which is I think going to provide you the ability to execute your function.
    Functions can be called as a part of a mapping in an interface in ODI, just as you would normally use it as part of a select or insert statement.
    If you want to pass parameters into the execution of a task, you should use ODI's variables. Variables may be passed into the execution of a task, and the values from those variables can be used as a part of a mapping, resource name, filter etc.

  • How I can delete add-in in windows 8.1 ,I see only enable and disable function but I don't see any add-in delete function

    hi,
    how I can delete  add-in applications in add-in applications section ,  I try to delete one but I don't see any delete function, I see only enable and disable function in the manage add-in applications wizard.
    thanks
    johan
    h.david

    Hi,
    If you want to remove the add-ins of Office 2010 programs, you need to remove it from control panel.
    For example, if you use Excel, please try to follow the link to delete the add-ins:
    http://office.microsoft.com/en-us/excel-help/add-or-remove-add-ins-HP010342658.aspx
    If I misunderstand something, please let me know.
    Regards,
    George Zhao
    TechNet Community Support

  • How do I delete documents from my iPad that were added when it ran regular Acrobat, now that it has switched to DC?  The docs are not on the cloud, and DC does not seem to have a delete function for non-cloud docs.

    I use an iPad.  It automatically switched me from old-fashioned Acrobat to DC.  How do I delete docs that were put on my iPad with the old Acrobat?  They are not in the cloud, and DC does not seem to have a delete function for them.

    Hi,
    By default, Acrobat DC for iOS displays recently viewed files.  You need to switch to other file location (such as Local, Document Cloud, Creative Cloud) to delete, rename, move, or duplicate files.
    You can switch to Local, if you would like to see the files and folders that are locally stored on your iPad.
    Would you take a look at the following document to see how you can switch to other file location and delete files?
    How to manage files in Acrobat DC for iOS
    Please let us know if you have additional questions.  Thank you.

  • Problem in implementing forgotPassword function

    hi,
        I need to implement forgotPassword function in my jsp.
    I followed everything from these links : -
    https://forums.oracle.com/message/10958330
    Handling Forgotten Passwords
    I am not recieving any mails .
    In the logs there is no logs of EmailService getting started. Is there any configurations that I need to take care of ..??
    Thanks
    Rammohan

    Hi,
        After sorting some errors Password is getting generated and Password is getting reset .
       But Email is not being sent to the recepient.
       My SMTPEmail.properties file is as follows : -
    /config/atg/dynamo/service/SMTPEmail.properties
    $scope=global
    defaultFrom=[email protected]
    emailHandlerHostName=smtpcorp.com
    emailHandlerPort=25
    username=*****@gmail.com
    password=*******
    Any ideas  what am I missing...?
    Thanks

  • Eclipse: UFL "u212com.dll" that implements this function is missing

    Dear Sirs,
    I try to open one of our reports with the "Crystal Reports for Eclipse 2.0" sample application. Thie report relies on a com based UFL. I get the following error message:
    Crystal Reports Viewer
    Exception yadada...
    UFL "u212com.dll" that implements this function is missing
    OK
    How can I fix this?
    Thanks for your answers.

    The fact that you can see the UFL under 'Additional Functions' tells me that the UFL is compiled as 32 bit. This is good for creating the report in the IDE which is 32 bit. But the app you are building is compiled as 64 bit. But there is no 64 bit UFL(?) that yo have built so far. So, two options;
    1) Build the UFL as "Any CPU". I am not sure if this will actually work. never tried this, but I do know that it is not possible to compile an app using the CR runtime as "Any CPU". E.g.; we always recommend to compile either as 32 bit and \ or 64 bit, not "Any CPU" This may be the case with the UFL, thus the next suggestion.
    2) Compile a second copy of the UFL as 64 bit. You'll then have to use 64 bit GAC and regasm on that dll.
    - Ludek

  • UFL 'u212com.dll' that implements this function is missing

    I am attempting to write a user function library for the crystal reports version that ships with Visual Studio 2010. Following the walkthrough on the Business Objects website (although that is for VS2005) I have successfully created my .dll file and added it to the GAC, and it appears in the function list under 'Additional Functions' in the Crystal Reports formula editor. However when I use the function on in my Windows forms application, I get the error "UFL 'u212com.dll' that implements this function is missing.". This is on my development machine and I have installed the latest service pack for Crystal Reports for VS2010 (64-bit). My OS is Windows 7 64-bit.
    I have two questions:
    1)  What version of the .NET framework should my class library be targeting? My windows forms application targets the .NET framework version 4, but should I be doing the same thing for the .dll for Crystal Reports? It does show up in the formula editor though, so I guess that means that Crystal Reports recognises it correctly.
    2) I have done a search on the PC for the file 'u212com.dll' and it is in the folder C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64 (and also in the equivalent 32-bit folder) Is this correct, or is there is a specific 64-bit version of this file?
    Or is it something else that I am missing? Thanks in advance for any suggestions.

    The fact that you can see the UFL under 'Additional Functions' tells me that the UFL is compiled as 32 bit. This is good for creating the report in the IDE which is 32 bit. But the app you are building is compiled as 64 bit. But there is no 64 bit UFL(?) that yo have built so far. So, two options;
    1) Build the UFL as "Any CPU". I am not sure if this will actually work. never tried this, but I do know that it is not possible to compile an app using the CR runtime as "Any CPU". E.g.; we always recommend to compile either as 32 bit and \ or 64 bit, not "Any CPU" This may be the case with the UFL, thus the next suggestion.
    2) Compile a second copy of the UFL as 64 bit. You'll then have to use 64 bit GAC and regasm on that dll.
    - Ludek

  • "UFL 'u2ltdate' that implements this function is missing."

    I am working through migrating older reports from a very outdated version of Crystal into a newer version and trialing Crystal Server 2013 with Crystal Reports for Enterprise.  The only problem I am running into is that I have many reports using the NumberToDate function to pull a number string and form it into a date for the report.  I really need this function to work because we rely on it quite heavily.  When I pull reports that use it into my new environment I am given the following error:
    "UFL 'u2ltdate' that implements this function is missing."
    I have found the u2ltdate.dll on the web and transferred it into the following folders: windows/system32 and program files(x86)/SAP BusinessObjects/SAP BusinessObjects Enterprise XI 4.0/win32_x86 and the win64_x64 as well just to be sure.  But to no avail I am still unable to use the NumberToDate function.  I have even tried copying the u2ltdate.dll from our older server, and this doesn't work either.  I really need to get this working as soon as possible.    I don't know if I need a 64 bit dll because it is windows server 2008 or if I don't have it in the right places.  Please help!

    Hi Warre,
    Don't put the ufl into the \windows\system32 folder. Nothing should go there now.
    I doubt this will ever work in CR for Enterprise. It's a Java Designer so the only way to make it work is to create a Java UFL.
    Search for this KBA:
    1803967 - How to make a Java UFL available in Crystal Reports 2011 Designer?
    Same for CR for Ent., you need a Java UFL.
    Only way to make this work is to convert the UFL to Java or use Crystal Reports 2011 or 2013.
    See this MS Forum post I responded to also:
    Custom Crystal DLLs with Crystal Reports 2008 for Visual Studio Run Time
    And this one:
    http://scn.sap.com/docs/DOC-35036
    And this one:
    Java UFL and VB UFL
    Try searching, there is a kbase article with a sample attached.
    And you will need a 64 bit version because some of the report processing servers may be 64 bit only but I believe the Crystal Report Processing Server is 32 bit only. It will need the UFL copied into it's \win32_x86 folder.
    Only issue you should have is using CR for Ent. to design/update/create the reports with that function. Use CR 2011 or 2013 and it should work.
    Problem is we no longer have the source code for that UFL and others, quite often they were written by Support people and therefore not saved into our code source system.
    Don

  • Is there a way to password protect the delete function for pics/videos??

    My 2yr old toddler is randomly deleting my pics and videos on my iphone. Yes he knows how to navigate to the pics and videos on his own. I think its that shiny red delete button that catches his eye when he's bopping around form screen to screen.  I just want to disable the delete function function so that he doesnt do that anymore. I know there is the backup but that relies on me knowing when and what he deletes as I dont back up all the time.I heard Android has this feature but wasnt sure if the iPhone did. Any help would be appreciated.

    The real way to fix this problem is to obvioulsy not allow a 2 yr old to play with your $600 phone.
    Get that kid an iPod touch to play with ! 

  • Multiple message deletion functionality disappears

    My iPhones 5S with iOS 8.1 loses multiple message deletion functionality. I tap a message in communication thread, chose more options, mark messages to be deleted and push waste bin. When used a few times the waste bin is replaced with camera options and deleting multiple messages is not possible; see screenshot. In order to re-establish the functionality, I have to close the message app down and restart it. Are there any solutions or work around to this?

    Hi Kare Gronholt,
    If you are having issues with your iPhone's ability to delete multiple messages, you may want to try some things to troubleshoot.
    First, quit all running applications and test again -
    OS: Force an app to close
    Next, I would try restarting the iPhone -
    Turn your iOS device off and on (restart) and reset
    If the issue is still present, you may want to restore the iPhone as a new device -
    How to erase your iOS device and then set it up as a new device or restore it from backups - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L  

  • How to implement the function "Slow Play" using MPMoviePlayerController?

    Does anybody have idea to implement the function "Slow Play" using MPMoviePlayerController or some other indirect solutions? Thanks. Kevin.

    You can use the changeSelection(...) method to change the cell with focus.

Maybe you are looking for

  • Launch batch job thru SOAP call : no execution, connection OK.

    Hello, I am experiencing some problems launching batch jobs thru Web Services. I have added batch job "EPN_Test_Webservices" to the Web Services and enabled the Job Attributes. When I try to launch the job thru a SOAP call, I get a reply but the job

  • Why won't iCloud stay on in Keynote for iPad?

    In settings, the toggle to turn iCloud on in Keynote for iOS won't stay on. Works fine on iPhone, but they are not syncing with each other. Everytime I turn it on with the iPad, switch to Keynote, then come back to settings, the toggle turns itself o

  • Preferences are not saved properly

    A while back, I was doing something "complicated", with several programs open at the same time, and GarageBand crashed. Nothing unusual. But since then, every time I open GB, two error messages come up: The first one says: "Error reading/writing file

  • Usb superdrive just ejects disks on retina yosemite

    Would appreciate some advice and help PLEASE Just purchased a USB SUPERDRIVE to go into my Macbook 15" retina with Yosemite, it just clunks a few times and ejects the disk, the disk is an installation disk for the OED Version 3.1 CD ROM. Over 25 mile

  • Changing States or View Stack?

    Okay, I know this probably sounds ridiculously simple but I can't find any documentation to answer my question. What is the best way to design a four or five "page" project. Each of these "pages" are quite different in layout and content but I'm not