Identify the regions where the checkbox is checked

Hi All,
I've a page which contains 3 report regions each one with a checkbox column. User has the flexibility to select any/all rows from each region and I need to store the selected rows into a database table.
I've created the below process to insert the data into the table.
FOR i in 1..APEX_APPLICATION.G_F01.count
LOOP
insert into table_name (c1,c2,c3) values (v1, APEX_APPLICATION.G_F01(i),v3);
END LOOP;
The process is executing well and inserting the data into the table. But the problem is when the user select rows from different regions, I get all rows inserted into the tables but I'm not able to identify which row is selected in which region. Is there any way to identify the region from where the row is checked.
Thanks in advance for the help.
Regards,
Prasanth

Hi Prasanth,
Your probably using apex_item package to generate checkboxes. So, try to change p_idx parameter.
In your case it's probably p_idx => 1. In other 2 reports set it to 2 and 3 and then in process you can fetch that with in APEX_APPLICATION.G_F02 and APEX_APPLICATION.G_F03 arrays.
Br,
Marko Goricki
http://apexbyg.blogspot.com/

Similar Messages

  • How to check if the checkbox is checked.

    Hi, I am running blank with this one.
    I have a checkbox item called P46_PAGE2 with static LOV STATIC:;1
    How do I check if it is check using Javascript.
    Thanks in advance

    if ($x('P46_PAGE2_0').checked){
    <your code>
    }Check out this blog entry about the Checkbox in APEX:
    http://dgielis.blogspot.com/2008/02/checkbox-in-apex.html

  • How to call trigger event when the checkbox is checked using custom.pll

    Hi,
    In recipt form i have one checkbox.when i check the box the popup should be open.
    how to check the check box is checked or not.
    any one help.me.
    Regards,
    M.Soundrapandian.

    You can probably do this easier using forms personalization - pl see ML Doc 279034.1 for details
    HTH
    Srini

  • In Acrobat, I wrote a script to turn fields gray if a checkbox was checked. How can I get it to reset to white (or clear) when the reset form button is clicked?

    In Acrobat, I wrote a script to turn fields gray if a checkbox was checked. How can I get it to reset to white (or clear) when the reset form button is clicked?

    Thank you so much for your reply . . . but . . . I should have shared my original script with you -- it was a little more complicated than I led you to believer. I was triggering a group of text fields to become disabled as well as gray. Below is the original script so that when the checkbox is checked, it causes several "Co" fields to be disabled and gray.
    // Mouse Up script for check box 
    // If checked, certain fields should be disabled 
    var f_prefix = "Co"; 
    // Get a reference to all of the "Co" fields 
    var f = getField(f_prefix); 
    // Reset the Co fields 
    resetForm([f_prefix]); 
    if (event.target.value === "Off") { 
        // Enable the Co fields 
        f.readonly = false; 
        f.fillColor = color.transparent; 
    } else { 
        // Disable the Co fields 
        f.readonly = true; 
        f.fillColor = color.gray; 
    To recap -- my goal is to get those gray fields to revert to transparent if the form is reset. I'm willing to create my own custom "Reset Form" button but I'm not sure I understand how that would look. Wouldn't it be quite lengthy? I think I'm having a brain freeze -- can't figure it out!

  • Why doesn't the checkbox check?

    I have a JTable that has a column of (Boolean.class). So it displays a checkbox.
    The public boolean isCellEditable( int row, int column ) returns true.
    The public final Class getColumnClass( int column ) returns Boolean.class
    There is no default renderer overiding it. ( i.e. I never set setDefaultRenderer() )
    So, I don't know why it won't set the checkbox to 'checked' state when I click on it.

    This shows the checkboxes are always false, so I guess I'll have to overwrite the default setValueAt() method...
      public void setAllSelected( boolean flag )
        int rowSize = getRowCount();
        System.out.println( "RowSize: "+rowSize+", boolean: "+flag );
        for( int row = 0; row < rowSize; row++ )
          setValueAt( new Boolean( flag ), row, XML_Table.CHECK_COL );
          fireTableDataChanged();
          Boolean b = (Boolean)getValueAt(row, XML_Table.CHECK_COL);
          System.out.println( "Is Checkbox checked: "+b.booleanValue() );
      }

  • How to check whether a checkbox is checked

    This code:
          if (checkBoxCSharpShown.IsChecked)
            checkBoxCSharpShown.IsChecked = false;
    elicits:
    "Cannot implicitly convert type 'bool?' to 'bool'. An explicit conversion exists (are you missing a cast?)"
    How can I check whether the checkBox is checked?
    Delphi ancient/C# newbie

    So why is this so complicated? Why doesn't a check box have a true/false value? The answer is that a checkbox can (optionally and not by default) be a three-state control.
    When ThreeState is true, the checkbox has three states:
    Checked
    Not Checked
    Indeterminate
    They correspond to these tests:
    bool checked = IsChecked.HasValue && IsChecked.Value == true
    bool unchecked = IsChecked.HasValue && IsChecked.Value == false
    bool indeterminate = IsChecked.HasValue == false
    One of the ways a three-state checkbox is used is in a property dialog. If the user selects multiple items (all having some boolean property called 'Active'--for instance), what should the proprety dialog show for that selection if the value of Active is different among the selected items? Should it show True? That wouldn't work, they are not all True, same for False. So instead the property dialog would show Indeterminate, indicating that the collection of Active values is neither True, nor False.
    Now having said all of that I'll refer you to:
    CheckBox.Checked
    This is true or false. If the ThreeState property is True, Checked returns True for True or Indeterminate.

  • JSTL test if checkbox is checked

    Hello all,
    I hope this question isn't too amateurish to answer, but it is something that has been troubling me.
    I have a table with two columns. In the first column i've got a form checkbox with id="myCheckbox" and in the second column I have a bit of text that I only want displayed if the checkbox is checked. I mostly had this working through a combination of a small javascript function that was set to the onclick parameter of the checkbox to toggle between hiding and displaying the text while having the text initialize to not be displayed (with style="display:none")...
    ...but the problem was that if there was an error being returned in the form, the page would reload with the text hidden, but the checkbox checked. Now I could get around this by re-initializing the checkbox to being unchecked... but that's not the solution i'm looking for. Ideally, if an error were returned and the page reloaded I would like the checkbox to be checked and the text to be displayed.
    I was hoping that perhaps I could use some JSTL magic to form a statement around the text... something to the effect of <c:if test="${myCheckbox.checked}"> display text </c:if> . But that isn't working for me. Am I close in my thinking? I think my thinking is mostly good, it's the implementation that is not good. Is there any way to perform such a test?
    Let me know if anyone can help... thanks,
    Skylar

    Hmm, that is helpful, but it doesn't get me quite there.
    I was unfamiliar with the "not empty param" test, so thank you. As I suspected after reading your post, however, the parameter is not set until the form is submitted. I think I may have to either use a combo of your suggestion along with my previous javascript function... or add additional functionality to my script to maintain state between page reloads.
    Does this make sense? Again, thanks evnafets.Let me know if you (or anyone else!) have any other ideas.

  • Checkbox not checked by default

    Hello,
    I don't know if it is a anomaly but when a put a checkbox in a popup iView with default value true == 1, the checkbox is not checked.
    When I put a checkbox with the same default value in my main iView, the checkbox is checked.
    Version : VC 7.00 SP9 patch 2
    Is there a bug ?
    Best regards.
    Francois

    Hello Ankur,
    I have installed SP10 for VC 7.00 and I have same thing : Checkbox don't work.
    Can you test this ?
    1. In my popup iView, I call a web service and the result is a form. In this form, I add manually a checkbox (<a href="http://fng.homelinux.org/copper/albums/userpics/10002/screenshot1.png">screen shot 1</a>)
    2. In the properties window of my checbox, I put <b>true</b> as default value. (<a href="http://fng.homelinux.org/copper/albums/userpics/10002/screenshot2.png">screen shot 2</a>)
    3. After compilation, my checkbox is not checked by default. (<a href="http://fng.homelinux.org/copper/albums/userpics/10002/screenshot3.png">screen shot 3</a>)
    It <b>works</b> only if I don't call the web service before the form.
    Best regards
    Francois

  • How to linking a textfield to another when checkbox is checked.

    HI All
    Can Anybody please help me;)
    I want to do the following: I have to textfileds in a pdf form. Next to the second textfiled is a checkbox. I want to have the second textfiled to be linked to the first one only when the checkbox is checked.
    So when the checkbox is checked, the second textfiled should have the same value as the first textfield. Whe the checkbox is not checked The second textfiled can be overwritten and has its own value.
    This is my try:
    var g = this.getField("checkbox1");
    if(g.isBoxChecked(1))
    var f = this.getField("Text1");
    event.value = f.value;
    Now the if statement doesn´t work. But when i just have this:
    var f = this.getField("Text1");
    event.value = f.value;
    It works fine, and both textfiled s have the same value.
    Can anybody please help me?;)
    I am searching the whole net now for 2 days and haven´t found anything usefull. I also didn´t find anything in the adobe documentations and sample pdf files:(
    Thanks for any hint;)
    cheers dietmar

    Corey,
    Use a combo box with the part number and a switch statement (on blur, and commit immediately) linked to several text fields for the description. Something like this:
    var combo1 = this.getField("Combo Box5").value;
    var endDefault;
    var a = this.getField("Text1")
    var b = this.getField("Text2")
    var c = this.getField("Text3")
    switch (combo1){
    case "Select an address":
    getField("Text1").value = "",
    getField("Text2").value = "",
    getField("Text3").value = "";
    break;
    case "Part #1":
    getField("Text1").value = "Part #1 Description",
    getField("Text2").value = "Line break 1 description",
    getField("Text3").value = "Line break 2 description";
    break;
    case "Part #2":
    getField("Text1").value = "Part #2 Description",
    getField("Text2").value = "Line break 1 description",
    getField("Text3").value = "Line break 2 description";
    break;
    case "Part #3":
    getField("Text1").value = "Part #3 Description",
    getField("Text2").value = "Line break 1 description",
    getField("Text3").value = "Line break 2 description";
    break;
    default:
    endDefault = false;
    if (endDefault = false)
    app.alert("Please select from the drop-down menu",3);

  • Pl sql Code To count how max checkboxes are checked In the Report Region

    I am developing a APEX report where I put check boxes to row row of the report result . So I checked Some of this check box. Now I need a code to count how many checkboxes are checked during the runtime

    there is a forum for APEX: Oracle Application Express (APEX)

  • Setting The checkbox in Screen (SE80) default to checked.

    Hi !
    I would like to set the checkbox in my selection screen defaulted as checked from the screen element in SE80.Where do I mark it as checked in the Screen 9000 that I have in my report so that when I run my report , in my selection screen I get that as defaulted checked.
    Thanks

    That's right, this is why I said that you would need to handle it so that it would only be defaulted once in the program execution.  If you are doing an explict CALL SCREEN in your program, then you could simply set this checkbox value just before calling the CALL SCREEN instead of putting it in the PBO.  If this is a module pool, and the screen is directly called via transaction code, then you will be forced to set the value in the PBO.  In which case, you would need to check that it is the first time the code is being executed.  You can do this with a global variable flag. So at the top of your program...
    Data: lv_initialized type c.
    Then in your PBO code, check the flag first, if not set, then set the default for the checkbox, and then set the flag to signify that this has been done.  The next time the screen is thrown, then it will not try to default it again, if the user has happened to change the value.
    module PBO.
    set pf-status '100'.
    if lv_initialized = space.
      p_checkbox = 'X'.
      lv_iniitalized = 'X'.
    endif.
    endmodule.
    Regards,
    Rich Heilman

  • How to identify which record(s) the user hasbeen checked

    i have a internal table in which first field is represented as check box in the output .
    like bellow
      loop at g_it_final into g_wa_final.
            write : 5 sy-tabix ,
                   20 g_wa_final-g_v_check as checkbox,
                   25 g_wa_final-TRKORR,
                   40 g_wa_final-AS4TEXT.
      endloop.
    now the user will select some records from the output checking the check box
    NOW the QUESTION is
    how to identify which record(s) the user hasbeen checked(selected) ?
    so that i can disply only the selected records in the secondary list.

    Hi,
    You will have to use the 'READ LINE' command within a loop to retrieve the data back into your program.
    You may want to use the HIDE command to ease the retrieval of the checkbox value.
    Check out the online help for both of these.
    Darren

  • Where do you see the checkbox?

    I read a couple threads as well as Tim's blog about adding a checkbox and uploading the font file....I have followed these instructions but when I preview in Word I still see the diamonds. Will I only be able to see the checkbox in EBS?
    Thanks as always!
    Rob

    Rob, its me again,
    when you say, in desktop, there is a configuration file, where you got to say use this font .
    you missed that step in Desktop. if you have done that , you would have been able to see the check box, not only check box, what ever character you want to display if that is true.
    In EBS , you will be able to see that correclty, if you have uploaded the font and you have specified that in the configuration.
    refer the documentation.

  • F110 Identifying the check

    Hi Guys,
    When we carry out the payment using F110, how does the system identify the check to be printed?
    If say there are 2 banks HDFC and CITI BANK , how does system identify which check to print for which bank payment, in other words how is the check linked to this house bank.
    where do we link the check to be printed to this house bank?
    What are the steps for identifying the check to be printed automatically by the system.
    thanks
    srik.

    Hi srikanth,
    First i dont want to know whether you want to create different check formats for different banks or want to know how the system takes the cheque for each bank
    In t.code FCHI, we will create a check lot for each house bank and in F110, the syetem will automatically take the check lot based on the variant defined in the Printout/Data medium tab. But we can give the only one Check format and form for one payment method for our company code.
    Lakshmi

  • I activated the checkbox "Automatically send report to apple" where can I disable it?

    I activated the checkbox "Automatically send report to apple" where can I disable it?

    I could solved it too on snow leopard 10.6.8. Leave you a copy.
    Re: Reactivate Console's "Automatically Send Anonymous Diagnostic and Usage Data to Apple" 
    07-mar-2012 15:10 (in response to red_menace)
    Thanks, red_menace, you were right; after an itunes forced exit, I was asked to create an inform, then to send it to apple and finally to "Automatically Send Anonymous Diagnostic and Usage Data to Apple". I accepted and cheked "Don't ask me again".
    Now the Console Preferences check box is ennabled and checked again.
    Thank you all for your help.

Maybe you are looking for

  • Error in Deployment of SAP ESS 100 SP16 ess/au/addr

    Hello Gurus Greetings !.. I am trying to Deploy SAP ESS 100 SP16 for Netweaver 2004s using SDM but getting error while i deploy in the phase ess/au/addr. Please check for the log below if any one can helpout soon.... May 22, 2007 10:16:50... Info: **

  • External firewire Hard drive running utilities on it.

    How do I take advantage of using fsck -y in the terminal in an external Hard drive. If i do a restart using cmd S keys I will boot back into main Hard drive. And what other codes can I use like fsck -yf. G5   Mac OS X (10.4.5)  

  • Can't use a wireless connection.

    I have just installed windows 10 technical preview build 10041 and I am unable to use a wireless connection to use the internet or for downloading updates. Every time I open Internet explorer or try to download updates my BThub 4 disconnects and wont

  • Guild Wars 2 : Standard Edition?

    Now we have ourselves a release date. Will Best Buy be selling a physical copy of the standard edition of Guild Wars 2? Will it be available for prepurchase and/or preorder? I'm NOT interested in getting the digital edition or the collectors edition,

  • SCCM 2012R2 - Windows xp sp3 capture error

    Hi, i'm trying to capture Windows xp sp3 with SCCM 2012R2, but still getting an error. We already applied the hotfix for Windows xp with WinPe3.1. Is anybody able to help with smsts.log below or do i need to post some additinal logs? I followed this