Multiple checkbox are to be checked when selecting one checkbox in formlayo

Hi,
I created the checkbox in apex 4.0, as LOV(list of value), I want to select multiple checkbox at a time ,when by selecting one checkbox among them.......

Hey,
try using APEX_ITEM.CHECKBOX.

Similar Messages

  • CCMSPING: Logon check error - Select one of the installed languages

    Hi All,
    For one SAP system I have logon check error (MTE: <SID>\Availability\<host>_<SID>I_<Instnr>\Logon-Check: RFC Error Message):
    Select one of the installed languages
    Could anybody help me resolve it?
    Thanks a lot,
    Alexander

    Could you solve the problem?
    Do you know the solution to this error message (Select one of the installed languages) regarding Logon-Check with CCMSPING?
    Thanks in advance!

  • Hiding field when selecting one subtype

    Hi All,
    I have 2 fields in subtype,if u select one subtype...one field should get hide for that subtype in that screen.
    Thanks in Advance.

    Hi,
    First, assign them grioups while declaring.
    PARAMETERS t_tip(10). "transaction tip
    PARAMETERS: pa1 TYPE dmbtr modifid 'pa', 
    pa2 TYPE dmbtr modifid 'pb',
    And then,
    AT SELECTION-SCREEN OUTPUT.
    loop at screen.
    if screen-group1 = 'pa'.
    screen-active = '0'.
    modify screen.
    endif.
    endloop.
    Thanks,
    Paras

  • When selecting one cell, multiple cells highlight

    When I am working with Excel 2010, I try to select a single cell however multiple cells get highlighted. It will highlight usually the next 5-6 cells in the same row. It occurs randomly on random cells, but happens about 25% of the time. If I click the
    cell and it does its highlighting thing, I usually have to click away in another cell and then re-click the first one to get it to go away. Also, if I just try to ignore the highlighted cells and try to work as normal, when I try to tab to the next cell in
    the row, it will only let me tab between the cells in the column that are highlighted. It is not a mouse problem, I am not accidentally selecting multiple cells, and it happens on documents I created as well as documents others have created. It will also happens
    on a new, blank document or others completely stripped of any kind of potentially hidden formatting. I have not tried to re-install Office yet, but that will be next step if no one has a solution. Thanks

    I ran into this problem today working in Excel 2010 at 90% zoom.
    First I tried F8 and Shift+F8 but neither of them worked.
    Next I changed the zoom levels up and down and this worked while I was at a different zoom level than the document was saved in but went back to the same problem when I tried working at 90% zoom again.
    Finally I came across the fix mentioned below from July 2, 2012 that suggested switching from Normal View to Page and then to Print view and back to Normal and this worked!!! Thanks to all for your input below, you saved my Monday morning!
    LIST OF POSSIBLE FIXES:
    1. Try using the F8 and/or Shift+F8 [extend selection] to toggle back and forth.
    2. Change zoom level of your document up or down [this was only a temporary fix for me].
    3. Change page layout between Normal, Page Layout, and Page Break Preview (the 3 boxes at the bottom right hand corner of excel spreadsheet) then back to Normal.

  • Checkbox required but not checked when sending a form

    Hello,
    I created a form with some required fields, included a checkbox.
    When I send the form, the fields are checked if not filled in, but the form is ent even if the checkbox is not "checked" !
    Why ?
    X56

    The required property of check-boxes is not enforced by Acrobat/Reader.
    I explained in a reply earlier today how to make it so that it does get validated, like other fields. See: http://answers.acrobatusers.com/checkboxr-q127778.aspx

  • Multiple Tooltips are not showing up when hovering over overlapping chart items

    Hi!
    I ran into a problem which I am unable to fix. Either I am missing something very obvious or this is a bug. I set up a LineChart with two series. One series has multiple overlapping data points, and both series overlap in one point.
    Data tips are only getting displayed where the data points of the two different series overlap. Hovering over the overlapping points of a single series does not lead to multiple data tips being displayed. According to Flex SDK docs this should be possible.
    Here's a simple example which shows the problem:
    <?xml version = "1.0"?>
    <s:Application xmlns:fx = "http://ns.adobe.com/mxml/2009"
                      xmlns:mx = "library://ns.adobe.com/flex/mx"
                      xmlns:s = "library://ns.adobe.com/flex/spark"
                      xmlns:local = "*">
         <fx:Script>
              <![CDATA[
                   import mx.charts.HitData;
                   import mx.collections.ArrayCollection;
                   import mx.graphics.SolidColorStroke;
                   [Bindable]
                   private var values:ArrayCollection = new ArrayCollection([{date: new Date(2010, 10, 15), value:120},
                        {date: new Date(2010, 11, 15), value: 60},
                        {date: new Date(2011, 0, 15), value: 40},
                        {date: new Date(2011, 0, 30), value: 7},
                        {date: new Date(2011, 1, 15), value: 30},
                        {date: new Date(2011, 1, 18), value: 61},              
                        {date: new Date(2011, 1, 23), value: 80}]);
                   [Bindable]
                   private var values2:ArrayCollection = new ArrayCollection([{date: new Date(2010, 10, 15), value:120},
                        {date: new Date(2010, 11, 15), value: 200},
                        {date: new Date(2011, 0, 15), value: 29},
                        {date: new Date(2011, 0, 15, 13, 59, 99), value: 29},
                        {date: new Date(2011, 0, 15, 13, 58, 99), value: 29},
                        {date: new Date(2011, 0, 15, 13, 57, 99), value: 29.5},
                        {date: new Date(2011, 0, 15), value: 29.5},
                        {date: new Date(2011, 0, 15), value: 30},
                        {date: new Date(2011, 0, 15), value: 30.5},
                        {date: new Date(2011, 0, 15), value: 30.5},
                        {date: new Date(2011, 0, 15), value: 30.5},
                        {date: new Date(2011, 0, 15), value: 30},
                        {date: new Date(2011, 0, 15), value: 30},
                        {date: new Date(2011, 0, 15), value: 30},
                        {date: new Date(2011, 0, 15), value: 31},
                        {date: new Date(2011, 0, 15), value: 31},
                        {date: new Date(2011, 0, 30), value: 70},
                        {date: new Date(2011, 1, 15), value: 2},
                        {date: new Date(2011, 1, 18), value: 180},              
                        {date: new Date(2011, 1, 23), value: 80}]);
                   [Bindable]
                   private var minDate:Date = new Date(2010, 10, 1);
                   [Bindable]
                   private var maxDate:Date = new Date();
                   private function getDataTip(hitData:HitData):String
                        return "<b>Tip:</b><br> Date: " + hitData.item.date + '<br>Value: ' + hitData.item.value;
              ]]>
         </fx:Script>
         <s:layout>
              <s:VerticalLayout/>
         </s:layout>
         <s:width>100%</s:width>
         <s:height>100%</s:height>
         <s:Panel title = "Chart Test">
              <s:width>100%</s:width>
              <s:height>100%</s:height>
              <s:layout>
                   <s:VerticalLayout/>
              </s:layout>
              <mx:PlotChart id = "chart">
                   <mx:width>100%</mx:width>
                   <mx:height>100%</mx:height>
                   <!-- Uncomment this in order to see that there are overlapping items -->
                   <!-- mx:showAllDataTips>true</mx:showAllDataTips-->
                   <mx:selectionMode>multiple</mx:selectionMode>
                   <mx:dataTipMode>multiple</mx:dataTipMode>
                   <mx:showDataTips>true</mx:showDataTips>
                   <mx:dataTipFunction>getDataTip</mx:dataTipFunction>
                   <mx:horizontalAxis>
                        <mx:DateTimeAxis minimum = "{minDate}"
                                             maximum = "{maxDate}"/>
                   </mx:horizontalAxis>
                   <mx:series>
                        <mx:LineSeries dataProvider = "{values}"
                                                      displayName = "Series 1"
                                                      yField = "value"
                                                      xField = "date"
                                                      interpolateValues = "true"
                                                      lineStroke = "{new SolidColorStroke(0x00FF00, 3, 0.5)}"
                                                      stroke = "{new SolidColorStroke(0x00FF00, 3, 0.5)}"
                                                      itemRenderer = "mx.charts.renderers.CircleItemRenderer"/>
                        <mx:LineSeries dataProvider = "{values2}"
                                                      displayName = "Series 2"
                                                      yField = "value"
                                                      xField = "date"
                                                      interpolateValues = "true"
                                                      lineStroke = "{new SolidColorStroke(0xFF0000, 3, 0.5)}"
                                                      stroke = "{new SolidColorStroke(0xFF0000, 3, 0.5)}"
                                                      itemRenderer = "mx.charts.renderers.CircleItemRenderer"/>
                   </mx:series>
              </mx:PlotChart>
         </s:Panel>
    </s:Application>
    Any help is appreciated!
    Thanks!

    Hi!
    I ran into a problem which I am unable to fix. Either I am missing something very obvious or this is a bug. I set up a LineChart with two series. One series has multiple overlapping data points, and both series overlap in one point.
    Data tips are only getting displayed where the data points of the two different series overlap. Hovering over the overlapping points of a single series does not lead to multiple data tips being displayed. According to Flex SDK docs this should be possible.
    Here's a simple example which shows the problem:
    <?xml version = "1.0"?>
    <s:Application xmlns:fx = "http://ns.adobe.com/mxml/2009"
                      xmlns:mx = "library://ns.adobe.com/flex/mx"
                      xmlns:s = "library://ns.adobe.com/flex/spark"
                      xmlns:local = "*">
         <fx:Script>
              <![CDATA[
                   import mx.charts.HitData;
                   import mx.collections.ArrayCollection;
                   import mx.graphics.SolidColorStroke;
                   [Bindable]
                   private var values:ArrayCollection = new ArrayCollection([{date: new Date(2010, 10, 15), value:120},
                        {date: new Date(2010, 11, 15), value: 60},
                        {date: new Date(2011, 0, 15), value: 40},
                        {date: new Date(2011, 0, 30), value: 7},
                        {date: new Date(2011, 1, 15), value: 30},
                        {date: new Date(2011, 1, 18), value: 61},              
                        {date: new Date(2011, 1, 23), value: 80}]);
                   [Bindable]
                   private var values2:ArrayCollection = new ArrayCollection([{date: new Date(2010, 10, 15), value:120},
                        {date: new Date(2010, 11, 15), value: 200},
                        {date: new Date(2011, 0, 15), value: 29},
                        {date: new Date(2011, 0, 15, 13, 59, 99), value: 29},
                        {date: new Date(2011, 0, 15, 13, 58, 99), value: 29},
                        {date: new Date(2011, 0, 15, 13, 57, 99), value: 29.5},
                        {date: new Date(2011, 0, 15), value: 29.5},
                        {date: new Date(2011, 0, 15), value: 30},
                        {date: new Date(2011, 0, 15), value: 30.5},
                        {date: new Date(2011, 0, 15), value: 30.5},
                        {date: new Date(2011, 0, 15), value: 30.5},
                        {date: new Date(2011, 0, 15), value: 30},
                        {date: new Date(2011, 0, 15), value: 30},
                        {date: new Date(2011, 0, 15), value: 30},
                        {date: new Date(2011, 0, 15), value: 31},
                        {date: new Date(2011, 0, 15), value: 31},
                        {date: new Date(2011, 0, 30), value: 70},
                        {date: new Date(2011, 1, 15), value: 2},
                        {date: new Date(2011, 1, 18), value: 180},              
                        {date: new Date(2011, 1, 23), value: 80}]);
                   [Bindable]
                   private var minDate:Date = new Date(2010, 10, 1);
                   [Bindable]
                   private var maxDate:Date = new Date();
                   private function getDataTip(hitData:HitData):String
                        return "<b>Tip:</b><br> Date: " + hitData.item.date + '<br>Value: ' + hitData.item.value;
              ]]>
         </fx:Script>
         <s:layout>
              <s:VerticalLayout/>
         </s:layout>
         <s:width>100%</s:width>
         <s:height>100%</s:height>
         <s:Panel title = "Chart Test">
              <s:width>100%</s:width>
              <s:height>100%</s:height>
              <s:layout>
                   <s:VerticalLayout/>
              </s:layout>
              <mx:PlotChart id = "chart">
                   <mx:width>100%</mx:width>
                   <mx:height>100%</mx:height>
                   <!-- Uncomment this in order to see that there are overlapping items -->
                   <!-- mx:showAllDataTips>true</mx:showAllDataTips-->
                   <mx:selectionMode>multiple</mx:selectionMode>
                   <mx:dataTipMode>multiple</mx:dataTipMode>
                   <mx:showDataTips>true</mx:showDataTips>
                   <mx:dataTipFunction>getDataTip</mx:dataTipFunction>
                   <mx:horizontalAxis>
                        <mx:DateTimeAxis minimum = "{minDate}"
                                             maximum = "{maxDate}"/>
                   </mx:horizontalAxis>
                   <mx:series>
                        <mx:LineSeries dataProvider = "{values}"
                                                      displayName = "Series 1"
                                                      yField = "value"
                                                      xField = "date"
                                                      interpolateValues = "true"
                                                      lineStroke = "{new SolidColorStroke(0x00FF00, 3, 0.5)}"
                                                      stroke = "{new SolidColorStroke(0x00FF00, 3, 0.5)}"
                                                      itemRenderer = "mx.charts.renderers.CircleItemRenderer"/>
                        <mx:LineSeries dataProvider = "{values2}"
                                                      displayName = "Series 2"
                                                      yField = "value"
                                                      xField = "date"
                                                      interpolateValues = "true"
                                                      lineStroke = "{new SolidColorStroke(0xFF0000, 3, 0.5)}"
                                                      stroke = "{new SolidColorStroke(0xFF0000, 3, 0.5)}"
                                                      itemRenderer = "mx.charts.renderers.CircleItemRenderer"/>
                   </mx:series>
              </mx:PlotChart>
         </s:Panel>
    </s:Application>
    Any help is appreciated!
    Thanks!

  • Why are NEF files desaturating when selected in CS3 Bridge?

    I recently started shooting in RAW but when I select the images in CS3 Bridge, they desaturate.  It seems to only affect NEF files and not jpegs.

    Read the link in this post.  Should help you.
    http://forums.adobe.com/thread/517584?tstart=0

  • Need to capture multiple image paths for responsive design when only one will be displayed at a time

    I'm new to CQ and am having enough trouble following the documentation on image components as it is (why is there no master reference for all this?). I have a requirement where we need to capture three versions of an image and put the URLs into three attributes of a tag. The appropriately sized image will be selected via JavaScript based on the browser/device capabilities. I need to know how to capture those images when seemingly only one at a time can be dropped onto the page. Or perhaps there is a more CQ solution to this.

    Hi,
    You need to customize image component. I mean selected image is a asset in the repository and each asset by default has 3 rendtion generated when the image is uploaded in the dam.
    For example when you upload image.jpg file into the DAM, standard workflow is launched and after a while inside the repository (see paths) are created following renditions:
    /content/dam/project/image/image.jpg/jcr:content/renditions/cq5dam.thumbnail.140.100.png
    /content/dam/project/image/image.jpg/jcr:content/renditions/cq5dam.thumbnail.319.319.png
    /content/dam/project/image/image.jpg/jcr:content/renditions/cq5dam.thumbnail.48.48.png
    This process can be customized by changing /etc/workflow/models/dam/update_asset.html workflow and modifing "Thumbnail creation" step by adding in the Process tab -> Arguments field new values for new rendition. So for example if you add there [400,400] new rendition will be created in the path
    /content/dam/project/image/image.jpg/jcr:content/renditions/cq5dam.thumbnail.400.400.png
    Next step is to customize jsp for image component. Using path to the drag and dropped image from a component attributes you can easily take all renditions iterating on the /content/dam/project/image/yourimage.jpg/jcr:content/renditions node and then set paths to all renditions in the tag attributes. Then like you wrote using js you can select proper rendition.
    I hope that it hepls you.
    Regards,
    Adam

  • BSP ASSIGNMENT ERROR WHEN SELECT A TAB IN TABSTRIP

    Hi all,
    I have a dump when select one of the four tabs, in which three working fine.
    Plese see the below dump and help as soon as possible.
    Runtime Errors         MOVE_TO_LIT_NOTALLOWED                          
    Exception              CX_SY_DYN_CALL_ILLEGAL_TYPE                     
           Occurred on     09/18/2006 at 20:51:05                                                                               
    What happened?                                                                               
    Error in ABAP application program.                                                                               
    The current ABAP program "CL_BSP_MODEL==================CP " had to be 
    terminated because one of the                                         
    statements could not be executed.                                      
    This is probably due to an error in the ABAP program.                  
    Error analysis                                                                               
    An exception occurred. This exception is dealt with in more detail below       
    . The exception, which is assigned to the class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', 
    was neither                                                                   
    caught nor passed along using a RAISING clause, in the procedure               
    "IF_BSP_MODEL_UTIL~CONVERT_FROM_STRING" "(METHOD)"                            
    Since the caller of the procedure could not have expected this exception       
    to occur, the running program was terminated.                                 
    The reason for the exception is:                                               
    You attempted to overwrite the field "<L_FIELD>", although it is a             
    constant (i.e. a numeric literal or a string literal). This is not             
    allowed.                                                                       
    The following objects are protected:                                           
    - Character or numeric literals                                                
    - Constants (CONSTANTS)                                                        
    - Function module and method parameters with the type IMPORTING                
      REFERENCE                                                                    
    - Untyped field symbols that have not yet had a field assigned to them         
      using ASSIGN                                                                 
    - TABLES parameters, if the actual parameter is protected against              
      changes                                                                      
    - USING reference paraemters and CHANGING parameters in FORMs if the           
      actual parameter is protected against changes                                
    - Field symbols, if the field assigned to them using ASSIGN is protected       
      against changes (for example, key components of a SORTED or HASHED           
      TABLE)                                                                       
    - External write access to an attribute with the READ-ONLY attribute           
    I have the below error in webpage.
    500 SAP Internal Server Error
    Error message: Assignment error: A constant was meant to be overwritten. ( type of termination: RABAX_STATE
    if anybody have solution to this please help me.
    Thanks in advance.
    Saravanan.V

    Hi,
      Go through the sample bsp application <b>SBSPEXT_HTMLB-> TabStrip.bsp</b> and check where you are going wrong.
       Post the code to point out where you are going wrong.
    Regards,
    Azaz Ali.

  • How to set selected all checkboxes in all dataTable's rows?

    Hi there,
    I'm trying to perform this simple task: having a dataTable with a column containing checkboxes, how can I allow (with a button, a "super" checkbox or so) to simultaneously set selected all checkboxes in all rows?
    And - is it possible to do so without calling the submit of the page?
    Thanks to everyone!

    Yes, the paging for <h:dataTable> works pretty good, it manages the task through four methods created in the java code -- DataTable1_firstPageAction(), DataTable1_previousPageAction(), DataTable1_nextPageAction(), DataTable1_lastPageAction() -- without adding any javascript in the jsp page.
    Maybe I could test if a java script similar to the <ui:table>'s one fit also the dataTable...
    thanks

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

  • Error: Show Details cannot be executed when multiple items are selected in a report filter field or in a slicer

    I have connected TABULAR Model to Excel, and in the pivot the filter is on multiple dimensions. When doing the drillthrough action it gives error - Error: Show Details cannot be executed when multiple items are selected in a report filter field or in a slicer
    Is there any workaround to this error?  so that drillthrough can be done even with multiple selection.

    Hi Vikas,
    The reason behind the error message requires the knowledge on what happens at the backend. When you perform a drill-through action, a query is sent to Analysis Services. This query is expressed in a query language called Multi-Dimensional Expression (MDX).
    Since the MDX language doesnot support drill-through command against a set (collection of tuples) an error is persisted. 
    For now, there is no workaround as it is a limitation of the underlying language that is generating the query.
    When multiple items are selected you lose the ability to drill-down on individual metrics. To resolve you must either:
    1. Select a single Item.
    2. Select all items.
    Hope this helps!
    Please mark as Answer if this helps! Thanks, Rajasekhar.

  • How to disbale a group of checkboxes when i select one check box WEBDYNPRO

    Hi Friends,
    Can any body help me how to disbale a group of checkboxes when i select one check box WEBDYNPRO Abap
    Also can any body tell me how to handle chain endchain type of scenario in WEBDYNPRO Abap
    Thank you..
    Sai

    Hi
    In the context tab , create 2 context attributes ca_attr1 and ca_attr2   of type WDY_BOOLEAN under a context node cn_node
    now in ur Layout , bind the ENABLE property of CheckBoxGroup UI Element with this attribute ca_attr1
    bind the ENABLE property of CheckBox UI Element with this attribute ca_attr2
    create a action for ur Checkbox , for the OnToggle property of ur checkbox
    in OnactionToggle , check if ca_attr2 is 'X' , set ca_attr2 to ' ' ( for disable)
    this can be done by code wizard , press control +f7 and use read/set context attributes , use get_attribute and set_attribute methods
    // if ca_attr2 is 'X'
    DATA lo_nd_cn_node TYPE REF TO if_wd_context_node.
        DATA lo_el_cn_node TYPE REF TO if_wd_context_element.
        DATA ls_cn_node TYPE wd_this->element_cn_node .
        DATA lv_attr  LIKE ls_city-ca_attr2.
        lo_nd_node = wd_context->get_child_node( name = wd_this->wdctx_ca_attr).
    *   get element via lead selection
        lo_el_cn_node = lo_nd_cn_node->get_element(  ).
    *   get single attribute
        lo_el_cn_node->get_attribute(
          EXPORTING
            name =  `CA_ATTR2`
          IMPORTING
            value = lv_attr ).
    // if lv_attr2 is 'X' , use set_attribute method for ca_attr1
    IF lv_Attr EQ 'X' .
    DATA lo_nd_cn_node TYPE REF TO if_wd_context_node.
        DATA lo_el_cn_node TYPE REF TO if_wd_context_element.
        DATA ls_cn_node TYPE wd_this->element_cn_node .
        DATA lv_attr  LIKE ls_city-ca_attr.
    *   navigate from <CONTEXT> to <CN_VISIBLE> via lead selection
        lo_nd_node = wd_context->get_child_node( name = wd_this->wdctx_ca_attr).
    *   get element via lead selection
        lo_el_cn_node = lo_nd_cn_node->get_element(  ).
    *   set single attribute
        lo_el_cn_node->set_attribute(
          EXPORTING
            name =  `CA_ATTR1`
            value = ' ').
    ENDIF.
    regards,
    amit

  • How to tell if multiple files are selected when they are opened in windows

    Hello, can someone help me, my question is how to tell if multiple file selections were made when they were opened (right-click->open). Through modifying the registry I already have my Java program start up when a file with specific extension is double-clicked.
    The problem is when multiple files are opened at the same time, an instance of java program is created and run for each of the selected files. Ideally I would like it so that only one instance of java program is run, regardless of the number of selections.
    When you try it with Microsoft media player or winamp for example, it seems that only one process is created and run (I don't see many processes spawning when I watch it using task manager). Maybe this is more of Windows issue rather than Java programming issue. Any help is appreciated.

    If anybody wants to know, this can be solved by either 1) using DDE 2) using DropTarget (from Windows) 3) make a light-weight EXE dispatcher (eg. in C), and use file to have IPC between the dispatcher (which gets the filepath for each of the selections) and the java program. There can be other methods of course. Using the second option is the simplest but it requires WinXP and higher. I implemented it using option 3.. the downside of this is there's a warning message pop up when trying to open many (>20?) files at the same time by Windows. However, option 1 'seems' to have the same limitation. Having a java program created each time for each of the selections seems to be too slow, for viable option.

  • Checking Previously Selected Checkboxes using apex_item.checkbox API

    Hello everyone,
    Before I get into the exact nature of my 'problem at hand', I feel it would be a good idea to give you readers a little background info regarding what I'm working on.
    I'm designing a page in my application (a Targeted Email Communications System) entitled the "Impacted Services Selection Screen." In a nutshell, this page will offer multiple check boxes that allow them to select/deselect the applications they wish to be notified about. Additionally, for each service, the user has the option to select the option to receive "planned" outage notifications, "unplanned" outage notifications, or both.
    I'm working with a report region where I'm querying a table called "TEC_APPS" to populate my checkboxes. This table holds three columns which are:
    (1) Primary Key APP_ID: Numerical identifier for each selectable service.
    (2) APP_NAME: Name of the application itself (i.e. Banner INB, Oracle Collaboration Suite, etc.)
    (3) ENTRY_TYPE: Type of entry within the table. I have four categories: (1) Planned Outage Notification, (2) Unplanned Outage Notification, (3) Horizontal Rule Formatting, (4) Title
    The reason for the "ENTRY_TYPE" column is primarily to format the report so it doesn't look like a "table with a bunch of check boxes inside of it".
    Here's the sql query for my report region:
    select APP_NAME,ENTRY_TYPE,APP_ID,
    decode(ENTRY_TYPE,
         'Planned Outage Notification',apex_item.checkbox(1,APP_ID) || ENTRY_TYPE,
         'Unplanned Outage Notification',apex_item.checkbox(1,APP_ID) || ENTRY_TYPE,
         'Title',APP_NAME,
         'Horizontal Rule Formatting','<hr size="6" width = "100%" color="#898A8A">')as result
    from TEC_APPS
    order by APP_ID;basically, this query generates check boxes for ENTRY_TYPEs of Planned/Unplanned Outage notification, Formatted Title Headers for an ENTRY_TYPE of a title, and an html Horizontal Rule for ENTRY_TYPES of horizontal rule formatting (the reason being my boss's specifications required there to be a formatted line that separates each check box group by context). That way, the groups will look like (note '[]' are meant to represent the check boxes):
    BANNER INB
    [ ] Planned Outage Notification
    [ ] Unplanned Outage Notification
    PORTAL
    [ ] Planned Outage Notification
    [ ] Unplanned Outage Notification
    etc....
    Additionally, I have an after submit process which uses the apex global array to store the selected check boxes and perform an insert into a different table called "TEC_SERVICES", which has the columns:
    (1) PRIMARY_KEY SERVICE_ID: Numerical Identifier for each specific service requested for notification.
    (2) SUB_ID ("subscriber id"): Numerical Identifier for each person using this application
    (3) APP_ID: Foreign key reference to "TEC_APPS" which holds information regarding which application the user has selected for each SERVICE_ID
    Here's the code for the process:
    DECLARE
       l_arrayMark  NUMBER;
       CURSOR c_id_check (aMark IN NUMBER) IS
       SELECT service_id,sub_id,app_id
       FROM tec_services
       WHERE sub_id = :p4_sub_id
       AND app_id = aMark;
       r_id_check c_id_check%ROWTYPE;
    BEGIN
    FOR i in 1..APEX_APPLICATION.G_F01.count
    LOOP
       BEGIN
          l_arrayMark := to_number(APEX_APPLICATION.G_F01(i));
        OPEN c_id_check(l_arrayMark);
        LOOP
          FETCH c_id_check into r_id_check;
          IF c_id_check%NOTFOUND THEN
            insert into "TEC_SERVICES"
            ( "SERVICE_ID",
              "SUB_ID",
              "APP_ID"    )
            values
            ( TEC_SERVICES_SEQ.nextval,
              :P4_SUB_ID,
              to_number(APEX_APPLICATION.G_F01(i)));
            EXIT;
          ELSIF c_id_check%found THEN
            EXIT;
          END IF;
        END LOOP;
        CLOSE c_id_check;
        EXCEPTION
        WHEN DUP_VAL_ON_INDEX
        THEN NULL;
        END;
    END LOOP;
    END;The sub-block loop basically checks to see if the user already has a record for that APP_ID, and if so exits the loop. I threw the unique key EXCEPTION in at the end just to be safe. I'm new to sql and pl/sql so I'm still trying to learn this stuff. I have come pretty far since I first started about 5 weeks ago.
    Anyways, here's my problem:
    I need to create a process that queries my TEC_SERVICES table to see if the person using my application already has a subscription for the "APP_ID" each checkbox in my report represents. If they do, the page is supposed to load with that/those checkbox(s) already checked. My problem is I'm not quite sure how to update those checkbox values. I have created a "before header" process that aimed at doing this, but is not working. Here is the "rough draft" of the code:
    DECLARE
       l_arrayMark NUMBER;
       CURSOR c_id_find (aMark IN NUMBER)IS
       SELECT sub_id, app_id
       FROM tec_services
       WHERE sub_id = :p4_sub_id
       AND app_id = aMark;
       r_id_find c_id_find%rowtype;
    BEGIN
    if APEX_APPLICATION.G_F01.count = 0 THEN return;
    end if;
    FOR i in 1..APEX_APPLICATION.G_F01.count
    LOOP
        BEGIN
        l_arrayMark := to_number(APEX_APPLICATION.G_F01(i));
        OPEN c_id_find(l_arrayMark);
        LOOP
        FETCH c_id_find INTO r_id_find;
        IF c_id_find%found THEN
        apex_util.set_session_state(apex_item.G_F01,'CHECKED');
        -- ** This is where I'm getting mixed up...this is basically trying to say, "if the record for this checkbox already exists for this person, then show this checkbox as selected."
        -- ** I just don't know how I am supposed to do that.  Maybe something similar, but more along the lines of: UPDATE apex_application.g_f01(p_checked_values => 'CHECKED')
        ELSIF c_id_find%notfound THEN
        exit;
        END IF;
        END LOOP;
        CLOSE c_id_find;
        END;
    END LOOP;
    END;I guess I just really don't know how to do this, and it's "Grinding my gears."
    Any help is much appreciated.
    Thank you all,
    Eric
    *** NOTE *** This is my first post ever in the oracle forums. I noticed that even when I include spaces and indentation in my code/post text, it doesn't display in the actual thread itself. Anyone know the markup to insert such things...or like an &nbsp?
    Edited by: user11685190 on Sep 28, 2009 2:09 PM
    Edited by: user11685190 on Sep 29, 2009 6:32 AM

    Gus,
    1. Yeah...I tend to get carried away sometimes. This one's been killing me though b/c I've got a deadline of four weeks left to do this thing and I still have three somewhat "beastly" pages to write before it's completely ready to be tested and considered for production. On top of that, I'm pretty much learning a lot of this stuff as I go.
    2. The first two loops I showed you (Query for the checkbox report, On-Submit process to read checkboxes and insert table data) are fully functional. The problem is, I've worked with "checkbox items" but not so much with the apex API for Report Checkboxes "apex_item.checkbox(p_id, p_val, etc.)). I don't know "how" I could write a pl sql process that queries the table when the page loads to check the checkboxes....addionally, I don't know what commands to use to fill these boxes b/c I've found somewhat unrelated information by conducting web research. Code-wise, my problem is I don't know whether to use:
    UPDATE apex_application.g_f01(p_checked_values => 'CHECKED') ** OR ** if you'd instead use something like 'set available flag = 'Y'' The real problem is I just don't know how I'd do it.
    ...but, on second hand, I do find light in what you said about the "before header" process. If you look at the plsql block, the cursor I'm using to "see if that person already has subscribed to the service
    represented by a checkbox," I'm referencing the page item :P4_SUB_ID. Since this is a before header process...it is running (i think) before the :p4_sub_id item loads...so the cursor is most likely returning as 'not found,' therefore it
    does nothing. However, the source for the :P4_SUB_ID item says to use the source only when the value in session state is null. Because of this, I don't know if my above thoughts are correct.
    Thank you for your thoughts and posting that link...I'll look into it a bit further.
    Oh yeah...and thanks for the [/*code] tip...that looks a ton better.
    Eric                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • Layout Change when program run in background.

    Hi All, I have a layout field on the selection screen. When I run the program in foreground, iam able to see the change in the layout in the output. When I select a layout name and run the report in background, Iam sending a file to the application s

  • How to simulate DDE in Web Forms?

    Surely there is some elegant way to do DDE in a Web Forms (6i)environment? Given that Forms 7i will only support internet deployment and not C/S, there must be some "migration path" to replace the functionality of DDE in the C/S environment. My need

  • Satellite 3000 x11 cannot use its network card

    On my friend's satellite 3000 x11 I'm trying to configure it to connect to my uni halls internet, but to do that I need the MAC address. If I do ipconfig it just says "Windows IP configuration" and nothing else. If I go to device manager there's no c

  • Another vict of vzw

    another vict of vzw. to make a long story short i have been having problems out of this phone from day one the women had me do an soft reset with my sd card still in the phone and my photos and music was gone and the sd card was damage. i go to the v

  • PI Landscape

    Hello XI experts, Iam BASIS guy and working on SAP R/3 4.72 to ECC6 upgrade project.I have few tasks which is related to XI7.0 & SAP ECC&R/3 4.72 Let me put like this current landscape SAP R/3 4.72 - DVE QAS PRD SAP XI7.0 XD1 XQ1 XWP Now we are upgra