Using JTree with checkbox

Hi All,
I have a link for implementation of JTree with Checkbox
http://www.jroller.com/santhosh/date/20050610 He has implemented exactly what i want but i am unable to understand the use of all the classes. Really difficult to understand
So what i did was create a few objects with Checkbox class from AWT package and then added then to JTree using the DefaultMutableTreeStruture i got the tree working but not able to get the Checkboxex
Can any one explain me how i can implement this senario
I am trying different search creterias but unable to find a right detailed explanation to my query
Rgds
Aditya

where did you find DefaultMutableTreeStructure?

Similar Messages

  • Displaying a jtree with checkboxes and enabling some default checkboxes

    I have created a jtree displaying a list of nodes hierarchically ,and created a checkbox for each node as well.
    My problem is having created the jtree with checkboxes i need to have some of the nodes in the hierarchy checked by default on first launch of the gui.To do this i read a list of treepaths from a file and would want to traverse the tree and enable the node after finding it,which is what i am having issue with.
    Your solution would be appreciated as i am a newbie and having got this far, feel like i need some back up :)
    Thanks & Regards
    Shashi

    I have created a jtree displaying a list of nodes hierarchically ,and created a checkbox for each node as well.
    My problem is having created the jtree with checkboxes i need to have some of the nodes in the hierarchy checked by default on first launch of the gui.To do this i read a list of treepaths from a file and would want to traverse the tree and enable the node after finding it,which is what i am having issue with.
    Your solution would be appreciated as i am a newbie and having got this far, feel like i need some back up :)
    Thanks & Regards
    Shashi

  • JTREE with CheckBox Option

    Hi All,
    Can somebody help in how to add a CheckBox in JTREE node concept.
    Please let me if sites are there for the same.
    Rgds
    Sudhama

    * The CheckedTree is an extension to JTree with the additional functioanlity that
    * the nodes can be checked or unchecked using a checkbox.
    * <p>
    * Each node in the tree contains a checkbox.
    * @author anoopkc
    public class CheckedTree extends JTree {
        private CustomRenderer renderer = null;
        private List<TreePath> selectedNodes = null;
         * Initialises the checked tree
        public CheckedTree() {
            this.selectedNodes = new ArrayList<TreePath>();
            this.setTreeProperties();
         * Sets the properties of the tree
        private void setTreeProperties() {
            this.renderer = new CustomRenderer(this);
            super.setCellRenderer(renderer);
            super.getSelectionModel().setSelectionMode(4);
            super.addMouseListener(new MouseAdapter() {
                 * Handles the click on the tree nodes.
                 * When mouse is clicked on a node, the node is added in the
                 * list of selected rows in the tree.
                 * @param e
                public void mousePressed(MouseEvent e) {
                    TreePath path = getPathForLocation(e.getX(), e.getY());
                    if (path != null) {
                        addSelectedNode(path);
                        updateUI();
         * This method adds the selected path in to the list of selected nodes.
         * If the path is already exists, it is removed from the list.
         * @param path
        private void addSelectedNode(TreePath path) {
            if (selectedNodes.indexOf(path) == -1) {
                selectedNodes.add(path);
            } else {
                selectedNodes.remove(path);
         * This method checks whether a given tree path is selected or not
         * @param path
         * @return true if selected
        public boolean isSelected(TreePath path) {
            if (this.selectedNodes.indexOf(path) == -1) {
                return false;
            return true;
         * Returns the list of selected columns
         * @return list of selected columns
        public List<TreePath> getSeelctedNodes() {
            return selectedNodes;
    * This class creates the renderer for the checked tree
    * @author anoopkc
    class CustomRenderer extends JPanel implements TreeCellRenderer {
        private JLabel label = null;
        private JCheckBox checkBox = null;
        private CheckedTree tree = null;
         * Initialises the renderer
         * @param checkedTree
        public CustomRenderer(CheckedTree checkedTree) {
            this.tree = checkedTree;
            this.prepareComponent();
         * Prepares the component
        private void prepareComponent() {
            creatComponent();
            this.packComponents();
         * Creates the component
        private void creatComponent() {
            this.label = new JLabel();
            this.label.setPreferredSize(new Dimension(100, 21));
            this.label.setForeground(UIManager.getColor("Tree.textForeground"));
            this.label.setOpaque(true);
            this.checkBox = new JCheckBox();
            this.checkBox.setBackground(UIManager.getColor("Tree.textBackground"));
         * Packs the components
        private void packComponents() {
            setLayout(new GridBagLayout());
            setBackground(Color.WHITE);
            GridBagConstraints gbcCheckBox = new GridBagConstraints();
            gbcCheckBox.gridx = 0;
            GridBagConstraints gbcLabel = new GridBagConstraints();
            gbcLabel.gridx = 0;
            gbcLabel.gridx = 1;
            gbcLabel.weightx = 1;
            gbcLabel.fill = GridBagConstraints.HORIZONTAL;
            add(this.checkBox, gbcCheckBox);
            add(this.label, gbcLabel);
         * Returns the tree cell renderer component
         * @param tree
         * @param value
         * @param selected
         * @param expanded
         * @param leaf
         * @param row
         * @param hasFocus
         * @return component
        public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) {
            TreePath path = tree.getPathForRow(row);
            label.setText(value.toString());
            label.setIcon(new ImageIcon("icons/smiley.gif"));
            if (selected) {
                label.setBackground(new Color(220, 220, 200));
            } else {
                label.setBackground(Color.WHITE);
            if (this.tree.isSelected(path)) {
                this.checkBox.setSelected(true);
            } else {
                checkBox.setSelected(false);
            return this;
    }

  • Using JTree with keyboard

    I have split a window in two. At the left I have the JTree component and at the right it should appear a description of the selected item in the jtree. I have done this with the mouse (when I click it appears the description of the clicked item). How can I cause the same effect when a go through the jtree with the arrows?

    You could try TreeSelectionListener or something.
    Denis Krukovsky
    http://dotuseful.sourceforge.net/

  • Dynamic JTree with checkbox

    could anyone tell me how to display the c: drive in Jtree view and add check box for particular folder files

    You might want to take a look here and here as a starting point.

  • How to find control,  jListBox with checkBoxs

    Hello Everyone
    Using Jclient/Swing application i want to use listbox with
    checkBoxs.
    Suppose listbox display list of items along with
    these checkboxs.And these checkbox varies according the
    items aviable in listbox.
    whether this type control available in jDeveloper or not.

    Thanks for reply !
    i found swing code for jListBox containing checkboxs.
    So how to use this class in Jdeveloper for using as
    a control.
    Please tell me suggetion?
    public class CheckBoxList extends JFrame
         protected JList m_list;
         //protected JLabel m_total;
         public CheckBoxList()
              super("Swing List [Check boxes]");
              setSize(360, 340);
              getContentPane().setLayout(new FlowLayout());
              InstallData[] options = {
              new InstallData("Program executable", 118),
              new InstallData("Help files", 52),
              new InstallData("Tools and converters", 83),
              new InstallData("Source code", 133),
              new InstallData("Project",147),
    new InstallData("Search",188),
    new InstallData("Edit",189),
    new InstallData("Girdher",3445)
              m_list = new JList(options);
              CheckListCellRenderer renderer = new CheckListCellRenderer();
              m_list.setCellRenderer(renderer);
              m_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
              CheckListener lst = new CheckListener(this);
              m_list.addMouseListener(lst);
              m_list.addKeyListener(lst);
              JScrollPane ps = new JScrollPane();
              ps.getViewport().add(m_list);
    //          m_total = new JLabel("Space required: 0K");
              JPanel p = new JPanel();
              p.setLayout(new BorderLayout());
              p.add(ps, BorderLayout.CENTER);
         //p.add(m_total, BorderLayout.SOUTH);
              p.setBorder(new TitledBorder(new EtchedBorder(),
                   "Please select options:") );
              getContentPane().add(p);
              WindowListener wndCloser = new WindowAdapter()
                   public void windowClosing(WindowEvent e)
                        System.exit(0);
              addWindowListener(wndCloser);
              setVisible(true);
         //     recalcTotal();
    /*public void recalcTotal()
              ListModel model = m_list.getModel();
              int total = 0;
              for (int k=0; k < model.getSize(); k++)
                   InstallData data = (InstallData)model.getElementAt(k);
                   if (data.isSelected())
                        total += data.getSize();
              m_total.setText("Space required: "+total+"K");
         public static void main(String argv[])
              new CheckBoxList();
    class CheckListCellRenderer extends JCheckBox implements ListCellRenderer
         protected static Border m_noFocusBorder =
              new EmptyBorder(1, 1, 1, 1);
         public CheckListCellRenderer()
         super();
         setOpaque(true);
         setBorder(m_noFocusBorder);
         public Component getListCellRendererComponent(JList list,
              Object value, int index, boolean isSelected, boolean cellHasFocus)
              setText(value.toString());
              setBackground(isSelected ? list.getSelectionBackground() :
              list.getBackground());
              setForeground(isSelected ? list.getSelectionForeground() :
              list.getForeground());
              InstallData data = (InstallData)value;
              setSelected(data.isSelected());
              setFont(list.getFont());
              setBorder((cellHasFocus) ?
                   UIManager.getBorder("List.focusCellHighlightBorder")
                   : m_noFocusBorder);
              return this;
    class CheckListener implements MouseListener, KeyListener
         protected CheckBoxList m_parent;
         protected JList m_list;
         public CheckListener(CheckBoxList parent)
              m_parent = parent;
              m_list = parent.m_list;
         public void mouseClicked(MouseEvent e)
              if (e.getX() < 20)
                   doCheck();
         public void mousePressed(MouseEvent e) {}
         public void mouseReleased(MouseEvent e) {}
         public void mouseEntered(MouseEvent e) {}
         public void mouseExited(MouseEvent e) {}
         public void keyPressed(KeyEvent e)
              if (e.getKeyChar() == ' ')
                   doCheck();
         public void keyTyped(KeyEvent e) {}
         public void keyReleased(KeyEvent e) {}
         protected void doCheck()
              int index = m_list.getSelectedIndex();
              if (index < 0)
                   return;
              InstallData data = (InstallData)m_list.getModel().
                   getElementAt(index);
                   data.invertSelected();
                   m_list.repaint();
              //     m_parent.recalcTotal();
    class InstallData
    protected String m_name;
    protected int m_size;
    protected boolean m_selected;
    public InstallData(String name, int size)
         m_name = name;
         m_size = size;
         m_selected = false;
    public String getName() { return m_name; }
    public int getSize() { return m_size; }
    public void setSelected(boolean selected) { m_selected = selected;}
    public void invertSelected() { m_selected = !m_selected; }
    public boolean isSelected() { return m_selected; }
    public String toString() { return m_name+" ("+m_size+" K)"; }

  • Help! third time ask the question: how to use JTree?

    i want to use JTree with nicer style, that is:
    "line starts at root and has lines ..." (C++ word)
    i downloded all samples but i can't find any.
    if u did it before or know where to download the examples which have this style of JTree, please let me know.
    thank u.

    Are you looking for a tree like the one you find in the Windows Explorer's Left Side? Can you describe more on what you want. Did you visit the Java Tutorial? They have some material in the Swings about Trees.

  • How can create a JTree with cellRender is checkbox realized multiple selec

    How can create a JTree with cellRender is checkbox realized multiple selection function.thanks for every
    one's help.

    Hi,
    1. Create a value node in your context name Table and set its cardinality to 0:n
    2. Create 2 value attributes within the Table node name value1 and value2
    3. Goto Outline view> Right click on TransparentUIContainer>Apply Template> Select Table>mark the node Table and it's attributes.
    you have created a table and binded its value to context
    Table UI properties
    4.Set Selection Mode to Multi
    5.Set Visible Row Count to 5
    6.ScrollableColCount to 5
    In your implemetaion, you can add values to table as follow:
    IPrivate<viewname>.ITableElement ele = wdContext.nodeTable().createTableElement();
    ele.setValue1(<value>);
    ele.setValue2(<value>);
    wdContext.nodeTable().addElement(ele);
    The above code will allow you to add elements to your table node.
    Regards,
    Murtuza

  • Selecting multiple rows using column header with checkbox in it.

    Dear All.,
    I am trying to select multiple rows with checkbox in column header but it doesnot works...
    Following is my codel
    <af:table value="#{bindings.xx.collectionModel}"
                          var="row"
                          rows="#{bindings.xx.rangeSize}"
                          emptyText="#{bindings.xx.viewable ? 'No data to display.' : 'Access Denied.'}"
                          fetchSize="#{bindings.xx.rangeSize}"
                          rowBandingInterval="1"
                          filterModel="#{bindings.xx.queryDescriptor}"
                          queryListener="#{bindings.xx.processQuery}"
                          varStatus="vs" partialTriggers="sbcSelectAll sbcChkFlag"
                          selectedRowKeys="#{bindings.xx.collectionModel.selectedRow}"
                          selectionListener="#{bindings.xx.collectionModel.makeCurrent}"
                          rowSelection="none" id="tCdMast" width="400"
                          columnStretching="column:c4" inlineStyle="height:200px;">
                  <af:column sortProperty="ChkFlag" filterable="true"
                             sortable="true"
                             headerText="#{bindings.xx.hints.ChkFlag.label}"
                             id="c2" width="55"
                             inlineStyle="#{row.ChkFlag ? 'background-color:#9CACC9;' : ''}">
                    <af:selectBooleanCheckbox simple="true" value="#{row.ChkFlag}"
                                              selected="#{row.ChkFlag}" id="sbcChkFlag"
                                              autoSubmit="true" immediate="true"/>
                    <f:facet name="header">
                      <af:selectBooleanCheckbox simple="true"
                                                autoSubmit="true"
                                                valueChangeListener="#{xxBean.onTableChkAllCheckChanged}"
                                                id="sbcSelectAll"/>
                    </f:facet>
                  </af:column>
    </af:table>
    Managed Bean
        public void onTableChkAllCheckChanged(ValueChangeEvent valueChangeEvent) {
            Boolean newValue =
                Boolean.valueOf(u.nvlString(valueChangeEvent.getNewValue(),
                                            "false"));
            Boolean oldValue =
                Boolean.valueOf(u.nvlString(valueChangeEvent.getOldValue(),
                                            "false"));
            if (newValue.equals(oldValue))
                return;
            int rowIndex=0;
            ViewObject vo = u.findIterator("xxIterator").getViewObject();
            vo.reset();
            while(vo.hasNext()){
              Row row;
              if(rowIndex==0)
                  row=vo.first();
              else
                  row=vo.next();
                 row.setAttribute("ChkFlag", newValue.booleanValue());
              rowIndex=1;
            u.addPartialTargets(tableDocuments);
        }Please help!!.
    Thanks & Regards,
    Santosh.
    jdeve 11.1.1.4.0

    Can you check this sample in the blog post?
    http://sameh-nassar.blogspot.com/2009/12/use-checkbox-for-selecting-multiple.html
    Thanks,
    Navaneeth

  • TS4363 I have upgraded to Mountain Lion 10.8.2 with Mail 6.2 and the "Use Autodiscovery Service" checkbox can't be found. Any ideas?

    I have upgraded to Mountain Lion 10.8.2 with Mail 6.2 and the "Use Autodiscovery Service" checkbox can't be found in Preferences. Any ideas?
    Cannot connect to Hover mail server unless I login to my webmail and then the messages magically load in Mail and then it goes offline again.

    Let it go... these DL's take forever, depending on the spped of your connection and the traffic on the servers.
    If by morning it is still sitting there restart and the DL should pick up from where it left off.

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

  • Report with Checkbox

    I am trying to follow the example shown at the below link but it is not working. I am modifying some of the code since I am using version 1.6. Any ideas as to what I may be doing wrong. The checkbox appears and I can select and deselect items but I cannot get P6_HOLDER to hold any of the values of the selected items. Thanks!
    http://apex-smb.blogspot.com/2009/01/apex-report-with-checkboxes-advanced.html
    First I created a page item called P6_HOLDER.
    Next I created a report region (sequence 40) with the below code.
    select htmldb_item.checkbox (1, dev_obj_id, 'onchange="spCheckChange(this);"',
    :P6_HOLDER, ':') checkbox, dev_id, dev_obj_desc from edm_dev_obj where
    dev_id = :P6_TEMP_DEV_ID
    **I then created a html region (sequence 1) with the below code**
    <SCRIPT src="http://www.google.com/jsapi"></SCRIPT>
    <SCRIPT>
    // Load jQuery
    google.load("jquery", "1.2.6", {uncompressed:true});
    function spCheckChange(pThis){
    var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=CHECKBOX_CHANGE',$v('pFlowStepId'));
    get.addParam('f01',pThis.value); //Value that was checked
    get.addParam('f02',pThis.checked ? 'Y':'N'); // Checked Flag
    gReturn = get.get();
    $f('checkListDisp').innerHTML=gReturn;
    </SCRIPT>
    CHECKBOX List:
    <DIV id=checkListDisp>&P6_HOLDER.</DIV>
    I then created an application process on Demand called CHECKBOX_CHANGE with the below code
    DECLARE
    v_item_val NUMBER := htmldb_application.g_f01;
    v_checked_flag VARCHAR2 (1) := htmldb_application.g_f02;
    BEGIN
    IF v_checked_flag = 'Y' THEN
    -- Add to the list
    IF :P6_HOLDER IS NULL THEN
    :P6_HOLDER := ':' || v_item_val || ':';
    ELSE
    :P6_HOLDER := :P6_HOLDER || v_item_val || ':';
    END IF;
    ELSE
    -- Remove from the list
    :P6_HOLDER := REPLACE (:P6_HOLDER, ':' || v_item_val || ':', ':');
    END IF;
    -- Just for testing
    HTP.p (:P6_HOLDER);
    END;

    Hi
    Create a page level validation (fucntion returning boolean) and write code similar to following
    DECLARE
    v_count NUMBER := 0;
    BEGIN
    FOR i IN 1..APEX_APPLICATION.G_F01.COUNT LOOP
    IF APEX_APPLICATION.G_F01(i) IS NOT NULL THEN
    v_count := v_count + 1;
    END IF;
    END LOOP;
    IF v_count = 0 THEN
    RETURN TRUE;
    ELSE
    RETURN FALSE;
    END IF;
    END;I take it your report query is similar to following
    select apex_item.checkbox(1,"PK_CLMN") Tick, col2, col3 FROM tbl_nameCheers,
    Hari

  • Browser specific problem with checkbox

    Hi,
    From my parent window am selecting one checkbox entry then i click on submit, i get one popup window when that closes selcted item get added into DB. but the next item in the list get selected in mozilla firefox, it must be unchecked,this is not incase of IE. am using firefox 2.0.1..
    please help me as soon as possible.
    thank u..

    I never did get any repose to this problem I raised last year.
    However, it's just been raised again by a customer and one of the developers who can't access the info he needs on our product.
    When launching an individual page of the help either as context-sensitive help or just directly by launching that .html file, any popup links do not work in Mozilla Firefox or Google Chrome. This applies to both auto-sizing popups and custom-sized popups.
    Anyone have any ideas on how I can get around this? 
    (Webhelp output is produced using RH8 with all patches installed.)
    Thanks for any ideas.
    Regards,
    Feebeegeebee

  • Problem with checkbox and drop down menu

    I am using DW8 with PHP/MySQL.
    I made a insertion form and a couple of the fields are
    checkboxes and another is a drop down menu. Everything works fine,
    however, when I create an update form and the recordset calls the
    data it doesn't retain its values on those items.
    For example, if I checked a box when inserting the record and
    then call the data up for the update form, the box is not checked,
    making the user believe it was never checked in the first place.
    The same thing goes for the drop down menu. If I have 3
    options in the menu and someone selects the third one, when the
    update form is used it defaults to the first option automatically
    instead of actually calling up the original value selected.

    The fact that two scripts do not work together does not mean
    there is a bug in the RH script. It is simply that they were not
    designed by their respective developers to work together. This
    happens with multiple scripts in any html file.
    Try creating a new project and then importing just this topic
    into it. Does it still have the problem?

  • Problem with checkbox group in row popin of table.

    In table row popin I have kept Check Box Group.I have mapped  the texts property of checkbox group to the attribute which is under the subnode of the table.the subnode properties singleton=false,selectioncardinality=0-n,and cardinality=0-n.
    if there are 'n' number of records in the table.each record will have its own row popin and in the row popin there is check box group.
    the check box group in the row popin  belongs to that perticular row.
    but the checkboxegroup values in row popins of all the  rows are getting changed to the row which is lead selected.
    The same scenario  (table in the row popin is showing the values corresponding to its perticular row and all the table values in popin are not getting changed to the one lead selected in the main table)is working fine with the table in place of  checkbox group in row popin with datasource property of table  binded to the subnode
    I cant trace out the problem with checkbox group in place of table.
    Please help me in this regard.I have to place check box group in place of table in row popin.
    Thanks and Regards
        Kiran Kumar K

    I have done the same thing successfully with normal check box ui element. Try using check box in your tabel cell editor instead of check box group.

Maybe you are looking for

  • How can I easily delete duplicate files in old Time Machine archives?

    I have multiple older Time Machine archives from different Macs that I have been going through manually and picking files out and copying them to another drive file by file. I'm running into massive quantities of duplicate files and the biggest probl

  • How can i associate the iPad with my account?

    Hi, i got a new ipad 2, first thing ive synchronized it with my iTunes, but i cant download new tv episodes from on the ipad 2. when i downloaded a new app on it ive receive an email saying that the app was downloaded on a computer or device that had

  • Best practice for photo format: RAW+PSD+JPEG?

    What is the best practice in maintaining format of files while editing? I shoot in RAW and import into PS CS5. After editing, it allows me to save as various formats, including PSD and JPEG. PS says that if you want to re-edit the file, you should sa

  • Lightroom not showing edits made in ACR

    I edited photos in Adobe Camera Raw from Bridge, but when I look at the same files in Lightroom, they do not appear to include the edits.  I did verify that xmp files were created when I edited the files in ACR.  Why is Lightroom not reading the xmp

  • CRM product and categories

    Hello Everyone I have a requirement to create Product/Category relationship that maps to a new hierarchy. The source data is provided in a spreasheet that has the Product ID, Category ID and the new Hierarchy ID. I would like to read this XL file and