Checkbox: making it checked depending on column & disabling it at same time

Hi,
In my report region, I have a column with checkbox. The requirement is : depending on the value of a column, it should be checked or unchecked. And whenever it is checked, it should get disabled. Means the user can see that in a particular row the checkbox is checked but he cannot uncheck it.
I have used the following query. Throw it I can see that particular checkbox is checked but its not diabled.
select MBOI_MASTER_ID as MBOI_MASTER_ID,
SOURCE_SYSTEM as SOURCE_SYSTEM,
apex_item.checkbox(1,MBOI_MASTER_ID,
CASE
when AFFIRMATION_STATUS ='Affirmed'
THEN 'checked=checked,disabled=disabled;'
ELSE NULL
END
*) "AFFIRM_CheckBox"*
from MAIN_INTERFACE
This query is making the checkbox as checked but not diabling.
If i change the query like : when AFFIRMATION_STATUS ='Affirmed'
THEN 'disabled=disabled,checked=checked;'
ELSE NULL
Then its disabling it but doesnot make it checked.
Pls give some idea

I solved this issue by following code:
apex_item.checkbox(1,MAIN_INTERFACE.MBOI_MASTER_ID,
CASE
WHEN MAIN_INTERFACE.AFFIRMATION_STATUS ='Affirmed'
THEN 'checked=checked disabled=disabled;'
ELSE NULL
END
) "AFFIRM_CheckBox"
Edited by: Chandra Bhanu on May 31, 2013 7:43 AM
Edited by: Chandra Bhanu on May 31, 2013 7:44 AM

Similar Messages

  • Firefox loads the "welcome to firefox" along with my homepage (firefox startup page) everytime I start firefox up. It also checks for add-on compatibility at the same time.

    My firefox program is regularly updated (automatic update). Normally, after an update, when I start up firefox the "welcome to firefox" (http://www.mozilla.org/en-US/firefox/6.0.2/whatsnew/) with all the new features and stuff display pops up, but only for the first time, together with the add-on compatibility check
    This time, however, it just keeps loading everytime I start up firefox. It seems to think that I've just updated all the time. It's not a problem (nothing else is affected), I'm just wondering why this is happening. Suggestions?
    I'm running firefox 6.0.2 on a windows 7 platform. No patches or funny stuff added to firefox. Standard players and video/audio encoders.

    See:
    *http://kb.mozillazine.org/Preferences_not_saved
    *https://support.mozilla.com/kb/Preferences+are+not+saved

  • How to use multiple languages at the same time for spell checking?

    I use two different languages all the time and words are mostly so different (English and Finnish) that I could have spell checking on for both languages at the same time.
    Now it seem to allow to select only one language at the time and I have to switch back and fort zillion of times per day.

    Thanks for the quick answer.
    The Dictionary Switcher doesn't seem to work with Finnish language, it doesn't detect it at all to be one of the choices although in the Firefox context menu Languages -> Finnish/Finland is shown.
    Also, if it would work, I would need to get rid of multiple EN_* langauges. I just need EN_UK or EN_US, not all 22 different EN_*.
    One option would be to create a custom dictionary, which would have words from both languages. The next task is then to find out how to make this kind of custom ENFI-dictionary, which would have words from both English and Finnish languages.
    Finnish may be a some kind of special case for spell checking anyway, because the support is in its separate plugin:
    http://voikko.sourceforge.net/

  • Checkbox  marked as checked

    Hi,
    I would like to mark a checkbox as checked depending on a column value.
    Example:
    Data for the columns PROD_ID, PRODUCT, PRODUCT_COLOR stored in table PRODUCT.
    values:
    1, T-Shirt, green
    2, shoes, yellow
    In a form for updating this columns the costumer have the ability to change the color of the products with checkboxes.
    The old stored value for the color should be shown in this form but I don't know how to manage this. Perhaps with a function body in the source of the item?
    Can anybody please help me?
    Thanks,
    ben

    I try to describe it once again to make it more clearly.
    I have a form based on a wizard where you can insert data on three steps (means three pages) The wizard contains radiogroups, text fields, select lists and six checkboxes.
    Let me say checkbox1, checkbox2 ... They are placed on page 1 of the wizard.
    The values of all six checkboxes are stored in one column PRODUCT_PROPERTY of the table. It's recommended from the customer.
    It should also be possible to update the stored data, thus I use also a wizard that is just as developed as the input wizard. For update it is necessary that the costumer see his before inserted data. In a search field he put his costumer number and will see all his ordered products and has the ability to choose the product to be changed. After this the wizard for the update erases with the stored data. I have managed this for the radiogroups, text items and selectlist with a select statment in the 'SOURCE' of the edit item section.
    In fact of this I have to extract wether a checkbox value is stored in the column PRODUCT_PROPERTY or not.
    The select statement for this question works fine (regular expression and ...)
    My problem is how to tell the checkbox that it must be of the status 'checked' if corresponding data in the column PRODUCT_PROPERTY exists.
    (In my opinion apex_item.checkbox only works for creating a SQL report and this is not what I try to realize).
    I hope I could describe the problem a little more clearly.
    ben

  • Datagrid having checkbox column getting resized at the time of reset

    Hi
    In my application, I have a data grid in which one column is
    having check boxes as itemRenderer.
    and there are two buttons in application one is "Clear all"
    and another is "Select all".
    when I reset the datagrid according to these buttons
    operation, it gets resized and scroll bar appears.
    It should not get resized.
    my data grid declaration is
    <mx:DataGrid id="dataGrid" name="dataGrid"
    dataProvider="{data.myData}"
    selectable="false"
    rowCount="{data.myData.length}"
    draggableColumns="false" width="{chart.width}"
    visible="{data.myData.length>0}"
    headerRelease="{dataTableEvents(event)}"
    creationComplete="{afterCreationComplete(event)}">
    <mx:columns>
    <mx:DataGridColumn id="numField" headerText=""
    dataField="numPosition" width="40" paddingLeft="10"
    paddingRight="10" sortable="false" />
    <mx:DataGridColumn id="checkBoxes" headerText=""
    dataField="checked" width="32" paddingLeft="10" paddingRight="10"
    sortable="false" >
    <mx:itemRenderer>
    <mx:Component>
    <mx:CheckBox click="{data.checked=!data.getChecked();}"
    selected="{data.checked}"/>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    </mx:columns>
    </mx:DataGrid>
    and reset grid code is
    public function resetGrid():void{
    for(var i:int =0; i<data.myData.length;i++){
    data.myData
    .checked = false;
    can anyone please help me?
    It is very urgent..
    Please reply as early as possible.
    Thanks in advance
    sm15

    So the engineer came and, of course, everything was working ok. He did fit some kind of RF filter on my main socket, and 'changed the pair' on one of the outside cables. Since then, I've only had a noisy line once, and seem to have been connected for 3 days solid, which is a record!
    I've switched back to my BT Home hub 3, which guavas me more stats. The line has previously given me up to 6mb/s, now only getting 1.6.
    Do you think, now the line seems more stable, with the stats below I should be able to maintain a higher speed now?
    Thanks
    Line state: Connected
    Connection time: 3 days, 02:19:39
    Downstream: 1.601 Mbps
    Upstream: 444.9 Kbps
    ADSL Settings
    VPI/VCI: 0/38
    Type: PPPoA
    Modulation: G.992.3 Annex A
    Latency type: Interleaved
    Noise margin (Down/Up): 17.7 dB / 22.6 dB
    Line attenuation (Down/Up): 44.8 dB / 27.0 dB
    Output power (Down/Up): 18.6 dBm / 12.6 dBm
    FEC Events (Down/Up): 3144673 / 0
    CRC Events (Down/Up): 14434 / 38
    Loss of Framing (Local/Remote): 0 / 0
    Loss of Signal (Local/Remote): 0 / 0
    Loss of Power (Local/Remote): 0 / 0
    HEC Events (Down/Up): 111873 / 10
    Error Seconds (Local/Remote): 1011 / 4

  • Set all checkboxes of the selected column by user at run time

    Hi ,
    I have a table control tab_500 with the 3 columns of checkboxes. When user selects particular column, and click on the buttone 'Select All', all the checkboxes of that column should get selected.
    loop at tab_500-cols into cols_500.
      if cols_500-SELECTED = 'X'.
      endif.
    endloop.
    How to do this.
    Thanks in advance,
    Regards,
    Madhuri

    Hi,
    In PAI write this code..
    DATA wa_table TYPE cxtab_column.
    IF SY-UCOMM EQ 'SELALL'.
         LOOP AT <tablecontrol>-cols INTO wa_table.
            IF wa_table-screen-name CS <checkbox colume name in upper case>
               AND  wa_table-selected = 'X'.
              itab-check1 = 'X'.      " Check box field set to X
              MODIFY itab TRANSPORTING check1 WHERE check1 = space . " modify the internal table
            ENDIF.
          ENDLOOP.
    ENDIF.

  • Excisable Column Disabled

    Hi Experts,
    Previously i was using SAP B1 2005B PL40. But now i have upgraded to SAP B1 2007B PL10.
    Now in 2007 B PL10 i am facing a problem. In the SO, Delivery & A/R Invoice template the Excisable Column is Inactive.
    Even in the form setting i have checked , it is showing the Visible column as enable but the Active column is disable.
    Is there any idea of SAP behind this change. If not then guide me how to make the Excisable Columns as Active in the SO, Delivery & A/R Invoice template.
    Thanks and Regards,
    S Manikandan

    Hi Mani,
    Check this link
    Excisable Column Disabled
    Close th thread , if issue solved
    Regards
    Jambulingam.P
    Edited by: Jambulingam P on Jun 18, 2009 6:56 AM

  • Putting a check box above column for selection in WD ALV

    Hi,
    Can anyone provide me a code snippet and help me how I can
    provide a check box above column for selection in WD ALV.
    Best Regards
    Sid

    Hi Sid,
    As far as I know we cannot put checkboxes directly above the Column headers.
    You can achieve this functionality in a round above method
    You can create a group of checkboxes above your ALV table with names of  columns to be selected beside each check box and proceed with your further processing.
    Also If you are just looking at which columns you need to select to be shown on the
    ALV output
    data: lr_standard_functions type ref to if_salv_wd_std_functions.
    lr_standard_functions ?= wd_this->r_table.
    lr_standard_functions->set_column_selection_allowed( ' ' ).
    Hope this is of some help.
    Regards,
    Ismail.
    Edited by: Ismail Basha on Jan 23, 2008 1:47 PM
    Edited by: Ismail Basha on Jan 24, 2008 3:23 AM

  • Checkbox/showtext if checked

    Hello
    I have a question regarding changes in my final form.
    To summerize what I did : I have 3 groups of radio
    buttonCwc/Cwnc Conform/Nonconform And For Dir/Board
    This is what I did to write this. I created 4 forms which
    satisfies the first t2 groups of radio buttons CwcorCwnc,
    ConformorNonconformThen I created a condition statement in each of
    the form . if the choose board then a board message will show and
    vice versa the dir . Here is my problem. The message in board or
    dir needs to have check boxes and if the check boxes are checked
    then it shows in another page ( or cfinclude again) .. how do I do
    this?????
    Below is the code I have written. Most of the complex part is
    subtracted.
    HELP??

    I try to describe it once again to make it more clearly.
    I have a form based on a wizard where you can insert data on three steps (means three pages) The wizard contains radiogroups, text fields, select lists and six checkboxes.
    Let me say checkbox1, checkbox2 ... They are placed on page 1 of the wizard.
    The values of all six checkboxes are stored in one column PRODUCT_PROPERTY of the table. It's recommended from the customer.
    It should also be possible to update the stored data, thus I use also a wizard that is just as developed as the input wizard. For update it is necessary that the costumer see his before inserted data. In a search field he put his costumer number and will see all his ordered products and has the ability to choose the product to be changed. After this the wizard for the update erases with the stored data. I have managed this for the radiogroups, text items and selectlist with a select statment in the 'SOURCE' of the edit item section.
    In fact of this I have to extract wether a checkbox value is stored in the column PRODUCT_PROPERTY or not.
    The select statement for this question works fine (regular expression and ...)
    My problem is how to tell the checkbox that it must be of the status 'checked' if corresponding data in the column PRODUCT_PROPERTY exists.
    (In my opinion apex_item.checkbox only works for creating a SQL report and this is not what I try to realize).
    I hope I could describe the problem a little more clearly.
    ben

  • How to avoid to check if a column value is NULL?

    Hi, I'm a newbee in Oracle.
    I have a procedure like this:
    create or replace
    PROCEDURE get_employee
         v_first_name IN VARCHAR2 DEFAULT NULL ,
         v_middle_name IN VARCHAR2 DEFAULT NULL ,
         v_last_name IN VARCHAR2 DEFAULT NULL ,
    To select rows with matching multiple column values, I can simply do this:
    SELECT *
    FROM employee
    WHERE first_name = v_first_name
    AND middle_name = v_middle_name
    AND last_name = v_last_name
    The problem is v_middle_name can be NULL. This means,
    I need check if v_middle_name is NULL, and if it is, I need use "IS NULL" instead, like this:
    SELECT *
    FROM employee
    WHERE first_name = v_first_name
    AND middle_name IS NULL
    AND last_name = v_last_name
    It seems very cumbersome to do a check for each column that can be null.
    Is there a way that I do not need to do a check for every column?
    or is it better to avoid having NULL values in those columns (and replace them with, say a space) ?
    Thanks in advance.
    Simon

    Normally, you would do something like
    SELECT *
      FROM employee
    WHERE first_name = NVL( v_first_name, first_name )
       AND middle_name = NVL(v_middle_name, middle_name )
       AND last_name = NVL(v_last_name, last_name )Of course, if you can ensure that NULL data is not allowed (without creating phony non-NULL data), that is a good thing. In most systems, for example, it is probably reasonable to require a non-NULL first and last name. But you almost certainly cannot require a middle name.
    Justin

  • Using '=' to check for NULL column value

    We are currently encountering an issue where 10.1.0.5 is happily accepting a check on a column for a null value with what I have always known to be an invalid syntax.
    For instance:
    select col1 from my table where col1=null
    Although this is wrong and we are working on locating the queries formatted as such, what I am wondering is why is it working on the 10.1.0.5 version but we cannot get the same query to execute on 8i, 9i, 10.2.0...? Is there a flag that can be enabled to allow this compare?

    I am familiar with the correct syntax to be using. What I am looking for is a possible explanation as to why the query below returns the correct results on 10.1.0.5 and returns nothing in all other versions. I would expect the same behavior across all instances. See the two lines in bold "AREA=NULL" and "SUBAREA=NULL"
    SELECT DISTINCT
    UNIQID,
    MGRCOMMENT,
    REQ.CREATED_BY CREATED,
    C2.CNAME DEVELOPER,
    C5.CNAME PRODMGR,
    C3.CNAME ASSIGNED,
    C4.CONTACTID CURRENTUSER,
    ID,
    STATUSNAME,
    REQ.STATUS STATUSID,
    PRIORITYNAME,
    TITLE,
    MAS1.MODULENAME,
    MAS1.AREANAME,
    MAS1.SUBAREANAME,
    MIN1.MODULE,
    MIN2.AREA,
    MIN3.SUBAREA
    FROM REQ,
    PRIORITY,
    STATUS,
    (SELECT FIRST_VALUE(M1.MODULENAME)
    OVER (PARTITION BY REQUNIQID ORDER BY MODULENAME ROWS UNBOUNDED PRECEDING) MODULENAME, FIRST_VALUE(A1.AREANAME)
    OVER (PARTITION BY REQUNIQID ORDER BY AREA ROWS UNBOUNDED PRECEDING) AREANAME, FIRST_VALUE(SA1.SUBAREANAME)
    OVER (PARTITION BY REQUNIQID ORDER BY SUBAREANAME ROWS UNBOUNDED PRECEDING) SUBAREANAME, REQUNIQID
    FROM REQMOD, MOD M1, ARA A1, SBARA SA1
    WHERE M1.MODULEID = REQMOD.MODULE
    AND A1.AREAID = REQMOD.AREA
    AND SA1.SUBAREAID = REQMOD.SUBAREA) MAS1,
    (SELECT FIRST_VALUE(C2.CNAME) OVER (PARTITION BY REQUNIQID ORDER BY CNAME ROWS UNBOUNDED PRECEDING) CNAME, REQUNIQID
    FROM REQ_ASSIGN, CONTACT C2
    WHERE C2.CONTACTID = REQ_ASSIGN.CONTACTID
    AND ASSIGNMENT_TYPE=2) C2,
    (SELECT FIRST_VALUE(C5.CNAME) OVER (PARTITION BY REQUNIQID ORDER BY CNAME ROWS UNBOUNDED PRECEDING) CNAME, REQUNIQID
    FROM REQ_ASSIGN, CONTACT C5
    WHERE C5.CONTACTID = REQ_ASSIGN.CONTACTID
    AND ASSIGNMENT_TYPE=1) C5,
    (SELECT FIRST_VALUE(C3.CNAME)
    OVER (PARTITION BY REQUNIQID ORDER BY CNAME ROWS UNBOUNDED PRECEDING) CNAME, REQUNIQID
    FROM REQ_ASSIGN, CONTACT C3
    WHERE C3.CONTACTID = REQ_ASSIGN.CONTACTID
    AND ASSIGNMENT_TYPE<>2
    AND ASSIGNMENT_TYPE<>1) C3,
    (SELECT DISTINCT REQUNIQID, CONTACTID FROM REQ_ASSIGN WHERE CONTACTID=5) C4,
    (SELECT DISTINCT REQUNIQID, MODULE FROM REQMOD WHERE MODULE=1) MIN1,
    *(SELECT DISTINCT REQUNIQID, AREA FROM REQMOD WHERE AREA=NULL) MIN2,*
    *(SELECT DISTINCT REQUNIQID, SUBAREA FROM REQMOD WHERE SUBAREA=NULL) MIN3,*
    REQCOMMENTS
    WHERE PRIORITY.PRIORITYID = REQ.PRIORITY
    AND STATUS.STATUSID = REQ.STATUS
    AND MAS1.REQUNIQID = REQ.UNIQID
    AND C2.REQUNIQID = REQ.UNIQID
    AND C5.REQUNIQID = REQ.UNIQID
    AND C3.REQUNIQID = REQ.UNIQID
    AND C4.REQUNIQID = REQ.UNIQID
    AND MIN1.REQUNIQID = REQ.UNIQID
    AND MIN2.REQUNIQID = REQ.UNIQID
    AND MIN3.REQUNIQID = REQ.UNIQID
    AND REQCOMMENTS.REQUNIQID = REQ.UNIQID
    AND REQ.PROJECTID = 3;

  • Check box als column in a standard table, how to get the selected row

    Dear experts,
    I habe standard tablt with check box as column. Now I want to get the current selected row structure and do some changes. How could I solve this problem? till now I just know to get the structure via lead selection.
    lo_node->get_element().
    lo_element = lo_node->get_static_attributes ( static_attributes = ls_row).
    How could I get the element through check-box in stead of lead selection. Many thanks!

    check this code
    To get the selected row number
    data: lr_element type ref to if_wd_context_element,
              lv_index type i.
      lr_element = wdevent->get_context_element( name = 'CONTEXT_ELEMENT'  ).
      lv_index = lr_element->get_index( ).
    Thanks
    Bala Duvvuri

  • The checkbox (Install or remove Windows 7) is disabled in bootcamp.

    Hi, I want to get rid of windows that was installed using bootcamp on my early 2011 macbook pro but the checkbox (install or remove windows 7) is disabled in bootcamp. I tried to format the drive using disk utility but failed, It says "couldn't modify partition map". What can I do to remove windows 7 and unite all the data in my HDD into one single partition?

    2 things, the option is greyed out because (1) 1st 2 items are unchecked or (2) the USB containing Windows and the drivers is not detected.
    The newer 2013 machines seem to be very picky about the Windows install, as keys that worked on 2012 machines would no longer work on the 2013s. If you want a painless install, do this
    DL the correct W7 ISO from here http://techverse.net/download-windows-7-iso-x86-x64-microsofts-official-servers/ - SP1 ISOs
    Then insert your USB and select all 3 options. The program will copy this new ISO to your USB.
    Only use a USB2 (not USB3) drive

  • When I clear my history, Firefox clears my browsing and download history even though this checkbox is not checked. It didn't use to do this. What can I do to fix this?

    When I clear my history, Firefox clears my browsing and download history even though this checkbox is not checked. It didn't use to do this. What can I do to fix this? I believe the problem started with the last Firefox update.

    Do you mean the "Form autocomplete" feature?
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history" > "Remember search and form history"
    *https://support.mozilla.org/kb/Form+autocomplete

  • CheckBox Item Renderer checks wrong grid row after sorting

    I have an advanced Data Grid that has a checkBox ItemRenderer. The underlying object being displayed (Server) in the dataGrid is being bound to the checkBox with a selectedForDeployment:Boolean property.
    I had this working just fine until the datagrid is sorted. After the grid is sorted I can click on the checkBox in row 2 and the checkBox in row 8 will be selected for instance. Or in some cases all checkBoxes will become checked. Also, if I have some already checked and then sort, the checkBox will become unchecked.
    I have an example of my itemRender below. Any idea on how I can get this to work:
    public class CheckBoxRenderer extends CheckBox
            override public function set data(value:Object):void {
                if(value){
                    super.data = value;
                    Server(super.data).addEventListener("setSelectionChanged", valueChange);
                    this.selected = value.selectedForDeployment;
            public function CheckBoxRenderer(){
                focusEnabled = false;
                BindingUtils.bindSetter(selectionChange, this, "selected");
            //this method occurs the checkbox is clicked
            public function selectionChange(value:Boolean):void{
                trace(value);
                this.selected = value;
                if(this.data){
                    this.data.selectedForDeployment = value;
            //This method occurs when the selectedForDeployment boolean in the object changes
            public function valueChange(event:Event):void{
                this.selected = event.target.selectedForDeployment;
            /* center the checkbox if we're in a datagrid */
            override protected function updateDisplayList(w:Number, h:Number):void
                super.updateDisplayList(w, h);
                if (listData is DataGridListData)
                    var n:int = numChildren;
                    for (var i:int = 0; i < n; i++)
                        var c:DisplayObject = getChildAt(i);
                        if (!(c is TextField))
                            c.x = (w - c.width) / 2;
                            c.y = (h - c.height) / 2;

    This usually works for me:
    package renderers
        import flash.events.Event;   
        import mx.controls.CheckBox;
        public class CheckBoxRenderer extends CheckBox
            public function CheckBoxRenderer()
                super();
                addEventListener(Event.CHANGE, handleChange);
            override public function set data(value:Object):void {
                if(value){
                    super.data = value;
                    selected = value.selectedForDeployment;
            private function handleChange(event:Event):void{
                data.selectedForDeployment = event.target.selected;

Maybe you are looking for