Problem with a Checkbox

Hi Experts, i have a new problem. I'm using Netveawer V 7.0.09 and i have created a static checkbox element in my View. This element is showed in the portal at runtime but it is locked. So i can't check it.
I have setted the checked property as a boolean variabile in the Context and readOnly property as false.
Is there a solution to this problem?
Thanks a lot at everybody

Hi Experts i want to thank u everybody. I have a least problem. I want check and unckeck my checkbox but i can't manage in that.
In the wdDoInit() method i use this cod's line:
wdContext.currentContextElement().setSceltaA(true);
(sceltaA is a valueAttribue in the Context of the view)
i have created a method for the action onToggle in wich i want check my checkbox:
if(wdContext.currentContextElement().getSceltaA()){
          wdContext.currentContextElement().setSceltaA(false);
     else{
    wdContext.currentContextElement().setSceltaA(true);
I would an opinion about that.
Thanks a lot
Greg

Similar Messages

  • Problem with Matrix/Checkbox/Datasource

    Hi, i have a problem with a Matrix.
    There are 3 Columns on this Matrix, one of those is a Checkbox. I fill the Columns with data, the Checkboxes where just added (no Checkbox is selected), the user has to select the value (Checkbox)he want's to by hand.
    After i filled the Matrix i can see all the data on the Form, it's OK, but then i loose all entries after SBO is doing some work. There where shown only the empty rows and the checkboxes.
    I guess it has something to do with the databinding. My problem is that i don't have the Data for this form on a db-table. I fill in the matrix the result of some querys. It looks like i need at least a DB-Field for the checkboxes, otherwise there are not working (not selectable)
    Somebody knows a solution how i can keep the Data in the Matrix after SBO is doing some work? What could be the reason that i loose the data after filling it in the Matrix? Is there an easy way?
    Thanks Andreas

    Almost every item on a form need a datasource... If the item reprecents some data in a table the databinding must be a dbds... If the data does not reflect any data in a table (Calulated value, user-decision, ect.) a userdatasource need to be created...
    Add a userdatasource
    oForm.DataSources.UserDataSources.Add(UID,type,length);
    Databind to DBDS
    col.DataBind.SetBound(true,”TABLE”,”FIELD”);
    Databind to UDS
    col.DataBind.SetBound(true,””,UID);

  • Problem with clicking CheckBox eswith eCATT recording

    Hi All,
    Iam using SAP GUI 640,ECC500.
    Am trying to set some default setting in Finance Transaction FB00 with clicking some checkboxes.
    So,After i recorded with clicking checkboxes,For testing that recording i unchecked the check boxes manually and executed the script .but i dont see any boxes checked after i execute the script.I checked in the debugging mode,it is showing in the screen that the checkboxes are checked.but at the end of the script when i open the transaction manually the checkboxes are unchecked.
    Is their anything to be cautious when recording Checkboxes.If so please pass your comments.
    Thanks in Advance,
    Sarapu

    HI Rajender,
    Are you using TCD or SAPGUI for the recording.
    In either cases make sure that you are passing value "<b>X</b>" to the checboxes in your recording or passing value "<b>X</b>" to the variable you have assigned to the checkboxes.
    In general you donot need to take any special care for handling Check boxes and they are identified with both TCD and SAPGUI as part of the standard eCATTS.
    Hope this solves your problem. DO get back to me if you still have the same problem.
    -Harsha
    PS: Award points if this answers your questions.

  • Problem with JTable checkbox

    In my table I have a column of checkboxes. If user clicks any checkbox, the program will first check for some condition and pop out a warning dialog saying that "the action will change the current mode. are you sure you want to continue?". If user select "yes", some action are taken and the checkbox should be selected. Now the problem is that after user select "yes", the checkbox is not selected. (Same as when you press your mouse at a checkbox and then drag it out the checkbox cell, the actions are taken but the checkbox is not selected.)
    The code for the cell editor is as follows:
    public Component getTableCellEditorComponent(JTable table, Object value,
               boolean isSelected, int row, int column) {
             if (value instanceof ComboString) { // ComboString
               flg = COMBO;
               String str = (value == null) ? "" : value.toString();
               System.out.println("+++++++ " + row+" : "+column+"  flg: "+flg);
               return cellEditors[COMBO].getTableCellEditorComponent(table, str,
                   isSelected, row, column);
             else if (value instanceof Boolean) {                    
               flg = BOOLEAN;
               Boolean check = Boolean.getBoolean(value.toString());
                          // promptContinue returns true for continue, false for return; inside it a dialog box is popped for user selection "continue or not"
                          if(!promptContinue()){
                                return null;
               return cellEditors[BOOLEAN].getTableCellEditorComponent(table,
                   value, isSelected, row, column);
             

    Thanks. But my problem is not with stopping the editor, but with continuing the editor. Following is the code of getCellEditorValue()
    public Object getCellEditorValue() {
             switch (flg) {
             case COMBO:
               String str = (String) comboBox.getSelectedItem();
               return new ComboString(str);
             case BOOLEAN:
             case STRING:
               return cellEditors[flg].getCellEditorValue();
             default:
               return null;
                }I am not very sure whether it is the problem of cell editor or cell renderer, because it seems the code for continue condition is actually executed which is supposed to make the checkbox checked, but the result turns to be that the checkbox is not checked.

  • Problem with a checkbox -pls help

    I have a tabular form with checkbox for all rows and I want to update all the rows where checkbox is checked .
    select
    APEX_ITEM.CHECKBOX(1,ID) as " ",
    "ID",
    "ID" ID_DISPLAY,
    other records ...
    from
    below the code
    declare
    vROW number;
    begin
    if :REQUEST = 'SUBMIT' then
    FOR i in 1..APEX_APPLICATION.G_F01.COUNT LOOP
    vROW := TO_NUMBER(APEX_APPLICATION.G_F01(i));
    update table ... where id = vROW
    END LOOP;
    end if;
    end;
    when testing I observed that vROW has ID value even I did not tick any checkbox .
    How can I check if checkbox is ticked in this case ???
    thanks
    solo

    "In order to do that, you don't need to use a checkbox. Building a tabular form on your table, using APEX wizard, will give you an updatable form, in which you can update any of the displaying cells, and submitting the form will update them automatically. The standard tabular form uses the checkboxes only for deleting records."
    I'm affraid it is not possible. I have a complex view and I need a PL/SQL code to update the modified rows in another table ..
    "If you want to construct your tabular form yourself, and use checkboxes as part of a self-developed update process, you should use the "SQL Query (updatable report)" for your report type. This type of report allows you to use a built-in component called "Row Selector" – in the tasks box of the report attribute tab. This is a built-in checkbox component, which the report generator can use with your other report component, and synchronize all of them with the APEX_APPLICATION.G_F arrays, in order to avoid the problem Scott pointed out to you. "
    It's incredible .
    When I do Page->Tabular Form->Query ( update only ) the checkbox does not appear .
    IF I do Page->Tabular Form->Query ( update/insert/delete ) the checkbox the checkbox appear .
    ... I spend a lot of time becuase of this ...... ( I don't want to say )
    Now , my tabular form has 67 columns .. how can I manage all this columns values ( if remember well ..limit is 50 ) . Any , tricks ???
    what's wrong with this code ?
    declare
    v number;
    pk varchar2(50);
    c1 varchar2(50);
    c2 varchar2(50);
    c9 varchar2(50);
    begin
    FOR i in 1..APEX_APPLICATION.G_F01.COUNT LOOP
    v := to_number(APEX_APPLICATION.G_F01(i));
    pk := APEX_APPLICATION.G_F02(v);
    c1 := APEX_APPLICATION.G_F03(v);
    c9 := APEX_APPLICATION.G_F04(v);
    insert into test_1 values ( pk );
    insert into test_1 values ( c1 );
    insert into test_1 values ( c2 );
    insert into test_1 values ( c9 );
    END LOOP;
    end;
    I expected to have value of field 2 , field 3 , filed 4 , of the checked row .. but it's working .
    PS: I want to thank everybody who help me until now !
    solo

  • Problem with WHEN-CHECKBOX-CHANGED and ON-POPULATE-DETAILS

    I have a detail block with a relationship set up to a second block. In my first block, if I cause an error but the next action I take is to press a checkbox on another record, my error will display and the raise form trigger failure is triggered but the checkbox changes it's value and the cursor is displayed on the record with the error. I didn't want the checkbox to change if an error occurred. I tracked this through the trace and saw the on-populate-details is fired between the error and the when-checkbox-changed trigger. I went through debug and saw because of the erorr, the system will do a 'return' back to the sending action. I beleive this return is causing the when-checkbox-changed to fire. I'm just guessing here. I tried a similar action on another form without a relationship set up. That would eliminate the on-populate-details trigger. When I did a similar error, I got exactly what I was looking for. I caused the error but pressed the checkbox on another record. The error displayed but the checkbox did not change and the cursor returned to the error record. I need the record to have this relationship. Consequently, I need the on-populate-details trigger. Can anyone think of a solution? I'm currently on Forms 6I. We are going to forms 10G in the next few months. But I really need a solution on my current set up. Thanks.

    The getNextDatabankRecord() call is at the beginning of my run code. I use one step just for this line code.
    Code :
    public void run() throws Exception {
              beginStep("CHARGEMENT DES DONNEES SUIVANTES");
                   info("Chargement des prochaines données...");
                   getDatabank("NouvellesIA").getNextDatabankRecord();
              endStep();
    Stop the user after this step and goto the finish section should not be a problem...
    If I use the "When out of records" option, does it jump directly to the finish section ?
    Thanks,
    Benoit.

  • Problem with custom checkbox in tx. IP02

    Hi experts,
    I added some new fields to IP02 in a new tab. One of this fields is a checkbox and I need to control whenever it is selected or not in order to enable/disable some other fields in the dynpro.
    I created a module "init_fields" in PBO where I control if the checkbox is 'X' or '' but if only goes to that module if I assign a function code 'ULTI' to the checkbox. And then I always get the same error "Requested function ULTI is not available here".
    Does anybody know where the problem is ??
    Regards,
    Marí

    Hi Madhu,
    It's a new tab and inside there are some new fields. The one I need to control whenever it is selected or not, is a checkbox (char1). The problem appears when the report control gets out off the subscreen because the function code 'ULTI' (created by me) doesnt' exist...

  • Problem with my checkbox

    hi.. i have a user form where i have a checkbox(uid 35) and a textbox(uid 37)...it is disabled initially
    if i check the checkbox then my texbox should be enabled if unchecked it should again be disabled....
    i have written this code in my item event..plz have look and tell me what is wrong with this code...this is not working and giving an error message saying that alisa name already exists..even after changing alias name many times...
    If (FormUID = "CQ_FA_MasterData") And ((pVal.ItemUID = "35") And _
         (pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK) And (pVal.BeforeAction = False)) Then
                    oForm.DataSources.UserDataSources.Add("checkbox1", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 2)
                    oitem = oForm.Items.Item("35")
                    ochk = oitem.Specific
                    ochk.DataBind.SetBound(True, , "checkbox1")
                    If ochk.Checked = True Then
                        MsgBox("Checked")
                        oForm.Items.Item("37").Enabled = True
                    Else
                        oForm.Items.Item("37").Enabled = False
                    End If
                End If

    Hi Shenaz,
    The following line need not be executed all the time when a  check box is clicked..... the data source has to be added only once... i suggest u witite that line of code and execute it in the form load.
    oForm.DataSources.UserDataSources.Add("checkbox1", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 2)
    Execute that line only in the form load.
    That errror is because of that line...
    Hope it helps,
    Vasu Natari.
    Edited by: vasu natari on Nov 13, 2009 1:24 PM

  • Problem with multiple checkbox

    Hello Experts,
    I have one issue related to multiple checkbox in my JSP.I have a table in JSP with 3 columns.Last column is checkbox.I want to get data for only those teams which are selected in JSP , but I am able to get value for only checkbox column (in my case 'select') .I want to get data for other column also(In my case it is 'Marks').Please tell me what should I do to get marks also for those teams which got selected.Many Thanx in advance.
    This is my JSP
            <html:form action="/AddFirstRoundWinner.do">
                    <table width="100%"
                           border="2" cellspacing="0" cellpadding="0">
                        <tr align="left">
                            <td>Team Name</td>
                            <td>Marks</td>
                            <td>select</td>
                        </tr>
                        <!-- iterate over the results of the query -->
                    <logic:iterate id="FirstroundresultForm" name="FirstRoundDetails">
                            <tr align="left">
                                <td>
                                    <bean:write name="FirstroundresultForm" property="team_name" />
                                </td>
                                <td>
                                    <input type="textbox" readonly="true" name="marks" value="<bean:write name="FirstroundresultForm"                property="first_round_total_marks" /> "/>
                               </td>
                                <td>
                                    <input type="checkbox" name="select_team" value="<bean:write name="FirstroundresultForm"
                                                                                                        property="team_id"/>"/>
                                </td>
                            </tr>
                        </logic:iterate>
                    </table><br><br>
                    <html:submit property="step"> <bean:message key="button.select"/> </html:submit>
            </html:form>  This is my code in action class
    // here I am fetching all the teams which were selected using checkbox
    String select_team[];
            select_team = request.getParameterValues("select_team");
            if (select_team != null) {
                for (int i = 0; i < select_team.length; i++) {
                    result_list.add(select_team);

    <input type = "text" ..../> <!-- and not textbox as in your code-->ram.

  • VC problems with a checkbox

    Hi everybody
    I have the following problem,  I've created a checkbox within a table,  but when I look at this checkbox time of execution something  very strange happens within the checkbox  when I select the Last checkbox one space to jump back  and placed in the penultimate record
    I can do not to return the penultimate record and the moment that
    select the checkbox stay in his position
    Thanks

    Hi Ivan,
    Can you please post a small screenshot (maybe a before and after images)?
    Regards.
    Omer.

  • Problem with Checkbox that disables/enables other components.

    Hi
    As I show in the title, I have problems with a checkbox that enables/disables another components (three exactly).
    I have done the follow:
    1.- Set property "AutoSubmit" true in the SelectOneChoice
    2.- Set "Disabled" property true or false depending if the SelectOneChoice is selected or not
    (#...selectBooleanCheckbox.value?false:true})
    3.- Set the Partial triggers to the SelectOneChoice in the three components.
    CASE 1: The SelectOneChoice is unmarked. The three components appears disabled and when I mark the SelectOneChoice, this components appears enabled. The thing works ;)
    CASE 2: The SelectOneChoice is marked. The three components appears enabled and when I unmark the SelectOneChoice, the components continue enabled. They don't disable until I press the submit button.
    how can i make that the components appears disabled when i unmark the checkbox?
    i try with de ChangeValueListener, but it only works where the SelectOneChoice changes from unmarked to marked.
    thanks!

    I think the problem is, when the value is null the checkbox return with the selected state, b'coz u r
    returning the checkbox (as it is). so pl'z try with below code (ADDED).
    public Component getTableCellRendererComponent(JTable table, Object value,
    boolean isSelected, boolean hasFocus,
    int row, int column){
    if(value != null){
    Boolean booleanValue = (Boolean)value;
    setSelected(booleanValue.booleanValue());
    else /// ADDED
    setSelected(false);/// ADDED
    return this;
    Nediaph.

  • Problems with inserted datagridview checkbox column

    I have a few problems with a checkbox column added to a datagridview. The datagridview is bound by a binding source whose datasource is a datatable. I also add in the code a checkbox column:
    private
    void InitializeDataGridView()
                dgvInvoices.ColumnHeadersDefaultCellStyle.Font =
    new Font("Arial", 10,
    FontStyle.Bold);
    DataGridViewCheckBoxColumn chkColumn =
    new DataGridViewCheckBoxColumn();
                chkColumn.FlatStyle =
    FlatStyle.Standard;
                dgvInvoices.Columns.Insert(0, chkColumn);
                dgvInvoices.DataSource = bs;
                cmbInvoicingCriteria.Text =
    "(All)";
    DataGridViewBinding.CreateColumn(dgvInvoices,
    "Date", "Date",
    DataGridViewContentAlignment.MiddleLeft);
    DataGridViewBinding.CreateColumn(dgvInvoices,
    "Invoice", "Invoice",
    DataGridViewContentAlignment.MiddleLeft);
    DataGridViewBinding.CreateColumn(dgvInvoices,
    "Customer", "Customer");
    DataGridViewBinding.CreateColumn(dgvInvoices,
    "Name", "Name");
    DataGridViewBinding.CreateColumn(dgvInvoices,
    "Count", "Count");
    DataGridViewBinding.CreateColumn(dgvInvoices,
    "Total", "Total");
    DataGridViewBinding.CreateColumn(dgvInvoices,
    "Driver", "Driver");
    DataGridViewBinding.CreateColumn(dgvInvoices,
    "Status", "Status");
    DataGridViewBinding.CreateColumn(dgvInvoices,
    "ARHID", "ARHID");
    DataGridViewBinding.CreateColumn(dgvInvoices,
    "AR", "AR");
                dgvInvoices.Columns["ARHID"].Visible =
    false;
                dgvInvoices.Columns["AR"].Visible =
    false;
    this.dgvInvoices.Columns[0].DefaultCellStyle.Font =
    new Font("Arial", 18,
    FontStyle.Bold);
    this.dgvInvoices.Columns["Date"].DefaultCellStyle.Font =
    new Font("Arial", 10,
    FontStyle.Bold);
    this.dgvInvoices.Columns[2].DefaultCellStyle.Font =
    new Font("Arial", 10,
    FontStyle.Bold);
    this.dgvInvoices.Columns["Customer"].DefaultCellStyle.Font =
    new Font("Arial", 10,
    FontStyle.Bold);
    this.dgvInvoices.Columns["Name"].DefaultCellStyle.Font =
    new Font("Arial", 10,
    FontStyle.Bold);
    this.dgvInvoices.Columns["Count"].DefaultCellStyle.Font =
    new Font("Arial", 10,
    FontStyle.Bold);
    foreach (DataGridViewColumn dc
    in dgvInvoices.Columns)
                    dc.ReadOnly =
    true;
    if (dc.HeaderText.ToLower() ==
    "count" || dc.HeaderText.ToLower() ==
    "name" || dc.Index == 0)
    this.dgvInvoices.Columns[dc.Index].AutoSizeMode =
    DataGridViewAutoSizeColumnMode.AllCellsExceptHeader;
    else
    this.dgvInvoices.Columns[dc.Index].AutoSizeMode =
    DataGridViewAutoSizeColumnMode.Fill;
                dgvInvoices.DefaultCellStyle.Alignment =
    DataGridViewContentAlignment.MiddleCenter;
                dgvInvoices.Columns[0].ReadOnly =
    false;
                dgvInvoices.Columns[0].Width = 25;
                dgvInvoices.Columns[0].SortMode =
    DataGridViewColumnSortMode.Automatic;
    The problems I have here are
    1. The first checkbox doesn't check off (it used to work when the width was 25 but then I added the code ontop to make the autosize mode of this columns to allcellscellsexcept header it stopped working. I need that though because if I don't make the autosizemode
    = all cells except header then when I make the form narrow the checkbox column disappears.) I was wondering why this is happening, and how to fix it.
    2. Also this column is not sortable. I added to my code  dgvInvoices.Columns[0].SortMode = DataGridViewColumnSortMode.Automatic;
    but it doesn't seem to work.
    3. Whenever I sort another column the checked off checkboxes lose their focus. I understand that can be a problem with a bound datagridview and one unbound column, but how can I fix it?
    Debra has a question

    I loaded the data for all the rows from a datatable on the form. The checkbox column is that connected to that bound data. it's just there and I need to be able to tell if each row was checked or not, and I need to be able to sort the checkbox column. I
    also need to be able to sort all the other columns without losing the check. The only thing commenting out the foreach would help would be that the first checkbox can be checked, but I want it to be autosizemode = allcellsexceptheader and I want to understand
    why it's not working like this. Would you have any ideas? Below is how I bound the datagridview for all columns except the checkbox column.
            private
    void LoadDataGridView()
    DataGridViewBinding.BindWithData(false, dsInvoicingFilter.Tables[0], dgvInvoices, lblEntryCount, bs);
    if (dsInvoicingFilter.Tables[0].Rows.Count == 0)
                    btnDelete.Enabled =
    false;
                    btnOpenInvoice.Enabled =
    false;
                    btnPrint.Enabled =
    false;
                    btnSaveAsInvoice.Enabled =
    false;
                    btnVoid.Enabled =
    false;
                    btnShip.Enabled =
    false;
    else
                    btnDelete.Enabled =
    true;
                    btnOpenInvoice.Enabled =
    true;
                    btnPrint.Enabled =
    true;
                    btnSaveAsInvoice.Enabled =
    true;
                    btnVoid.Enabled =
    true;
                    btnShip.Enabled =
    true;
                    bs.Position = 0;
                dgvInvoices.Columns[0].Width = 25;
                txtSearch.Text =
    public static
    void BindWithData(bool autoGenerateColumns,
    DataTable datatable,
    DataGridView datagridview, Label lblDGVEntryCount,
    BindingSource bs)
                datagridview.AutoGenerateColumns = autoGenerateColumns;
                bs.DataSource = datatable;
                datagridview.DataSource = bs;
                DataGridViewEntryCount(datagridview, lblDGVEntryCount);
    //ExpandColumns(datagridview);//to do it slows it down. Why can't the dgv remember to do it from when initialized it?
    Debra has a question

  • Problem with Jtree and a checkbox

    Hello,
    I have a problem with my tree implementation.
    I create a tree and i want to add a checkbox in each node.
    this is my code :
    DefaultMutableTreeNode root;
    root = new DefaultMutableTreeNode(new JCheckBox());
    DefaultTreeModel model = new DefaultTreeModel(root);
    _tree = new JTree(model);
    eastpane.add(tree);
    THe problem is that my checkbox doesn't appear. And a message appears
    instead of my checkbox.
    But my tree appears.
    Can anyone help me .
    Thanks

    You can provide a cell renderer to the JTree to paint the checkBox.
    The following code checks or unchecks the box with each click also:
    _tree.setCellRenderer(new DefaultTreeCellRenderer()
      private JCheckBox checkBox = null;
      public Component getTreeCellRendererComponent(JTree tree,
                                                    Object value,
                                                    boolean selected,
                                                    boolean expanded,
                                                    boolean leaf,
                                                    int row,
                                                    boolean hasFocus)
        // Each node will be drawn as a check box
        if (checkBox == null)
          checkBox  = new JCheckBox();
          checkBox .setBackground(tree.getBackground());
        DefaultMutableTreeNode node = (DefaultMutableTreeNode)value;
        checkBox.setText(node.getUserObject().toString());
        checkBox.setSelected(selected);
        return checkBox;
    });

  • Problem with checkboxes in IR report mainly for update process please help

    Hello,
    Can anyone please help me out with this issue.
    I have an interactive report with 3 checkbox item for a single column named status. Based on the value of the column status the check box should be checked. For example:
    DECODE(status,'DEV',1,0) as DEV,
    DECODE(status,'RVW',1,0) as RVW,
    DECODE(status,'PRD',1,0) as PROD,
    So for this I have used the apex_item.checkbox item. Below is my report query
    SELECT APEX_ITEM.HIDDEN(30,0,'','f30_' || ROWNUM)
         || APEX_ITEM.HIDDEN(31,0,'','f31_' || ROWNUM)
            || APEX_ITEM.HIDDEN(01,ROWNUM,'','f01_' || ROWNUM)
         || APEX_ITEM.HIDDEN(04,CHF_DATASTORE||CHF_SCHEMA||CHF_TABLE||CHF_COLUMN,'','f04_' || ROWNUM)
            || APEX_ITEM.HIDDEN(05,CHF_STATUS,'','f05_' || ROWNUM)
         || APEX_ITEM.HIDDEN(06,CHF_STATUS,'','f06_' || ROWNUM)
            || APEX_ITEM.HIDDEN(08,CHF_STATUS,'','f08_' || ROWNUM)
         || APEX_ITEM.HIDDEN(09,CHF_STATUS,'','f09_' || ROWNUM)
            || APEX_ITEM.HIDDEN(11,CHF_STATUS,'','f11_' || ROWNUM)
         || APEX_ITEM.HIDDEN(12,CHF_STATUS,'','f12_' || ROWNUM)
            || APEX_ITEM.CHECKBOX (32,ROWNUM,'onClick="javascript:ToggleValue(this,' || ROWNUM || ','||'''f30'');"'
         ,DECODE (0,1, ROWNUM),':','f32_' || ROWNUM) DELETE
            ,CHF_COLUMN
            ,CHF_STATUS
            ,APEX_ITEM.CHECKBOX (07,ROWNUM,'onClick="javascript:ToggleValue(this,' || ROWNUM || ','||'''f05'');"',DECODE (CHF_STATUS,'DEV',ROWNUM),':','f07_' || ROWNUM) 
              DEV_EDIT
         ,APEX_ITEM.CHECKBOX (10,ROWNUM,'onClick="javascript:ToggleValue(this,' || ROWNUM || ','||'''f08'');"',DECODE (CHF_STATUS,'RVW',ROWNUM),':','f10_' || ROWNUM) 
              RVW_EDIT
            ,APEX_ITEM.CHECKBOX (13,ROWNUM,'onClick="javascript:ToggleValue(this,' || ROWNUM || ','||'''f11'');"',DECODE (CHF_STATUS,'PRD',ROWNUM),':','f13_' || ROWNUM) 
              PRD_EDIT
            FROM CHF_COLUMN WHERE
    CHF_DATASTORE  = 'DOMAIN_DEV' AND
    CHF_SCHEMA     = 'SCHEMA_DEV' AND
    CHF_TABLE      = 'EMPLOYEEE'
    ORDER BY 1;  And I have a button for the update process so that the users can check the checkboxes option for the status column either 'DEV', 'RVW', 'PRD'. The status of the column can be in either of these states or can be null.
    I have a update process, its having some problem - I don't understand whats causing the problem. Below is the error message which I encountered when trying to update.
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    My Update process.
    DECLARE
    l_cnt BINARY_INTEGER := 0;
    l_stepid number := 10;
    l_date DATE := SYSDATE;
    BEGIN
    FOR i IN 1 .. apex_application.g_f01.COUNT
    LOOP
    IF APEX_APPLICATION.G_f05 (i)  = 1 THEN
          UPDATE  CHF_COLUMN
               SET      CHF_STATUS = 'DEV'
             WHERE CHF_DATASTORE||CHF_SCHEMA||CHF_TABLE||CHF_COLUMN = APEX_APPLICATION.G_f04 (i)
              l_cnt := l_cnt + SQL%ROWCOUNT;
    apex_application.g_print_success_message := apex_application.g_print_success_message ||
    'Successfully updated'||l_cnt ||'<br><br>';
    END IF;
    IF APEX_APPLICATION.G_f08 (i)  = 1 THEN
          UPDATE  CHF_COLUMN
               SET      CHF_STATUS = 'RVW'
             WHERE CHF_DATASTORE||CHF_SCHEMA||CHF_TABLE||CHF_COLUMN = APEX_APPLICATION.G_f04 (i)
              l_cnt := l_cnt + SQL%ROWCOUNT;
    apex_application.g_print_success_message := apex_application.g_print_success_message ||
    'Successfully updated'||l_cnt ||'<br><br>';
    END IF;
    IF APEX_APPLICATION.G_f11 (i)  = 1 THEN
          UPDATE  CHF_COLUMN
               SET      CHF_STATUS = 'PRD'
             WHERE CHF_DATASTORE||CHF_SCHEMA||CHF_TABLE||CHF_COLUMN = APEX_APPLICATION.G_f04 (i)
              l_cnt := l_cnt + SQL%ROWCOUNT;
    apex_application.g_print_success_message := apex_application.g_print_success_message ||
    'Successfully updated'||l_cnt ||'<br><br>';
    END IF;
    END LOOP;
    COMMIT;
    END;If you can please have a look at the app, you can get a better understanding of my problem.
    Workspace : orton_workspace
    username : [email protected]
    password : sanadear
    Application No: 15089 SAMPLE_CHECKBOX_APP
    Thanks,
    Orton
    Edited by: orton607 on Aug 4, 2010 9:28 AM

    I could be wrong but maybe change the hidden items to be like:
    APEX_ITEM.HIDDEN(05,DECODE(CHF_STATUS,'DEV',1,0),'','f05_' || ROWNUM)
    APEX_ITEM.HIDDEN(08,DECODE(CHF_STATUS,'RVW',1,0),,'','f08_' || ROWNUM)
    APEX_ITEM.HIDDEN(11,DECODE(CHF_STATUS,'PRD',1,0),,'','f11_' || ROWNUM)so that the values are 0/1?
    Also, you have
    DECODE (CHF_STATUS,'DEV',ROWNUM)instead of
    DECODE (CHF_STATUS,'DEV',0,1)in the checkboxes, as I would expect.
    I'm also not sure why you need to duplicate the checkboxes (f07,f10,f13) as hidden items (f05, f08, f11) if they are both 0/1 values.

  • Problem with checkbox value and app.settings.getSetting()

    Hello everyone.
    I`ve got a problem with getting saved settings for checkbox.
    Saved settings doesn`t apply on checkbox value.
    It`s strange, but it always "true".
    So here piece of code:
    checkMe = 11;    //any value for the first time running
    if (app.settings.haveSetting("savea", "chck")) {                           
                          checkMe = app.settings.getSetting("savea", "chck");  // get saved value, else 11
                          alert("checkMe = "+checkMe)
                        if(checkMe == 11){
                            checkMe= false;   //if there is no saved settings, checkbox value will be false/ unchecked
                            alert("You run this script first time, so manual value will be 'false'")
                            }else{
                                checkMe = app.settings.getSetting("savea", "chck");     // if saved settings exist, get true or false
         alert("Yes, checkMe will = "+checkMe)       
    win.checkPanel.chkOne.value = checkMe;  /// checkbox value will equal saved checkMe
    var fff = win.checkPanel.chkOne.value;  // string for alert
    alert("aha! but checkbox value is  = " +fff+ "\n Why so?")     // here we`ve got always "true"
    win.checkPanel.chkOne.onClick  = function () {
        var path11 = win.checkPanel.chkOne.value;  //  checkbox value to variable
        app.settings.saveSetting("savea", "chck", path11);  //saving checkbox value
        alert("Saved this value - " + app.settings.getSetting("savea", "chck"))
    win.checkPanel.chkOne.value is always true.
    Can someone exmplain why and how to get rid of this static value?
    P.S. just in case, here is full code:
    function mainFun()
        this.windowRef = null;
    mainFun.prototype.run = function()
        /*----- UI -----*/
              var retval = true;
              var win = new Window("palette", "Check option", [150, 150, 460, 455]);
              this.windowRef = win;
              win.checkPanel = win.add("panel", [25, 150, 285, 265], "Checkbox");
              win.checkPanel.chkOne = win.checkPanel.add("checkbox", [10, 15, 125, 35], "Checkbox One");
              //win.checkPanel.chkTxtOne = win.checkPanel.add('edittext', [140, 15, 230, 35], '');
         win.quitBtn = win.add("button", [110,275,200,295], "Close");
    checkMe = 11;    //any value for the first time running
    if (app.settings.haveSetting("savea", "chck")) {                           
                          checkMe = app.settings.getSetting("savea", "chck");  // get saved value, else 11
                          alert("checkMe = "+checkMe)
                        if(checkMe == 11){
                            checkMe= false;   //if there is no saved settings, checkbox value will be false/ unchecked
                            alert("You run this script first time, so manual value will be 'false'")
                            }else{
                                checkMe = app.settings.getSetting("savea", "chck");     // if saved settings exist, get true or false
         alert("Yes, checkMe will = "+checkMe)       
    win.checkPanel.chkOne.value = checkMe;  /// checkbox value will equal saved checkMe
    var fff = win.checkPanel.chkOne.value;  // string for alert
    alert("aha! but checkbox value is  = " +fff+ "\n Why so?")     // here we`ve got always "true"
    win.checkPanel.chkOne.onClick  = function () {
        var path11 = win.checkPanel.chkOne.value;  //  checkbox value to variable
        app.settings.saveSetting("savea", "chck", path11);  //saving checkbox value
        alert("Saved this value - " + app.settings.getSetting("savea", "chck"))
              win.quitBtn.onClick = function() {
                  win.close();
        win.center();
              win.show();
              return retval;
    if(typeof(mainFun_unitTest) == "undefined") {
        new mainFun().run();

    Played around with different values, combinations...
    Doesn`t work too:
    checkMe = 111;    //any value for the first time running
    if (app.settings.haveSetting("333", "check")) {                           
                          checkMe = app.settings.getSetting("333", "check");
    alert(checkMe);
                    if(checkMe == 111){
                             win.checkPanel.chkOne.value= false;
                            }else{
                                if (checkMe != false){
                                win.checkPanel.chkOne.value= true;
                                }else{
                                win.checkPanel.chkOne.value= false;
    win.checkPanel.chkOne.onClick  = function () {
        var path11 = win.checkPanel.chkOne.value;
        var path12 = path11.toString();
        app.settings.saveSetting("333", "check", path12);
        alert("Saved value - " + app.settings.getSetting("333", "check"))

Maybe you are looking for

  • How to pass wild card '%'  value from the parameter to the query

    Hello everyone, I have following 2 problems 1) I was trying to do some thing like below select * from emp where ename like 'J%' for this i have used the following code select * from emp where ename like :P_ENAME and before running the query in the pa

  • HT202879 How can I open a file made with old version of Pages (before 09)?

    I need to open a file made with old version of Pages (before 09).  How can I do this?  I only have iworks Pages free with Mac Book Pro.

  • Project won't save

    Has anyone had experience with projects not wanting to save?  I mentioned the other day that I installed Windows 7 64-bit on a second partition, so now I can dual-boot with XP 32-bit or Windows 7.  7 has been working great so far except for this one

  • Multiple Printers on Airport Extreme POE

    I have 2 Epson 1280 printers connected to an Airport Extreme POE through a USB hub. The Airport only sees one printer. I renamed it "Right" and unplugged it. The other printer Shows and I renamed it "Left". Which ever printer is closer to the airport

  • Having issues with Toshiba C55-B5201 and Netgear router

    Hello all I just bought a Netgear Nighthawk AC1900 WiFi Router model number R7000. I set it up and I am only able to connect at 72.2MBPS. Im confused I had an old Netgear WNDR3400 router and I was connected at 150MBPS. How come I am connected at a sl