How to check/uncheck all check boxes in an insert-not-allowed block

Hi All,
I have a column of check box which is placed in a multirow block. This block's INSERT_ALLOWED property is set to false. The column of check box is not a database item and its insert_allowed property is to true. Now I use the following code which is in when-button-pressed trigger to control checking/unchecking all the check boxes:
go_block('selected_payment');
first_record;
loop
:cb_payflag:= 'N'; -- uncheck the check box
exit when (:system.last_record = 'true');
next_record;
end loop;
It gives me 'FRM-41051 Cannot create records here' error, and it goes into an infinite loop. It looks like it never reaches the last record where the block actually contains two records.
Please help!
Thanks in advance.
Regards,
Vanessa

It sounds like your block does not have a field where the cursor focus can go when looping through the records. Create a dummy non-db field in the block which is enabled and has insert/update allowed. see if it then works. If it does then you can shrink the field down to 1x1 pixels with no border so the user cannot ever click on it and it's invisible.

Similar Messages

  • I bought a new computer and tried to authorize it.  It states that I already have 5 computers that are authorized.  I no longer have any of those 5 computers.  How do I deauthorize all of them, as it is not shown as an option, as my new computer can'

    I bought a new computer and tried to authorize it.  It states that I already have 5 computers that are authorized.  I no longer have any of those 5 computers.  How do I deauthorize all of them, as it is not shown as an option, as my new computer since it is not authorized.
    Thanks

    You can de-authorize individual computers, but only by using those computers. The only other option is to "de-authorize all" from your iTunes account.
      1. Open iTunes on a computer
      2. From the Store menu, select "View my Account..."
      3. Sign in with your Apple ID and password.
      4. Under "Computer Authorizations" select "De-authorize All".
      5. Authorize each computer you still have, as you may require.
    You may only do this once per year.
    After you "de-authorize all" your authorized computers, re-authorize each one as required.
    If you have de-authorized all computers and need to do it again, but your year has not elapsed, then contact: Apple - Support - iTunes - Contact Us.
    For more information on authorization and de-authorization: iTunes Store- Authorize or deauthorize your Mac or PC.

  • Ust purchase an iphone 4s and need to know how could i transfer all files including (contacts, pictures, music, notes and ect.... from sd card or any external card to iphone 4s, please advise thx

    ust purchase an iphone 4s and need to know how could i transfer all files including (contacts, pictures, music, notes and ect.... from sd card or any external card to iphone 4s, please advise thx.

    You need to put all of your info on your computer and then sync it to iphone.

  • I have pictures in my pictures and in a group and want to send them all at once. It will not allow this what do I do to correct this ??????????

    I have windows xp media and have pictures of family in a group. I want to send them all at once and it will not allow it. I can send one at a time and that would take all day. the total pictures in one group is 16 and the other 32 pictures. HELP
    == This happened ==
    Not sure how often
    == after fire fox came on

    First step is to set the address book to show last name and then the first.
    Open the Address Book
    Select View-Show Name As-Last, First
    Then click on the column header labeled NAME to sort on that column.

  • How can I update my iPad products when it does not allow me?

    How can I update my iPad products when it does not allow me?

    All Apple servers are undergoing a huge number of hits.  I think tomorrow or even the next day, all upgrade and activation servers will be in better shape.
    Patience, Grasshopper.

  • Have in iPhone 4 that's not been ANY trouble in the last 18 months that I've had it, but all of a sudden it is not allowing me to connect to the iTunes shop. It's on ios7, and I've not tried to sync to my computer yet, but I thought I'd try here first

    Have in iPhone 4 that's not been ANY trouble in the last 18 months that I've had it, but all of a sudden it is not allowing me to connect to the iTunes shop at all. It's on ios7, and I've not tried to sync to my computer yet, but I thought I'd try here first

    Hi there northwave8,
    You may find the troubleshooting steps in the article below helpful.
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    -Griff W. 

  • Unchecking All Check Boxes with one button?

    Hello,
    I am trying to include a button which automatically unchecks multiple checked boxes. Does anyone have any idea on how I could do this? Please let me know
    Thanks,
    Dilip

    the push button is ok to hide and show objects
    but will not make you check or uncheck the check box
    great that u solved the issue
    good luck

  • HT1711 HOW TO I UNCHECK (ALL AT ONCE) THE CHECK MARKS NEXT TO THE SONGS

    HOW DO I - WHAT IS THE COMMAND - TO UNCHECK ALL AT ONCE THE CHECK MARKS NEXT TO THE SONG LISTS. 

    Command-click one of the tickboxes and they should all be unticked (and similarly Command-click again to re-tick them all).
    (For future info, typing all in capitals is considered shouting, and may mean that people don't reply to your posts.)

  • InfoPath: Check that all tick boxes have been ticked

    I have an InfoPath form. It is a checklist with 20 tick boxes. I want to be able to update a status field once all those boxes have been ticked and the form submitted. What is the best approach to this?
    Learning SharePoint

    Create a checkbox on your InfoPath form and set it to required. This way the user needs to check it before he / she is able to submit the form. If required doesn't cut it, just add a validation to the checkbox, so it needs to be
    true.
    http://stackoverflow.com/questions/8045235/infopath-2010-validate-i-agree-checkbox-before-submitting
    http://sharepoint.stackexchange.com/questions/85678/sharepoint-how-to-enable-a-field-when-a-check-box-is-selected-on-new-item-form
    http://office.microsoft.com/en-in/infopath-help/make-a-control-required-HP010065360.aspx
    http://www.bizsupportonline.net/blog/2010/01/infopath-make-control-required-based-on-condition/

  • How do you selected all text boxes in a document

    Say you have 100 pages in a document and you have a threaded text box placed on pages 1 through 100. How do you selected all the text boxes at the same time? You might do this to change the size of the boxes, or lock all of the boxes, or apply an object style to all of the boxes.

    Depending upon how well your document is set up though, layout adjustment might work.
    If changing text box size is on your agenda, and every text box is lying exactly on guides, then layout adjustment might work.
    The only way I can think of to lock all frames in a story, or to change the size of all text frames in a story, would be to write a Javascript. And, even after years of practice, I know that it'd still be faster for me to just step through the document and make the changes by hand than it would be to bang my head against Javascript for n hours before I found a good solution.
    Barring these exceptions, I think that Bob's statement
    You don't because you can't.
    is actually pretty accurate. Terse, maybe, but accurate.

  • How do I find all of the photos that do NOT contain a specific person tag?

    I am scanning my old photos and slides and organizing them with Photoshop Elements 12.   I have recently started taging the pictures with family names.   I see from this forum that I can search for untagged pictures but how can I find all the pictures that do NOT contain the "Smith" family tag but might contain the "Jones" family tag?  Some pictures will be marked with more than one family name.  The "Find by Details" option defaults to "includes" for keywords and people.  There is no way to set it to "not includes".
    I am running PSE12 on Windows 7 Professional on a Dell XPS desktop.
    Thanks for any suggestions.
    Don K.

    See the online help:
    http://helpx.adobe.com/elements-organizer/using/finding-media-files-keyword-tags.html#excl ude_media_files_from_a_search
    The workaround is often to create a temporary tag for pictures not having a given keyword. Even with a very big catalog, tagging nearly all images is astonishly quick. You select based on the keyword, then use the option to show 'non matching' items, and assign them another (negative) keyword.

  • How to set index in combo box to newly inserted item

    I have the following code:
    Private Sub ComboBox2_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox2.SelectedIndexChanged
            If categoryString = "New" Then
                newCategoryString = InputBox("Enter new category name", "New Category")
                ComboBox2.Items.Add(newCategoryString)
                categoryString = ComboBox2.SelectedItem
            End If
        End Sub
    The combobox has the following collection of items
    Business
    Personal
    Home
    Vehicle
    Social
    New
    When the user selects New, the msgbox pops up  and the user enters the new category.  After choosing, the selected item defaults to New.  How can I determine the index of the newly inserted item?  I am using VB 2008 Express.
    Best regards,
    Randy Boulter

    Hi
    Here is my take on the question. This inserts the new item above the last item("New"), and gets the index accordingly. This keeps the "New" item at the bottom of the list.
    Private Sub ComboBox2_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox6.SelectedIndexChanged
    Dim cb As ComboBox = DirectCast(sender, ComboBox)
    If cb.SelectedItem.ToString = "New" Then
    Dim newCategoryString As String = InputBox("Enter new category name", "New Category")
    cb.Items.Insert(cb.SelectedIndex, newCategoryString)
    Dim newitemindex As Integer = cb.Items.IndexOf(newCategoryString)
    End If
    End Sub
    Regards Les, Livingston, Scotland

  • How to disable Refresh,Reload in browser and user should not allow to multiple browser sessions ?

    Dear All,
    How to disable Refresh,Reload in browser and end user should not allow to multiple browser sessions in portal.Where we need to configure the settings or any code in masthead or any other component. My server version is 7.4 - SP5 .Please help us.
    Thanks for advance,
    BR,
    Durga Rao.

    Dear all,
    i am able to logoff the click refresh button on keyboard.I am using this code to log off the user into the portal.
    document.onkeydown = function(e)
      var key;
      if (window.event) key = event.keyCode
      else
      var unicode = e.keyCode ? e.keyCode : e.charCode
      key = unicode
      switch (key)
      { //event.keyCode
      case 116: //F5 button
        LSAPI.sessionPlugin.logoff();
      event.returnValue = false;
      key = 0; //event.keyCode = 0;
      return false;
      case 82: //R button
      if (event.ctrlKey)
    LSAPI.sessionPlugin.logoff();
      event.returnValue = false;
      key = 0; //event.keyCode = 0;
      return false;
      case 91: // ctrl + R Button
    LSAPI.sessionPlugin.logoff();
      event.returnValue= false;
      key=0;
      return false;
    Thanks.
    But i am unable to control the multiple windows opening the browser.So any one can tell me the how to block the new window and new tab/duplicate tab option.
    BR,
    Durga Rao.

  • My HP photosmart 2610 all in one will print by not allow me to save or send a scan

    My HP Photosmart 2610 all in one will scan but will not allow me to save the scan or email the scan.  i assume it is a bug with maverick.....which i recently downloaded

    Does this thread help?
    http://h30434.www3.hp.com/t5/Mac-Printing-and-Scanning/OS-X-10-9-Mavericks-Incor rect-output-using-HP-Scan/td-p/3069079

  • How can i close chrome...it us currently not allowing me to shut down

    How can i close Chrome.  It is currently not allowing me to shut down.

    Choose Force Quit from the Apple menu and close it there.
    (92305)

Maybe you are looking for