Uncheck a Checkbox when Select List Clicked

version 4.0.2.00.06
Hello,
Jari helped me with a javascript function to select all options in a multi-select list when a checkbox is checked by the user.
A bug was reported that after clicking the checkbox to select all the options in the list, if the user then clicks on a single value in the select list the checkbox is still checked.
Would someone help me with how to uncheck the checkbox when a single value is selected in the select list after the checkbox is checked to select all of the options in the select list?
If you need more information please let me know.
Thanks,
Joe

Hi,
Same sample as in this post
Re: The requested URL /apex/wwv_flow.accept was not found on this server
I did add page JavaScript
function checkSelected(pThis,pChk,pVal){
var self=$($x(pThis));
var o=self.find("option");
var s=self.find("option:selected");
if(s.length==o.length){
  $s(pChk,pVal);
}else{
  $s(pChk,"");
}And to P65_EMP multiu select HTML Form Element Attributes
onchange="checkSelected(this,'P67_SELECT_ALL','ALL')"Regards,
Jari

Similar Messages

  • Update fails when select list value isn't changed

    Hi Folks,
    I am using htmldb_item to create a report form that is updateable. There is a checkbox in the first column and I am using a technique discussed in the forum to make sure I am getting the values from the checked rows in order to perform the updates.
    However, I have noticed that if I do not change the selection in the select list, and check the "update row" checkbox, I get a "ORA-01722: invalid number" error.
    I'll provide both the select and update statements and would appreciate it if someone could help me discern a solution.
    == SELECT STATEMENT ==
    select
    htmldb_item.checkbox(1,rownum),
    htmldb_item.hidden (2, p.id) ||
    htmldb_item.text(3,p.project_name, 40) as project_name,
    htmldb_item.select_list(4, p.gts_dependant, 'Y;Y,N;N', null, 'NO')as GTS_Dependant,
    htmldb_item.select_list(5, p.gxp_relevant, 'Y;Y,N;N', null, 'NO') as GxP_Relevant,
    htmldb_item.select_list_from_lov(6, u.user_first_name||' '||u.user_last_name,
    'PROJECT_MANAGERS', NULL, 'NO') as project_manager
    from
    eprs_project p, eprs_project_monthly pm, eprs_user u
    where
    p.id = pm.project_id and
    pm.project_manager = u.id and
    to_char(record_date, 'MON YYYY') = to_char(sysdate, 'MON YYYY') and
    p.program_id = :P8_SELECT_PROGRAM== SUBMIT STATEMENT ==
    for i in 1..HTMLDB_APPLICATION.G_F01.COUNT
    loop
    update eprs_project set
    project_name = HTMLDB_APPLICATION.G_F03(HTMLDB_APPLICATION.G_F01(i)),
    gts_dependant = HTMLDB_APPLICATION.G_F04(HTMLDB_APPLICATION.G_F01(i)),
    gxp_relevant = HTMLDB_APPLICATION.G_F05(HTMLDB_APPLICATION.G_F01(i))
    where id = HTMLDB_APPLICATION.G_F02(HTMLDB_APPLICATION.G_F01(i));
    update eprs_project_monthly set
    project_manager = HTMLDB_APPLICATION.G_F06(HTMLDB_APPLICATION.G_F01(i))
    where project_id = HTMLDB_APPLICATION.G_F02(HTMLDB_APPLICATION.G_F01(i)) and
    to_char(record_date, 'MON YYYY') = to_char(SYSDATE, 'MON YYYY');
    end loop;
    Analysis
    I've narrowed the behavior down to the Select List. The "u.user_first_name||' '||u.user_last_name" assembles the first name and last name from the user table, but must not have a value associated with it, as the rest of the names do (because they come from the application LOV "PROJECT_MANAGERS." Therefore, when the user checks the "Update Row" checkbox (rownum), there is no value associated with the selection. This would explain the invalid number error message.
    If this is correct, then I am not understanding the SELECT_LIST_FROM_LOV function sufficiently. The documentation says about the p_value parameter: "This value should be a value in the p_list_values parameter." This is a small cut and paste typo because there is no p_list_values parameter, but rather a p_lov parameter. Anyway, the p_value is the default displayed value, which ideally would be one of the items from the p_lov list. It is, but not really. By that I mean, the current value is a valid name but isn't from the application LOV, per se. Therefore, I had proceeded merrily on my way believing I had fulfilled the API requirements because I had provided a "current value" and an application LOV.
    The example in the user guide provides only a column name for the p_value parameter, so I don't understand how I would associate a value with the display item (from the p_value parameter) to prevent the error message from being generated. Is there a best practice for this?
    Any guidance would be most gratefully appreciated.
    Yours,
    Petie

    Hi. I've tried a few things to get a value into the p_value parameter.
    Attempt 1:
    u.user_first_name||' '||u.user_last_name;u.idAttempt 2:
    'u.user_first_name||'' ''||u.user_last_name;u.id'Unfortunately, neither of these was successful. The first one wasn't valid syntax and the second was reproduced as a string literal.
    Have I stumped everyone? Or am I just missing something really obvious? Any thoughts? Any workarounds? Should I create an intermediate view with the first and last names already concatanated? That wouldn't put the ID into the p_value parameter. The examples in the Users Guide don't address the value part of the "Display/Value" pairing in the Select List. They provide either a static display or a single column.
    Right now, I have to put something like the following into the users manual:
    "When updating core project data, you must re-select the first occurance of the project managers name from the select list. If you do not re-select the project manager name, you will receive an error when you Submit the data for update."
    IMHO, this is pretty lame. Don't you agree?
    Thanks for reading and any thought you can offer.
    Petie

  • OAF-Checkbox when selected should update column in a table

    Hello,
    I have a requirement to add checkbox to MES Operator page and it should perform the following,
    1) When MES Operator page is opened, it should read attribute1(Y/N) from table and accordingly check/uncheck checkbox.
    2) When checkbox is checked/unchecked in the page, it should write Y/N to attribute1 column of a table.
    I was able to successfully add the checkbox and perform the first requirement by extending the View Object.
    Can someone please tell me how to proceed with the second requirement?
    Thanks in advance.

    Hi ,
    Pls go through this thread this will definitely help you.
    How to get current row value from table when press the submit button
    The problem is that PPR is added through the code which is not considered as table event .
    Need to go with a tricky way ,
    1.) create a new seperate table region using Jdeveloper and it shud be replica of standrad once except the new ppr event addition to the check box.
    2.) Hide the existing table region and create a new stacklayoutbean.
    3.) this stacklayout bean will have the extend property ,there you give the complete path of new custom advanced table region.
    Now you should be able to get the row refernce on the click of check box button.

  • How add title to checkbox when select multiselect in htmlb table

    I am doing htmlb using Java and can't seem to be able to add a title to the checkbox on my table.
    I see how to get the columns in java by using the following code
    TableColumn columnA = model.getColumnAt(2);
    But I can't seem to access the column that htmlb creates for the checkbox to add a title.  I was hoping to add Delete above the box so when they selected it, boom deletes
    Does anyone know how to do this?
    I award points for good answers
    Cheers,
    Devlin

    I am doing htmlb using Java and can't seem to be able to add a title to the checkbox on my table.
    I see how to get the columns in java by using the following code
    TableColumn columnA = model.getColumnAt(2);
    But I can't seem to access the column that htmlb creates for the checkbox to add a title.  I was hoping to add Delete above the box so when they selected it, boom deletes
    Does anyone know how to do this?
    I award points for good answers
    Cheers,
    Devlin

  • Use spacebar to check/uncheck a checkbox in a datagrid.

    I have a DataGrid that has checkbox in the first column. The user wants to be able to check/uncheck the checkbox when he selects a row, by mouse or up and down keys, and hits the spacebar. Currently the spacebar functions if the last thing that the use has clicked on is the Checkbox. If the user clicks in the cell where the checkbox in located(not the checkbox itself), the spacebar won't do anything.
    <mx:TabNavigator>
         <mx:VBox>
              <ms:datagrid id="lgGrid" dataProvider="{this.lData}">
                   <mx:columns>
                        <mx:Array>
                             <mx:DataGridColumn dataField="vis" id="dfID" sortable="false">
                                  <mx:itemRenderer>
                                       <mx:Component>
                                            <mx:CheckBox click="data.vis = !data.vis"  paddingLeft="4"/>
                                       </mx:Component>
                                  </mx:itemRenderer>
                              </mx:DataGridColumn>
                              <mx:DataGridColumn dataField="name"/>
                        </mx:Array>
                   </mx:columns>
              </ms:datagrid
       </mx:VBox>
    </mx:TabNavigator>

    Your TableModel has to indicate that the column is editable. Your TableModel also has to implement setValueAt() so that when the user changes the value, it updates the data.
    The table will know to use it's own boolean renderer/editor for that column because it knows what to do when a column returns a Boolean.

  • How-To populate SELECT LIST default value from SQL Query

    OK, I've done my homework, and did not find my answer in the Forum, so here it is.
    I have a Page that displays fields from a SQL Query. The Page also has below that radiogroups, checkboxes, and Select Lists to allow the user to change values in the fields that are displayed at the top of the Region. I am able to pre-populate the radiogroups and checkboxes by performing a SELECT in the 'Source value or expression' of the Source area of the Page Item.
    However, I am unable to do the same for the Select List fields. Their default value ends up being the first value in the LOV ('-- None --' for NULL values). Source Used: Only when current value in session state is null. Source Type: SQL Query. Also, when I first go into the Page when running it, and check the Session State values, they are all null, so I don't understand why the field is not populated by the SQL Query statement as the radiogroups and checkboxes are.
    Any suggestions??? I've tried all sorts of combinations.

    Thank you for the suggestion.
    I had considered that, but cannot do so, because we are using Oracle Application Express more for development than for data containment.
    We have all our data in an Oracle 10.g DB which is separate from the OAEX server, and the OAEX app will reference that data via VIEWs and DB LINKs. We are doing so primarily as an added data security layer, where the data is housed separate from the app, in case the Web site is ever compromised. The data that can be viewed is restricted to a subset of the actual data that is available.
    Since the data is on a separate server, (I assume) we will not be able to set the source type to Database column, because (I asume) that is dependent upon the data being housed by the OAEX server.
    That still leaves me with having to populate the field with a SELECT statement from the Oracle DB. This unfortuneately is almost a show-stopper for me because of down-stream processing data requirements. Have not been able to come up with contingencies yet.

  • Pass Select list value to URL as a parameter

    I am trying to pass the selected value from a select list via a button to a URL.
    &P_VALUE=&P_VALUE.
    P_VALUE is set to USER SESSION.
    It shows as prevous session value. If I show the the session value is not set to the selected value.
    If I call a PDF report via a button, it displays the correct value and the session values is correct.
    If I select the button for the URL again, is shows the previous value.
    When I go back to the form and call select the button again, the correct parameter is passed to the URL.
    Any Ideas?
    Thanks,
    Jerry

    If you use substitution at the time, the button gets generated, you don't have the new value - the button is generated with the rest of the page, and then later the user changes value of the select list. You have two choices:
    1)Use Select list with submit - and transfer the user to second page using branch (which get's calculated after submit when select list has already the new value)
    2)Use Javascript to catch the onChange/onClick event of SelectList, read the current value and do the redirect from JavaScript.

  • How to implement casading select lists  in ADF?

    I have three select list, when select list 1 is changed appropriate value needs to populated in select list 2 and similarly when select list 2 changed, select list 3 should be populated. I'm a newbie to ADF, any ideas are appreciated. Also, really appreciate if someone can point some sample application which illustrates some of these features.
    Regards,
    Surya

    This will help http://tinyurl.com/26b735s

  • Select list and redisplay

    I have a select list on Page 0 (so it shows on all my pages). When the users makes a selection from the list, I want to re-display the current page, passing the selected value (used in my fetch condition). I see there are several options for select list (with branch, re-direct etc.). What is the best way to do this when select list is on page 0?

    You can select ( select list with branch to a URL) .. and then specify the URL . use some hidden item to save page id on each page you want to have that list on, so that in list URL you can use that item to build the URL for that page depending on the item's value ( page id )
    Thanks,
    Sam K

  • Select List with Redirect clears unrelated fields

    The Select List with Redirect seems to clobber any fields that were passed in from the calling form.
    In particular, I have a form where I'm trying to populate an intersection table. The first FK column is passed, and shows up when the form first appears, but as soon the select list is selected from, it disappears. The select list with redirect is needed to provide a filter for the select list to populate the second FK column.
    How do I preserve the value passed to this form so it's still there when the create button is pressed?
    Thanks

    Try to give condition to your process...
    In select list ... give some name to request....
    and then in your process enter :REQUEST <> 'SELECT' in this case when select list is submitted then that process will not be fired

  • How can I have multiple-selection list box "select at least one checkbox" option active only when the section it's in is visible?

    Hi, I'm using SP13 and InfoPath2013.
    I created a custom form and published it to SP13 document library.  This form has many MSLB.  Depending on the checkboxes selected in the 1st MSLB, the other MSLB will either hide or show.  Each MSLB is in its own section.  The requirement
    is to have each MSLB to have at least one checkbox selected.  Well, the problem is that when that MSLB isnot checked in the 1st MSLB it is not visible and shouldn't require any checkbox to be selected.  However, the form can't get submitted instead
    an error dialog would pop up and ask user to make a selection for MSLB that is not even displayed.  Is there any way to fix this besides unchecking all MSLB to be not required at least one selection?  Thank you.

    Eric, 
    I follow your reply post here and still doesn't work.  I also noticed your screen shot of selecting a field is not the same as what I see in InfoPath 2013.  
    Here is what I did, 
    1.Check At least one selection required for
    these Multiple-selection List Boxes
    as you want .
    2.Create a Formatting  rule for the 2nd
    Multiple-selection List Box.
    3.Add a  Condition as below:
    4.  I get a validation error if I don't
    select at least one checkbox in the hidden MSLB control when submitting.
    I think I'm following all the steps correctly
    but please let me know if I'm not.

  • InfoPath 2010 - Multiple Selection List Box - Rule Does Not Run When Unchecking Value

    I have a multiple selection list box on a form. I have a rule that sets the value of another field. There is not condition. Just any time item is checked or unchecked the value of the other field should
    change. This works when checking an item in the list box but not when unchecking the item in the list box. My question is - do rules not fire for a multiple selection list box when unchecking an item?

    Hi,
    I have tested in my lab environment, the rules seemed only fire for the latest checking action, and it did not fire when uncheck multiple-selection list box. Here is a workaround for your reference:
    http://www.infopathdev.com/forums/p/17850/62269.aspx
    However, I’d recommend you use check box instead, since it is much easier to set rule according to value of it. We can set it as true when we check the box, and set it as false when we uncheck it as below:
    Then it is simple and clear to make rule according to the value of check box.
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety,
    or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Reveal pages when checkbox is selected?

    Hi,
    I'm used to Acrobat Pro but new to LiveCycle. I need to hide several pages on a form until a user activates a checkbox. ie/  user clicks on "[x] category one" and the page that contains category one content appears. If the user deselects the checkbox, the page is hidden. ie/ user clears [ ] category one and the page with the content disappears from the user's screen.
    \i think it's called 'reveal page' but am not sure. Can someone point me in the right direction, please?
    Thanks!

    Well since I answered my own question, I thought I'd put the answer here just in case someone else can use it.
    First, some griping about LiveCycle: (you have to put up with this because this product is horrible and I had to pay a fortune to use it...)
    In this day and age, why pc only? I needed only this one tiny but crucial function but was forced to borrow a pc and then purchase pc-only software ($300+) that I will doubtless use again. All of this should have been doable in Acrobat Pro with some scripting. (If your Google skills are better than mine and you find an answer, then please share it here and save others the pain and expense...)
    Why is there a complete disregard for any sense of accepted, standard shortcuts - keyboard, mouse dragging and other placement methods? Where is the ability to drag guides out from rulers? Why can I not hold shift while CTRL+dragging a form object to keep things lined up? BTW, ALT is how this copy-dragging should be done - not CTRL. Where are the smart-guides? Why, when I target an object in the Actions Builder do I have to manually scroll or tediously collapse each page in the tree menu to get to the items further down the list? What a waste of my precious and now non-profitable time on this project.
    I spent hours creating beautiful client-approved documents in InDesign only to discover that LiveCycle cannot import my work in a way that preserves my layout, causing me to have to rebuild all of my form elements. We're talking here about 9 documents, and almost 150 pages of pain-staking layout that had to be redone. And don't tell me that I should have used LiveCycle to begin with. This should have been much more seamless than it was.
    Seriously, this product is expensive, non-inclusive, non-standard, non-compliant, and resembles using Windows 95 in ways that no sane person should have to put up with, yet alone pay for and put up with in 2014. Yes, Adobe High Priests, I'm talking in vain to you, knowing that this will fall upon indifferent, deaf ears.
    OK - so here's the answer to my question. In a nutshell, the steps to hide/reveal pages based on the user checking or unchecking a box are:
    Create the checkbox by dragging "Checkbox" from the Object Library. Enter the question text and ensure that the Data Binding Name is unique for each instance. Let's say that all the check box items are on page 2 of the document. When the user selects the first checkbox, page three is revealed. So, for that check box, name it something like "CheckBox_Page3". The others would be called "CheckBox_Page4", "CheckBox_Page5", and so on.
    Select the first check box (Let's stick with CheckBox_Page3 as our example.) and then right-click it, choosing Actions=>Add Action (or Edit Action if an action already exists). The Action Builder dialogue opens.
    I'll need two actions for each check box. One that says, "If this box is unselected, then the page is hidden," and another that says, "If this box is selected, then the page is visible." Set the Condition to: "When check box CheckBox_Page3 is unselected" and the Result to: Show or Hide An Object [HIDDEN]. Then, scroll through and select Page 3 in the left hand column.
    Set the second action so that the Condition is: "When the check box CheckBox_Page3 is selected" and the Result to: "Show or Hide An Object [VISIBLE]. Then, scroll through again to select Page 3.
    Go through all of your check boxes until all the pages are set up with an unchecked/hidden and checked/visible configuration.
    The last thing to do is to select all of the pages that will be hidden/revealed in the left column. When that list is selected, visit the SubForm tab; Presence section and choose from the pick-list: "Hidden (exclude from layout)." Now the document will open with the appropriate pages hidden from view until a user selects the corresponding check box.
    Save OFTEN. Test thoroughly and on multiple platforms. Good luck.
    -Pete

  • Using checkboxes to select items in a Spark DataGroup/List?

    I have a DataGroup from Catalyst, laid out like a tile list:
    I'd like to do something a bit different, in that I'd like to allow people to multi-select items in the list using those checkboxes instead of the usual command/control-click.
    The checkbox, label and image are in the itemRenderer.  Is there an easy way that I can have that checkbox toggle the selected state of its list item?

    Hi,
    Using the checkbox as a selection is easy enough as all you have to do is add a change event to the checkbox in the renderer and then in the event
    selected=mycheckbox.selected;
    The fun is how to handle the list click event from the checkbox you can stop propagation but if the item is clicked it will reset the selected indices.
    There is a few ways to handle this
    when processing the list don't use the selected indices just use the checkbox value to determine whats selected
    disable the listbox click event so items have to be selected with the checkbox
    or the most complex lots of overriding so that click acts like a ctrl/click and the checkbox/itemclick can toggle each other.
    David

  • Modifying table by selecting checkboxes  in basic list

    Hi
    I have a basic list whose first two fields are checkboxes.
    I have to select only one checkbox from first list and can have multiple selections in second checkbox.
    In a row only one checkbox can be selected.
    Based on these selections i have to update a table with the other entries of my basic list.
    how do i do it???

    Hi1
    In the transaction cj20n I had been asked to create a checkbox for multi well option which I have created. At the project level as well as the WBS level they want this checkbox which I have created. Now it is required that when chech box is checked, it should validate the remote sump field and populate it with valid location based on the DLS or NTS selection as radiobutton.
    If the checkbox is unchecked, it shld validate the surface location field and populate it,If DLS or NTS selected , it validates the surface loaction  with valid surface location based on DLS or NTS selection.
    The coding for the screens are as follows , but I am not sure if it is correct as it dosent give the desired result.Kindly help me out a sits an urgent work given and help will be hihgly appreciated and rewarded.
    As per the current functionality , if DLS or NTS selected and well ID populated, validate that the well ID adheres to the appropriate formatting.
    This is for screen 600 similary I have done for screen 700 but I am not able to validate still  or get teh result. zzmulti_well is the field for new checkbox option created (multi well).
    MODULE check_0600_zsurflocn INPUT.
    IF proj-zzmulti_well IS  INITIAL.
      IF proj-zzsurflocn IS NOT INITIAL.
        CASE 'X'.
          WHEN proj-zzdls.
            lv_result =  zcl_well=>check_dls_sr( location_id = proj-zzsurflocn ).
            IF lv_result IS INITIAL.
              MESSAGE e003(zwell). " Not a valid DLS surface location
            ENDIF.
          WHEN proj-zznts.
            lv_result =  zcl_well=>check_nts_sr( location_id = proj-zzsurflocn ).
            IF lv_result IS INITIAL.
              MESSAGE e004(zwell). " Not a valid NTS surface location
            ENDIF.
        ENDCASE.
      ENDIF.
    ENDIF.
    ENDMODULE.                 " check_0600_zsurflocn  INPUT
    *&      Module  check_0600_zremsump  INPUT
    Remote sump validation.
    MODULE check_0600_zremsump INPUT.
    IF proj-zzmulti_well IS NOT INITIAL.
      IF proj-zzremsump IS NOT INITIAL.
        CASE 'X'.
          WHEN proj-zzdls.
            lv_result =  zcl_well=>check_dls_sr( location_id = proj-zzremsump ).
            IF lv_result IS INITIAL.
              MESSAGE e005(zwell).  " Not a valid DLS remote sump
            ENDIF.
          WHEN proj-zznts.
            lv_result =  zcl_well=>check_nts_sr( location_id = proj-zzremsump ).
            IF lv_result IS INITIAL.
              MESSAGE e006(zwell).  " Not a valid NTS remote sump
            ENDIF.
        ENDCASE.
      ENDIF.
    ENDIF.
    ENDMODULE.                 " check_0600_zremsump  INPUT
    Kindly help pleaseeee.
    Aarav

Maybe you are looking for

  • JDOM and schemas

    Can someone explain to me how to validate a XML document against a schema using JDOM please ? Thank's a lot

  • N97 Very Unusual Problem.

    I have recently upgraded my N 97 to Firmware version .12 and am desperately waiting for v20. However there is a problem.. if someone already found a solution throw some light on this. Whenever i connect my phone via the ovi suit (PC suit) to the comp

  • Summer fun !   aka - "what about MY memory files ? "

    The grey cells are getting fogged....but its time for a beer and some summer fun ! Went to a nearby park yesterday to check out what the county has to offer ( been in my apt for a year and still didn't know about this park a neighbor told me about ).

  • Import of Raw defect after Update to 3.4.1

    After Update to 3.4.1 the import function has an Error: When i do an import of Only RAW (.cr2) in the requester are shown some jpg´s after the first import. The sttings are the same.. normally him shows no more files because they are already in the l

  • Dropzone Causes Crash

    Everytime I try to put a still image in a dropzone, the entire program crashes. This doesn't happen when I import other media, such as movies and audio. The stills are just in iPhoto and I haven't modified them in any way. Any ideas?