Problem with deleting record from the report.

This is my first post here, just to let you know I just started playing with Apex.
Here we go:
I have a page with report where the link to the record I have changed with ULR to the javascript:
javascript:doDelete(#RECORD_ID#)
I have created javascript in the HTML Header of the page
<script>
function doDelete(id) {
if (confirm("Are you sure you want to delete selected record?"))
$x('P3_DEL_ID').value=id;
doSubmit('DELETE');
</script>
and finally created a process for the page On Submit - After Computations and Validations.
declare
var_id number := :p3_del_id;
begin
commit;
Delete from mytable where record_id = var_id;
commit;
end;
I don't get error messages but record is not deleted.
Thanks for help in advance.
Robert

Robert,
That's the problem. With that type selected, change the value in the textbox to just: DELETE
Regards,
Dan
http://danielmcghan.us
http://sourceforge.net/projects/tapigen
http://sourceforge.net/projects/plrecur
You can reward this reply by marking it as either Helpful or Correct ;-)

Similar Messages

  • Problem with displaying records from the database in a table ui element

    Hi,
    Iam creating an application which retrieves data from an oracle database. Iam able to connect to the database and retrieve the data in a result set. Then I try to set these values in a context node as follows,
    while (resultSet.next()) {
    String name = result.getString(1);
    String EmpId = result.getString(2);
    IEmpNode node = wdContext.nodeEmp();
    IEmpElement el = node.createEmpElement();
    el.setName(name);
    el.setEmpId(EmpId);
    node.addElement(el);
    where the context structure is emp(node)
                                   ---name(attribute)
                                   ---empId(attribute)
    Then I have bound the node emp to a table ui element.If I try to deploy this it comes up with Internal Server error.
    But if try this way, without creating a node, only with attributes name and empId,
    wdContext.currentContextElement.setName(name);
    wdContext.currentContextElement.setEmpId(EmpId);
    and binding the attributes to inputfields in the view, Iam able to see the last record in the database table.
    So where am I going wrong while using the table ui element?
    Regards,
    Rachel

    Hi
    Try this
    //Create the node in outer of while loop and bind to Table UIElement
    IEmpNode node = wdContext.nodeEmp();
    while (resultSet.next()) {
    String name = result.getString(1);
    String EmpId = result.getString(2);
    IEmpElement el = wdContext.createEmpElement();
    el.setName(name);
    el.setEmpId(EmpId);
    node.addElement(el);
    Kind Regards
    Mukesh

  • I have a 13.5 month old Ipad2, wifi only that has had problems with wifi com from the beginning. I am learning that this is not unusual for apple. Any suggestions?

    I have a 13.5 month old Ipad2, wifi only that has had problems with wifi com from the beginning. I am learning that this is not unusual for apple. Any suggestions?
    ronald1094

    Try #5.
    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are droping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    iOS 6 Wifi Problems/Fixes
    How To: Workaround iPad Wi-Fi Issues
    http://www.theipadfan.com/workaround-ipad-wifi-issues/
    Another Fix For iOS 6 WiFi Problems
    http://tabletcrunch.com/2012/10/27/fix-ios-6-wifi-problems-ssid/
    Wifi Doesn't Connect After Waking From Sleep - Sometimes increasing screen brightness prevents the failure to reconnect after waking from sleep. According to Apple, “If brightness is at lowest level, increase it by moving the slider to the right and set auto brightness to off.”
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    How to Fix a Poor Wi-Fi Signal on Your iPad
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
    iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Connect iPad to Wi-Fi (with troubleshooting info)
    http://thehowto.wikidot.com/wifi-connect-ipad
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • Delete record from the form and from the database

    hi,
    i want delete record from the form and the database ,but the record is only delete from the from !!!
    this is my code :
    if //condition then
    delete_record;
    commit;
    end if ;
    Any solutions ??
    thnx

    You have unique key field(s) on the table you are trying to insert which actually restricts you from inserting the same value again.
    When you are deleting the record and issue commit there is a record to be inserted in the table which is a duplicate that's why you are getting this unique error.
    As oracle is not able to insert your commit fails and stops your deletion of record from table

  • I have a problem with your purchase from the App Store

    I have a problem with your purchase from the App Store
    To understand the problem as well as view images on a flow
    https://www.icloud.com/photostream/#A7GI9HKK27lHY

    You will need to do what it says, contact iTunes Support. These are user-to-user support forums, if you thought you were contacting Apple by posting here. Go here:
    http://www.apple.com/emea/support/itunes/contact.html
    to contact the iTunes Store.
    Regards.

  • Can not delete record from the master block ,frm-40202 field must be entere

    hi ,
    i have built a form which contain master and details blocks
    the problem is
    when i try to delete a record from the master block it gives me new serial for the transaction and when i try to save it, it says
    >frm-40202 field must be entered
    where this field is required and i cant save it
    although in another form when i delete from the master it gives me the previous record and it works properly
    if any one has any ideas pls help me
    thank u
    ------- the master block has a trigger when-create-recoder
    Declare>v_dummy number;
    Begin
    Select nvl(max(ERNT_NO),0) + 1 >Into v_dummy
    From LM_RENT_EXPNMST >Where cmp_no = :LM_RENT_EXPNMST.cmp_no
    And brn_no = :LM_RENT_EXPNMST.brn_no>and fiscal_yr = :LM_RENT_EXPNMST.fiscal_yr;
    >:LM_RENT_EXPNMST.ERNT_NO := v_dummy;
    END;
    IF :PARAMETER.RNT_NO IS NOT NULL THEN
         :LM_RENT_EXPNMST.RNT_NO:=:PARAMETER.RNT_NO;
              :LM_RENT_EXPNMST.RNT_YR:=:PARAMETER.RNT_YR;
         :LM_RENT_EXPNMST.CUST_DESC:=:PARAMETER.RNT_ADESC;
    END IF;Edited by: ayadsufyan on May 8, 2013 2:03 PM

    If this is a FORMS question you should mark this one ANSWERED and repost your question in the FORMS forum
    Forms

  • Performance problem with selecting records from BSEG and KONV

    Hi,
    I am having performance problem while  selecting records from BSEG and KONV table. As these two tables have large amount of data , they are taking lot of time . Can anyone help me in improving the performance . Thanks in advance .
    Regards,
    Prashant

    Hi,
    Some steps to improve performance
    SOME STEPS USED TO IMPROVE UR PERFORMANCE:
    1. Avoid using SELECT...ENDSELECT... construct and use SELECT ... INTO TABLE.
    2. Use WHERE clause in your SELECT statement to restrict the volume of data retrieved.
    3. Design your Query to Use as much index fields as possible from left to right in your WHERE statement
    4. Use FOR ALL ENTRIES in your SELECT statement to retrieve the matching records at one shot.
    5. Avoid using nested SELECT statement SELECT within LOOPs.
    6. Avoid using INTO CORRESPONDING FIELDS OF TABLE. Instead use INTO TABLE.
    7. Avoid using SELECT * and Select only the required fields from the table.
    8. Avoid nested loops when working with large internal tables.
    9. Use assign instead of into in LOOPs for table types with large work areas
    10. When in doubt call transaction SE30 and use the examples and check your code
    11. Whenever using READ TABLE use BINARY SEARCH addition to speed up the search. Be sure to sort the internal table before binary search. This is a general thumb rule but typically if you are sure that the data in internal table is less than 200 entries you need not do SORT and use BINARY SEARCH since this is an overhead in performance.
    12. Use "CHECK" instead of IF/ENDIF whenever possible.
    13. Use "CASE" instead of IF/ENDIF whenever possible.
    14. Use "MOVE" with individual variable/field moves instead of "MOVE-
    CORRESPONDING" creates more coding but is more effcient.

  • Help? Problem with deleting photos from I-photo?

    I have created some New Event trash folders to drag all my deleted photos from the trash bin as advised. I had thousands of deleted photos to deal with. Now the problem is that the bin looks empty but it still indicates that there are over 7000 photos left in it. I cannot see those items so I cannot drag them out. Should  I start reloading the trash bin (small amounts at a time!!) when there is still an amount in it??? How do I get rid of the remaining items? Should I just go and do a repair or rebuilding now?? Please help! Thanks!

    Should I just go and do a repair or rebuilding now?
    Yes.

  • Deleting records from the Custom Objects

    Hello all,
    We want to delete all records from a custom object and as there is no 'Batch Delete' functionality on it, we are thinking of other ways to delete all the records. One of the possibilities is to delete all the records by hand, which will be very time consuming, but this might become the best option. Another option is to use webservices to delete the records, but to do so, you will have to write a kind of program that will query for the records and then deletes them. Does anyone have another option or does anyone have written such a tool that I can use to delete the records from the Custom Object?
    Kind regards,
    Niels Rekers

    Hi, To my knowledge WS is the way to do it. We are a system integrator and can help you out in doing this by providing a WS program. If interested you can write to [email protected]
    -- Venky CRMIT

  • Problems with iMovie downloaded from the App Store

    I downloaded iMovie 11 from the App Store Yesterday. When I try to use it I get this message, "Missing QuickTime Component." "The QuickTime component necessary to view, edit, import and export MPEG2 movies is not installed." "It is included with the iMovie installed, Please re-install." I have tried to re-download it from the App Store and then get the message "Installed." I have searched the Apple site for information as to how to accomplish this to no avail. I have looked at the iMovie Help files all to no avail. Can anyone please tell me what to do to fix this. When installing from the App Store you do not seem to get a standard installer.
    Thanks to anyone who can help fix this problem.
    Mike

    When installing from the App Store you do not seem to get a standard installer.
    True.
    I have found that the physical possession of the software on a DVD or CD is a better way to go.
    In the event you have a computer problem and must rebuild your system or reinstall software, it is always easier to do so if you have the physical media in your possession.
    I would spend a few dollars more and purchase the iLife 11 disc.

  • I am having problems with video playback from the Internet such as you tube on my iPad. What's up?

    I am having trouble with video playback from the Internet such as you tube. What's up?

    Your video playback will also depend on your net speed. If you have slow internet, you will stream video slow. If your video stops and starts, you can try pausing it for a minute or so and then try to watch. Let more of it buffer before you try to watch.
    Sometimes your connection is so slow you literally play faster than it buffers, which means it stops and stutters continually

  • 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.

  • Facing Problem with passing Values from One report to another

    Hi,
    I am Hemanth, I have developed 2 reports. Firast Report High Level Summary, Secong is detailed. First report is developed using Union(4 union) , I am having 4 columns. The report is generating the data. I have used Navigation option on Client Column to move on to Second report. In Second report with in Filter i am using Prompted option. Due to some problem, the client value from first report is not passing to the second one. The second report is getting generated for all the clients.
    Normally i have used this Navigate option in other reports and that works fine. I have even tested with Union, it works. This time it is giving some trouble.
    Please, let me know whats going wrong.
    Thanks for the help.

    sorry for the late updation.
    My First Report, Summary level is a Pivot Table.
    I tried the same report with Table option, the value is passing correctly.
    Is there a way to get rid of this situation using Pivot table.
    Thanks for your help.
    below is the original request.
    Hi,
    I am Hemanth, I have developed 2 reports. Firast Report High Level Summary, Secong is detailed. First report is developed using Union(4 union) , I am having 4 columns. The report is generating the data. I have used Navigation option on Client Column to move on to Second report. In Second report with in Filter i am using Prompted option. Due to some problem, the client value from first report is not passing to the second one. The second report is getting generated for all the clients.
    Normally i have used this Navigate option in other reports and that works fine. I have even tested with Union, it works. This time it is giving some trouble.
    Please, let me know whats going wrong.
    Thanks for the help.

  • Problems with deleted Podcasts from iPod Touch (Проблема с удалением)

    У меня проблема с удалением подкастов с моего iPod Touch (версия прошивки 2.2, iTunes 8.0.2.20)
    Некоторое время назад я скачал через сам Ipod некоторые подкасты, в другое время с компа, после все синхронизировал и все уровнялось (переписалось недостающее туда и обратно). Сегодня я хотел все удалить и в настройках синхронизации моего iPod я просто снял галочку синхронизации и применил. После все плейлисты касательно подкастов были очищены, а вот сами файлы остались, т.к. в первую очередь суммируя то что у меня должно было быть и что было разница была в 3 гига.
    С помощью SharePod решил проверить действительно ли так то что я думаю и оказалось что он увидел эти файлы, которые должны были быть удалены, но т.к. версия базы данных иная чем то что он может понимать программа, удалить я их не могу. Прошу помочь.
    I have a problem with the removal of podcasts on my iPod Touch (firmware version 2.2, iTunes 8.0.2.20)
    Some time ago, through the iPod Touch I downloaded some podcasts, at other times from the computer, after all synchronized (rewritten podcasts from my computer and ipod). Today I want to delete everything and in sync to my iPod settings, I took a tick synchronization and applied. After all the playlists from podcast has been cleared, but the files themselves remain as the free space was at 3 Gb fewer regulations.
    Using SharePod checked their version and proved that SharePod saw no deleted files to be erased, but because version of the database other than the fact that he could understand the program, I can not remove them. Please help.

    You can only sync with one computer. I would backup to one computer and then restore from backup.
    iOS: Back up and restore your iOS device with iCloud or iTunes       

  • Critical problem with deleting templates from custom MPs

    Hello,
    I created several management packs with classes inherited from SR, RA, MA and with forms, did manual change (type projections, references), made bundle and imported MPs, tested it, all works good, BUT if I try to delete RA or MA from SR I see
    an error, also If I try to delete entire SR template I see an error:
    Cannot locate 1|SR_Workplace|1.0.0.0|Template.2d91857973454892beb3df01a97aa68d||.
     Cannot find ManagementPackElement [Type=ManagementPackObjectTemplate, ID=Template.2d91857973454892beb3df01a97aa68d] in management pack ManagementPack:[Name=SR_Workplace, KeyToken=, Version=1.0.0.3].
    So I can create templates and cannot delete it in the Templates view, how to solve it???
    If I try to delete RA and MA template from SR I see 44 errors:
    : Verification failed with 44 errors:
    Error 1:
    Found error in 1|SR_Workplace|1.0.0.0|Offering10efc13c0d6f45009263ecc8a0d9c1f2/GeneratedId_PresentationMappingTemplate0/GeneratedId_Sources0/GeneratedId_Source1/GeneratedId_Targets0/GeneratedId_Target1|4|RequestOffering/PresentationMappingTemplate/Sources/Source/Targets/Target
    with message:
    Invalid Presentation Mapping Template. The path is not found in the target template.
    and more with same message

    You need to delete the Request Offering(s) based on this Service Request template. That is what it is complaining about.
    http://codebeaver.blogspot.dk/

Maybe you are looking for

  • PDF Files Issues

    Here is the situation. Installed Max OSX 10.5. Caused a problem with printing pdf files on a Canon imageclass MF4150, resolved by installing a new printer driver (UFRII_V150MacOSX) & fax driver (FaxV160MaxOSX.dmg) dl'd from Canon. Now I cannot view a

  • Unable to clear previous month stock

    Dear All, I am facing issues in activating batch management. I have gone through many threads on SDN,however thry didn't help me much. I have two queries: 1. I can see previous period stock in material master but I am not able to see its details in M

  • How make a normal call with ipad mini

    i want to call and send text message by normal way, do you know how can i do? or wich app i need to download??

  • Vendor List Mass Creation

    Hi all,    We need to input thousands of vendor lists ,but there is no such a mass input BADI or FM available.. or we have not found out...    Could you pls help us on how to finish this mass input job? THank you!

  • Windows 7 PC locking out domain user in Windows Server 2008r2 domain

    I have reviewed dozens of related questions, but none have given me an answer that works on this situation.  We replaced an XP desktop with a Windows 7 desktop.  It keeps locking out just user(of over 25 migrated).  I have disabled the Windows 7 cred