Help with the check box.

Hi,
I have a question with the Checkbox. I am using Apex 4.0.
I have 5 checkboxes and using the Lovs I have given values to each check box.
When I select the checkboxes and submit, the values are inserted into a single column.
Example
Consider CB as check box
CB1 1
CB2 2
CB3 3
CB4 4
CB5 5
When I Select CB1, CB4, CB5 In database it stores as 1:4:5 But, I need it to be stored as 10045 format. Like if I select CB2,3 5 then it should be stored as 02305
The return value of the checkbox should be displayed along with the other unselected values as 0s as told in the above format.
Can anyone help me with this.
Thanks,
Rik

If you want to show the value on screen(can't set it to the same checkbox item)
checkbox_item_name = 'P133_CHECK';  //checkbox item name
checkbox_value_item_name = 'P133_CHECKBOX_VALUE'; // Item which has the checkbox value concatenated 0 for not checked and checkbox value when checked
$('#'+checkbox_item_name).find('input[type=checkbox]').click( function(){
  var val = '';
  $('#'+checkbox_item_name).find('input[type=checkbox]').each( function(){
    if ( $(this).is(':checked') ){ val+= $(this).val(); }
    else { val+=0; }
  $s(checkbox_value_item_name,val);
If you want to just use the value in PLSQL, it is much more simpler
Create a Dynamic Action that is triggered "*before page submit*"
Execute JS code
checkbox_item_name = 'P100_CHECK';  //checkbox item name, change it appropriately
var val = '';
$('#'+checkbox_item_name).find('input[type=checkbox]').each( function(){
  if ( $(this).is(':checked') ){ val+= $(this).val(); }
  else { val+=0; }
$s(checkbox_item_name,val);Now when the checkbox submits, the checkbox item would have the concatenated value as required.

Similar Messages

  • How to with the check box in Suppliers - Contact Directory

    EBS R 12.
    I am in need of finding a solution for the following:
    Payables Manager -> Suppliers -> Inquiry -> Select a supplier -> Go to "Contact Directory" -> Select a contact
    Under User Account section there is a check box.
    When I check the check box, the following action should happen:
    1. The "Username" field must contain the value of the "Email".
    2. Under "Responsibilities" "Sourcing Supplier" must be checked.
    I don't know where to put my hands to solve this problem.
    All helps will be appreciated. Thanks.

    Hi
    SPRO - SAP IMG- Material management - Inventory management and physical inventory - Goods receipt - create purchase order automatically - activate auto Po creation for movement type.
    Then activate the auto PO creation in Vendor master - Purchasing view
    Check it out.
    Regards,
    raman

  • Create PO with the check box of free item selected automaticly

    Hi all,
    We would like to create PO's with a normal position and a second position which is free.
    Is there a possibility to have a special position type for free goods?
    We don't want to check this checkbox every time we create a PO...
    Thanks,
    Thomas

    hi,
    Indicator is not possible to get based on the position in the PO..
    You can get the indicator defaulted via maintaining the indicator in MMR and then considering the same material while maintaining the PO.
    Regards
    Priyanka.P

  • I keep getting the message: "what should firefox do with this file" in Windows XP every time I want to download a file, e.g., adobe, excel, etc. How can this annoying message be deleted? The check box to "open file automatically" does not work!

    I keep getting the message: "what should Firefox do with this file" in Windows XP every time I want to download a file, e.g., adobe, excel, etc. How can this annoying message be deleted? The check box to "open file automatically" does not work!

    cor-el,
    Thanks for your prompt reply. However, the sources you gave do not seem to apply exactly to my situation. I have attached some screenshots that show what the dialogue box looks like for a pdf download, and what my settings in the Apps panel of Options are. You will note in the first screenshot that I have checked the box to handle this file type automatically; however, the next time I try to download a file of that type, the same dialogue box appears looking exactly like the one shown, so checking the "automatic" option appears to do nothing. The files to be downloaded from my Gmail messages are not generic or altered file types - they are shown as pdf, doc, docx, etc. So while your intent was good, your post did not help. Thanks anyway.

  • Popup screen with two check box and a text area for the user to enter value

    hi,
    i have a requirement when a button is clicked a popup screen should appear with two check box and a text box where the user can enter a value.
    is there any function module which has that functionality

    Hello,
    You can create a new screen and select the screen type as <b>model dialog box</b>.This will give you a<b> pop-up screen</b> and you can call this model dialog box screen in the PAI of the screen where the button is present.(At user-command).
    <b>case ok_code.
    when 'BUTTON'.
    call screen 200 starting at 10 10.</b>
    You can design the PBO of this pop-up screen as per your needs.
    Regards,
    Beejal
    **Reward if this helps.

  • Help requested: How to pass the (check box) selected rows data to other scr

    Hi friends, Here is a situation where I have to pick only those records data which i select by checking the check boxes and carry on to next screen where I have to display them and do some processing on such selected rows of data. Can any one suggest me how to code this. Thanks in advance.

    Hi Subbarao,
    One way is to check if the field is selected by checking if the field value = 'X'.
    If it is a table control we will have to loop and find out which all records are selected..it is notable that the check box field will mostly be of single character and contain 'X' if it is checked and space if not checked
    Based on the structure where the check box is held we may have to implement various logic to retrieve whether the field is checked or not....for instance we can move data to another internal table for which the checkbox is checked and can retrieve it from the next screen
    Pls check,revert and reward if helpful
    Regards
    Byju

  • Need help in LiveCycle Forms - Highlighting required fields when the check box is checked / Un-highlighting the fields if I un-check the check box...

    Hello All!
    I am relatively new to creating forms within LiveCycle but I have learned quickly so bare with me on my question.
    I have figured out how to highlight a field when a check box is clicked on, however, I cannot get it to remove the highlight when the check box is unchecked?
    This is what I used for the highlight:
    Subform1.fieldname.fillColor="255,255,0"
    Can anyone provide any insight or suggestions on how I might fix this script issue?
    Thanks in advance!
    -Lisa

    Hi,
    Script migth be something like this. Put it on Change event of the check box
    if (this.rawValue == 1) { Subform1.fieldname.fillColor="255,255,0"
    xfa.layout.relayout();
    else 
    { Subform1.fieldname.fillColor="255,0,0"
    xfa.layout.relayout();
    BR,
    Paul Butenko

  • How to change the check box with the push button in itrator table rows

    Hi all,
    I want to change the check box of the itrator table rows with push button/ some thing better as to give
    the table view more good look and user friendly.
    Does any one has tried any other option in table view in place of check box
    Thanks
    Bhagat

    There are various objects which you can create via iterators. Please see the application SBSPEXT_TABLE for more details.
    DATA: lo_text      TYPE REF TO cl_htmlb_textview,
            lo_ddlb      TYPE REF TO cl_htmlb_dropdownlistbox,
            lo_input     TYPE REF TO cl_htmlb_inputfield,
            lo_button    TYPE REF TO cl_htmlb_button,
            lo_chk_bx    TYPE REF TO cl_htmlb_checkbox.
      row_ref = p_row_data_ref.
      CASE p_column_key.
        WHEN 'EFF_DATE'. " Input field
          CREATE OBJECT lo_input.
          lo_input->id       = p_cell_id.
          lo_input->type     = 'DATE'.
          lo_input->showhelp = 'TRUE'.
          lo_input->width    = '60'.
          lo_input->invalid  = 'true'.
          p_class            = `ao`.
          lo_input->value     = get_column_value( p_column_key ).
          p_replacement_bee = lo_input.
        WHEN   'NEW_LOC'. " Drop down list box
          CREATE OBJECT lo_ddlb.
          GET REFERENCE OF gt_persa INTO lo_ddlb->table.
          lo_ddlb->id                =  p_cell_id.
          lo_ddlb->nameofkeycolumn   = 'NAME'.
          lo_ddlb->nameofvaluecolumn = 'VALUE'.
          lo_ddlb->selection         = get_column_value( p_column_key ).
          lo_ddlb->selection  = 'DUMMY'.
          p_replacement_bee          = lo_ddlb.
        WHEN 'MON' . " Check box
          CREATE OBJECT lo_chk_bx.
          lo_chk_bx->id = p_cell_id.
          lo_chk_bx->checked =  get_column_value( p_column_key ).
          p_replacement_bee  = lo_chk_bx.
        WHEN 'NEW_MGR_SRCH'. " Button
          CREATE OBJECT lo_button.
          lo_button->id            = p_cell_id.
          lo_button->text          = 'Search Mgr'.
          lo_button->onclientclick = 'script'.
          p_replacement_bee = lo_button.
        WHEN OTHERS. " Text
          CREATE OBJECT lo_text.
          lo_text->id       = p_cell_id.
          lo_text->wrapping = 'FALSE'.
          lo_text->text     = get_column_value( p_column_key ).
          lo_text->design   =  'STANDARD'.
          lo_text->textcolor = 'POSITIVE'.
          p_replacement_bee = lo_text.
      ENDCASE.
    Thanks
    A

  • Hi, I'm having issues with my airdrop. I have looked in my finder perfrences and didn't see the check box for airdrop. I have a macbook air running on 10.9.4 Mavericks. Does anyone know how to get my airdrop back? Thanks.

    Hi, I'm having issues with my airdrop. I have looked in my finder perfrences and didn't see the check box for airdrop. I have a macbook air running on 10.9.4 Mavericks. Does anyone know how to get my airdrop back? Thanks.

    Mac Basics: AirDrop lets you send files from your Mac to nearby Macs and iOS devices - Apple Support

  • Firefox security settings will not save any of my passwords even when i click on the check box for saving passwords. please help.

    When a pop-up comes up on the screen it will ask to save my password or not, well, I click on save password but it doesnt save any passwords even when I have the check box checked for remembering my passwords for certain sites it will not save any type of passwords at all. What am I doing wrong? I am using linux-mac OS user.

    Simply because I don't think about using this option that takes more time to close... I always close ALL my windows with the X.
    Firefox doesn't hang at exit also...
    Using Firefox / Exit doesn't always save the bookmarks also... let's say there is 80% chances it will but not always... I noticed the first time I open firefox after booting the computer... Bookmarks won't be saved... But if I close firefox and re-open it, then it might save it... 50% guess...
    I tried the safe mode, but since its closing firefox and re-open it... new saved bookmarks sometimes work, sometimes don't... it's pretty unstable...
    Hopefully there is a solution to this problem in a near update, annoying... else I will simply reverse to firefox 3.6.16

  • Urgent Help Required for Check Box in Table Column

    Hi all,
    Could any body help me to solve my problem?
    First of all I have created a table whose one column is check box. The column of the tables are Name,Phone,ID,Address and a checkBox columns.In one view
    the table will be found with data. I want to click on some of the rows(suppose there are 5 rows, but based on some condition I have selected the check box of 3 rows).
    Next there will be a button(Supose SEND Button).
    After selecting the check box I want to press that button and then a new window will come which will show two tables. one for  selected rows(with the same columns name except check box) and another for Unchecked rows with the same column name(Name,Phone,ID,Address).
    Could any body help me by sending the details and code?
    Thanks and Regards.
    Sudip

    Hi Sudip,
    1) create custom controller and appropriate context structure there (dataNode(Name,Phone,ID,Address,Check))
    2) create view StartView. Map data node from custom controller to node in view. Create table and bind context node attributes to appropriate table columns.
    3) create view ResultView. Map data node from custom controller to node in view. Create 2 nodes (CheckedData, UncheckedData) with supply methods. Create filtering implementation in supply methods (add checked and unchecked node elements to appropriate nodes).
    4) create new window with resultView as default view
    4) in startView in button action handler put something like
         IWDWindowInfo _windowInfo = wdComponentAPI.getComponentInfo().findInWindows("Popup");
         IWDWindowManager manager = wdComponentAPI.getWindowManager();
         IWDWindow _window = manager.createWindow(_windowInfo, true);
         _window.open();        
    So, just tried localy and it works.
    Best regards, Maksim Rashchynski.

  • By clicking on  a button all the check boxes i have should be checked

    Hi all,
    Im having a button 'SELECT ALL', by clicking on that all the check boxes i have in my view should be checked.
    Help me out with procedure and the sample code.
    Thanks & Regards,
    Suresh

    Hi Sureshkumar,
    1. Create a value attribute named <b>select</b> of type boolean.
    2. Bind the <b>checked property</b> of all the checkboxes to this attribute.
    3. Create an action called <b>click</b> and bind it to <b>OnAction</b> event of the button(whose click will check all the checkboxes) and write this code in that action.
    <b>wdContext.currentContextElement().setSelect(true);</b>
    Warm Regards,
    Murtuza

  • Check box - text at the bottom of the check box

    Hi Apex folks,
    I came across a different requirement where as i need to place the check box text in break line at the bottom of the check box. Say I have a check box item X . which having following items
    STATIC:
    A - I am good;1
    B - I am ok ;2
    C- I am bad;3
    D- I am confused;4
    I have to display the text in the bottom of the check box and the text like "A" at the first line and " I am good" at the second line . Is there any possibility to achieve that.
    Thanks
    Karthik

    Karthik C wrote:
    I came across a different requirement where as i need to place the check box text in break line at the bottom of the check box. Say I have a check box item X . which having following items
    STATIC:
    A - I am good;1
    B - I am ok ;2
    C- I am bad;3
    D- I am confused;4
    I have to display the text in the bottom of the check box and the text like "A" at the first line and " I am good" at the second line . Is there any possibility to achieve that.I have to pick option D...
    Do you mean like this?
    [ ]        [ ]       [ ]        [X]
    A          B         C          D
    I am good  I am OK   I am bad   I am confusedIf so, why? If not, show us the required layout.
    Help us to help you. When you have a problem you should provide as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.

  • How to get the  Checked box which are clicked

    for(int k=0;.....
    jsp code
    <input type=checkbox name=checkbox value='<%=k%>' >
    how to get the particular Checkbox which are checked???

    String[] checkedValues = request.getParameterValues("checkbox");You'll get an array filled with the values only for the checked boxes. In other words, if no boxes are checked, checkedValues will be null or checkedValues.length == 0, not sure, going from memory.
    Hope this helps!
    Patrick

  • How to limit OK with a check box

    I am new to JavaScript.  I have search the web.  I have been working on this box for 3 days.  I have slapped various code from example to get it this far but I cant seem to accomplish my needed last step. 
    I need the Check box to also limit the OK button.  AKA "Confirm"  Whether I need a second alert or some other step I am unsure but basically if they don't check the box the only option I want available to them is the cancel button.  Please Help.  Also if you see anything that suggest a novice mistake please point it out.
    var meth0d = {
            initialize: function(dialog) {    // Set a default value for radio button field
                dialog.load({"rd01": true });
                this.hasPick = false;    // Disable radio button field
                dialog.enable({   
                    "rd01" : this.hasPick,
                    "rd02" : this.hasPick,
                    "rd03" : this.hasPick });
            commit:function (dialog) { // called when OK pressed
                    var results = dialog.store();
                        if (results["rd01"]) meth0d = "Rolled";
                    else if (results["rd02"]) meth0d = "Points";
                    else if (results["rd03"]) meth0d = "Manual";
            ckbx: function (dialog) {  // Process the checkbox, Verify method
                this.hasPick = !this.hasPick;
                dialog.enable({
                    "rd01" : this.hasPick,
                    "rd02" : this.hasPick,
                    "rd03" : this.hasPick });
            description:
                name: "Ability Stat Method",
                elements:
                        type: "view",
                        align_children: "align_left",
                        elements:
                                type: "static_text",
                                name: "This form has three methods of determining Ability Stat Rolls. \n\n Roll = A computer generated random roll in accordance with the PHB. \n Points = A non-random method that provides balance between players.\n Manual = Allows you to type in any number between 3 to 18  \n\n Note: The Roll Method tracks how many times the form has been opened or\n reset each day and how many reroll attempts the player has made.", 
                                bold: true,
                                font: "dialog",
                                char_width: 30,
                                height: 140
                                type: "check_box",
                                item_id: "ckbx",
                                name: "I understand."
                                type: "view",
                                align_children: "align_row",
                                elements:
                                        type: "static_text",
                                        name: "Methods: "
                                        type: "radio",
                                        item_id: "rd01",
                                        group_id: "rado",
                                        name: "Rolled"
                                        type: "radio",
                                        item_id: "rd02",
                                        group_id: "rado",
                                        name: "Points",
                                        type: "radio",
                                        item_id: "rd03",
                                        group_id: "rado",
                                        name: "Manual",
                        type: "gap",    //Add a small vertical gap between
                        height: 10      //..radio fields and buttons
                        type: "static_text",
                        name: "Note: Once you click confirm you will have to reset the form to access this menu again.", 
                        bold: false,
                        font: "dialog",
                        char_width: 30,
                        height: 20
                        type: "ok_cancel",
                        ok_name: "Confirm",
                        cancel_name: "Cancel",
    var retn = app.execDialog(meth0d);

    You need to use the validate function of the Dialog object. It returns a boolean (true/false) that specifies whether the dialog needs to be closed or not (the user can still cancel out of the dialog, of course). So in your case it will be something like this:
    validate: function (dialog) {
        var results = dialog.store();
        if (!results["ckbx"]) {
            app.alert("You must tick the \"I Understand\" box.");
            return false;
        return true;

Maybe you are looking for

  • No boot info on ASA 5505

    Hi all, I received a firewall ASA 5505 and I have a problem with it. It always boot on rommon. When I do show boot I get those informations: ciscoasa# show boot BOOT variable = Current BOOT variable = CONFIG_FILE variable = Current CONFIG_FILE variab

  • Very slow Mac, compared to when running a fresh install

    I was wondering if anyone could help me diagnose the reason for my mac being so slow. (Eg 1.5-3 minute boot up as opposed to 15-20 seconds) And why it takes a long time to load a lot of things. I have restored this from a time machine partition, so I

  • GL Account Balance Difference

    Hi All, We recieve GL Account Balances from some other system (different SAP landscape) and the balances in the file are compared to the GL Account Balances in our system. For this purpose, we are using a standard BAPI :->BAPI_GL_GETGLACCCURRENTBALAN

  • Error while importing .tpz file into ESR..

    Hi Gurus, I am facing one problem. I developed one interface in XI3.0 development server. I  imported the integration directory object into quality but when importing the ESR part it got imported successfully,.But was not visible in list.when I went

  • How to open Aptus II 5 files using Photoshop or lightroom?

    My version of Photoshop and Lightroom (most recently downloaded from Creative Cloud) does not open the Aptus II 5 files although the camera is listed as being supported.  What am I doing incorrectly?  It will not read the .mos files.   Appreciate you