SPONSORS:






User Tag List

Results 1 to 8 of 8
  1. #1
    Junior Member
    Join Date
    Dec 2001
    Posts
    23
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Selecting items in a combo box in a JavaJFCTable cell

    I have a JavaJFCTable with several columns. The cells in the last column have combo boxes inside them. I need to be able to change the selected items for each of these combo boxes. How do I do this.

    -

    ------------------

  2. #2
    Senior Member
    Join Date
    Oct 2000
    Location
    Laurel, Maryland, USA
    Posts
    204
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Selecting items in a combo box in a JavaJFCTable cell


    Can you click in the cell you are interested in first, then select from the combo box? I had a situation where I couldn't see the combo-box until I clicked in the cell. I defined the table separately from the combobox. After I clicked the cell in the table, I could then select from the combo box.

    ------------------
    Atlee
    Atlee

  3. #3
    Junior Member
    Join Date
    Dec 2001
    Posts
    23
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Selecting items in a combo box in a JavaJFCTable cell

    The table and the rows are generated dynamically. I do not know in advance how many rows the table will contain. However, what I know is that the last column will always have listboxes inside its cells ( if the number of rows > 0 )



    ------------------

  4. #4
    Senior Member
    Join Date
    Jun 2000
    Location
    Chicago, IL USA
    Posts
    383
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Selecting items in a combo box in a JavaJFCTable cell

    You need to bring up "Record Window declarations" and click on the table and point to the combobox. Look at the object properties and add a tag for the combobox to the existing declarations.

    Choose a tag that is the same no matter which cell of the table you click on.

    Alternatively -- just recapture the window while the combobox is visible.

    Once you have the tag, you have the "handle" you are looking for. Just make sure you ClickCell() on the table (and check if the combobox Exist()s) before you do a Select().

    ------------------
    Rob Kapteyn
    Rob Kapteyn, CSTE
    RobKapteyn@gmail.com

  5. #5
    Junior Member
    Join Date
    Dec 2001
    Posts
    23
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Selecting items in a combo box in a JavaJFCTable cell


    Thanks for this insight, I could solve the problem. I realized that as my comboboxes stacked on on the other in the last column I could refer to them as JFCJavaComboBox (#index). As I know the number of rows in the JFCJavaTable I know, in advance, the last value of the index I can use

    eg: ( to handle first combobox)
    if (DiaologBox.Table.JavaJFCComboBox("#1").exists ())
    DialogBox.Table.JavaJFCComboBox("#1").selectitem(" C")

    By the way I was earlier using DialogBox.getChildren () to get all the children inside the dialogbox and this list did NOT contain these comboboxes ( I checked their class types). They were not listed as children to the Table also. Any idea why ?

    thanks for the tip. I now have something to show at the end of the day today

    ------------------

  6. #6
    Junior Member
    Join Date
    Dec 2001
    Posts
    23
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Selecting items in a combo box in a JavaJFCTable cell


    Here is the gif image showing the table cells with the combo boxes inside them

    ------------------

  7. #7
    Senior Member
    Join Date
    Jun 2000
    Location
    Chicago, IL USA
    Posts
    383
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Selecting items in a combo box in a JavaJFCTable cell

    I encountered the same situation as Atlee.
    Click on the cell first --
    then the combo box exists and you can select inside of it.

    ------------------
    Rob Kapteyn
    Rob Kapteyn, CSTE
    RobKapteyn@gmail.com

  8. #8
    Junior Member
    Join Date
    Dec 2001
    Posts
    23
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Selecting items in a combo box in a JavaJFCTable cell

    If for example I have three strings in the combobox "A" "B" and "C". I go ahead and click on the cell where I know a combobox exists. The combobox drops showing me the three strings. But how do I select one of these strings unless I have a window handle that corresponds to this combobox in this particular cell

    in other words to do list.Select (Item) how do i get hold of the list object ?

    I am getting a feeling that you have given me a solution , but I have not yet quite understood it!

    ------------------

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:15 AM.

Copyright BetaSoft Inc.