JTreeTable - cannot expand more than one node programatically..why??

Hi All,
I have a JTreeTable and all i want is to expand node1 and then expand node2.I used
tableModel.getTree().expandRow(0) and the next statement was
tableModel.getTree().expandRow(1)
Wiered thing is that only the first statement gets executed.But although the control goes into second statement it does not expand.I have a TreeWillExpandListner so, on tableModel.getTree().expandRow(0) statement the control comes into the TreeWillExpand() method, but on tableModel.getTree().expandRow(1) execution it does not come to the treeWillExpand() method.
Do you guys have any idea why is this happening..??
Thanks,
Ranjitha
Edited by: Ranjitha_Rao on Jan 31, 2008 9:23 AM
Edited by: Ranjitha_Rao on Jan 31, 2008 9:24 AM

This is strange, i just replaced the order so instead of:
m_tableModel.ExpandRow(0)
m_tableModel.ExpandRow(1)
i did
m_tableModel.ExpandRow(1)
m_tableModel.ExpandRow(0)
It works.Strange but its true.It looked like the tree structure change did not read the structure the same if you do it the first way.Well anyway my problem is solved

Similar Messages

  • Cannot run more than one instance of a remote app in remote desktop services Server 2012

    All,
    I installed "Remote Desktop Services (RDS) Quick Start Deployment for RemoteApp, Windows Server 2012 Style" using the instructions here http://blogs.technet.com/b/yungchou/archive/2013/02/07/remote-desktop-services-rds-quick-start-deployment-for-remoteapp-windows-server-2012-style.aspx
    I need to set up an image viewing program (Olyvia) to allow students using Macs and iPads access to this windows only application in order for them to get their work done.  We may have 12 or more students accessing and trying to run the Olyvia application
    at any one time.
    All works good, except that I cannot run the Olyvia application (setup as a remoteapp program) more than one instance at a time.  That is, when I start up "olyvia" on a Mac, it works great.  If I leave it up and running, and then try
    and start up "olyvia" on an iPad (using different accounts), I get the following error message:
    "Cannot run more than one instance of this program simultaneously.  Either the program is already running, or it has not been terminated completely."
    I need to understand the root issue.
    1.  Is this a licensing issue?  So, I need to add some CALs to the RDS server?
    2.  Is this a application issue with "olyvia"?  So, no matter what I do, it is not going to be able to be used by more than one person at a time when configured as a remoteapp?
    3.  Did I not "publish" the application correctly?
    4.  Is this happening because I followed the "quick start" guide?
    Appreciate any help I can get on this.  We have no problem getting CALs, I just need some help with the root issue.
    Thanks,
    Geoff Weatherford
    CVMBS, CSU

    Hi Geoff,
    Each application uses different techniques for determining if multiple instances are running.  If you can determine what method it is using then perhaps you could use App-V or other virtualization software.
    In the best case you really should direct your question to the maker of Olyvia.  The reason I said that is they specifically designed their software to prevent multiple instances, so the first question is, why?  Is it related to Licensing? 
    Compatibility?  If you knew the specific reason(s) why they are doing it and the technique used then at the point using a virtualization technique may be the best option.
    -TP

  • How to display(binding) values in the table from more than one node?

    Hi,
    I have two nodes (TRIPS & AMOUNTS)in the context. How to bind these values into the table control?
    When i bind second one, first one is getting replaced.

    Hi Mog,
    Of course it is possible to create a table from attributes of more than one node, and in some cases this is still necessary, but you have to do this the hard (manual) way.
    If you have a table control, have a look at the properties and the elements belonging to it.
    First of all, there is the property "dataSource", which binds to a multiple node (let's name it TableRootNode). This means that for each element of THIS node, one row is created. In each row the data of exactly one element of this TableRootNode is displayed.
    Then you have columns in this table. Inside of the columns there is a header and an editor. The editor is the interesting part.
    Normally the primary property of this editor is bound to an attribute of the TableRootNode. Then everything works as expected. If it binds to an attribute of a subnode (SUB) of TableRootNode, then in row i the data of the subnode of the i-th element of TableRootNode is displayed. There is no need for SUB to be a multiple node, but it must not be a singleton.
    If you bind a property of the editor to an attribute, which does not lie in the subtree of TableRootNode, then you will see the same value in each row.
    Now it depends on the structure of your context. Take the node, which is relevant for the change in each row (I assume it is TRIPS) and bind the table to the node as you are used to. Then for each additional column, you have to create a new column in the tree, create a new header element with a title and a new editor (e.g. textview or inputfield) and then bind the right property of the editor to the corresponding attribute in node AMOUNTS).
    If these 2 nodes do not have parent-child-relationship, the tip to create a new node, which consists of the attributes of both nodes is the only solution.
    Ciao, Regina

  • Since downloading the iOS on my iPad, I cannot download more than one pdf from mail to iBooks.  I have to shut down y iPad and start again.  Any suggestions?

    Since downloading iOS on my new iPad, I cannot downlaod more than one pdf from mail into iBooks.  I have to shut down my iPad and restart it to save a second pdf. Wasn't a problem with the old operating system.  Any suggestions?

    It seems that I have solved my issue by performing a full factory reset (erasing all content, something which I had hoped to avoid) restoring from an iCloud backup did not alleviate the issue, I had to set up as a new iPad.
    Hopefully anyone else else who has this issue in the future will be able to find this.

  • HT6114 I cannot select more than one message at a time to delete from the trash. Any ideas will be appreciated

    I cannot select more than one message at a time to delete from the trash. I did not have this problem before I updated to Maverick. What am I doing wrong?

    This works in many different ways and in lots of apps.
    Hold down the command key and you can select from a list (leaving some not checked) to exclude them from the delete process.
    To empty all of the trash folder use command-a keys to "select all" and then the delete key to remove them.

  • Cannot have more than one Mobile item for a person

    Hi,
    I cannot have more than one mobile phone item for a person. In India some of them carry dual SIM card phones and both will be valid. In Lumia 800, I dont see an option to add two mobile items. I can do with a work around by choosing one mobile item with Windows Live Account and another with Google Account. But then that is not the right way to do it. If I need it both on same account, then I cannot do it.
    This feature is available in all the Android phones. Also i am facing another issue is that Lumia 800 does not sync any mobile item #2 of Google account, so I have to go to Google and manually add that phone number to my phone, which is painful.
    Hope Microsoft is listening.
    But I really like the way the facebook, SMS and all other chat are sync'ed in one place.
    Regards,
    -Srinivasan.

    The wierd thing is they have duplicates for Home/Work but not for Cell. I have the odd contact that has two cell phones. Really only two work arounds, use one of the other available types as a secondary cell number or what I do is create two contacts, one in Exchange and one on Live. Since my main account is Exchange, I put the secondary number in the Live contact, then on the phone I link the two together. This way I see two cell numbers for one contact.

  • ORA-01776: cannot modify more than one base table through a join view

    I have created EO based on a database view than consists of two tables, and only one is updateable.
    When I try to update a row using EO, I got a following message: "ORA-01776-cannot modify more than one base table through a join view"
    In Forms, this issue is resolved by setting "Query Only" property of non-updateable items to "True".
    Is it possible to do something like that in ADF BC?
    Thanks

    Thanks for answer.
    When I set "updateable" property to "Never", that attribute is protected from any change.
    I'm sorry for incomplete usecase.
    I have set up a list of value on that attribute, because it is a lookup field for another table and I need to get an ID from that table.
    Basically, I need that attribute to be updateble for BC, but not for database.
    Edited by: MarioK on Oct 13, 2011 9:28 AM

  • Cannot modify more than one base table through a join view

    hi guys, my current problem is that i have a datablock based on a view, now all the fields bar 1 are updateable, but this one field that is obtained through a join is displayed, the user can enter data in this field which then pupulates other fields which are required, but this specific field should not be updated. Is there an option to state this as i keep getting the error:
    cannot modify more than one base table through a join view
    Any help would be greatly appreciated, thanks.

    the user can enter data in this field which then pupulates other fields So, using the value of "this field" you then query the rest of the fields? Can you show us the code you use to populate the rest of the fields?
    but this specific field should not be updatedHave you tried setting the "Query Only" property of the field to "Yes" and the other DML properties (Ins, Upd, Del) to No?
    Also, what is your Forms version?
    Thanks,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • After i downloaded Firefox 7, I cannot open more than one page at a time. I have done everything you suggested about ad-on, etc. Other people are having problems. Can I get reall help with this or should I just reload Firefox 4?

    Firefox 7 is a dud. Cannot open more than one tab at a time, will not open additional pages. Nothing you suggested has worked.
    Can I take down Firefox 7 and reload Firefox 4?
    I need to talk with a live person! I am real disappointed with this.

    Sorry there is no telephone support. You could try the IRC if you want a quick response, ( whilst it is [https://support.mozilla.com/en-US/kb/ask open] )
    Firefox 4 is not supported, but firefox 3.6 is
    * see [[installing a previous version of firefox]]
    There is a change to a preference which may help, post back with more details of your problems please.

  • I cannot highlight more than one e-mail.  I am concerned about this when I am in the Junk mailbox.  I do not want to open any e-mails that are in this mailbox.

    I cannot highlight more than one e-mail.  I am concerned about this when I am in the Junk mailbox.  I do not want to open any e-mails that are in this mailbox.

    Two thoughts:
    1.  You never need to open any emails in the junk mailbox.  You can simply do Mailbox > Erase Junk Mail from Mail's menu.
    2.  What happens if you hold the shift key after highlighting the first in a series of emails, then click the second one with the shift key depressed?  That should hightlight both.

  • In Apple Mail, I cannot add more than one address to the "To" line

    In Apple Mail, I cannot add more than one address to the "To" line by typing just the initial

    HHow are you. Trying to add the second address? Normal procedure after the first address is to type a comma, then start typing the name for the second address.

  • Cannot add more than one reminder, add new list, to reminder app in iOS 7.1, app crashes a lot

    Default iOS reminder app: Cannot add more than one reminder, cannot add new list, after updating to iOS 7.1. The app crashes frequently on editing or just by pressing return..

    Hello Kyem22,
    Thank you for providing the details of the issue you are experiencing with the Reminders app quitting unexpectedly.
    The first thing I recommend is quitting and relaunching all the applications on your iPad:
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    You can find the full article here:
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    If you are still seeing the same issue after quitting all the apps, I recommend restarting your iPad and then resetting if it's still not working:
    Restarting your device
    Press and hold the Sleep/Wake button for a few seconds until the red "slide to power off" slider appears, and then slide the slider.
    Press and hold the Sleep/Wake button until the Apple logo appears.
    Note: Reset your device only if you are unable to restart it.
    Resetting your device
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    You can find the full article here:
    iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    If the issue persists, the last thing I recommend is backing up and restoring your iPad. The Reminders app is not something that can individually be reinstalled, but backing up your iPhone and restoring the iOS software will reinstall the application:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    http://support.apple.com/kb/HT1766
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • I am using iPhoto 11 mail and cannot add more than one recipient in the 'to' line.  When I put a comma in, the recipient's address is deleted.  If I use ' ' with more than one recipient the save grays out.  Any thoughts?

    am using iPhoto 11 mail and cannot add more than one recipient in the 'to' line.  When I put a comma in, the recipient's address is deleted.  If I use '< >' with more than one recipient the save grays out.  Any thoughts?

    I figured it out.  I needed to fix some errors in my account information.  It works fine now.

  • Filtering more than one node with the command SAPBEXFilterValue

    Hello everybody,
    i have an issue with the
    Function SAPBEXsetFilterValue(intValue As String, Optional hierValue As String, Optional atCell As Range) As Integer
    Filtering with cell atCell (if this parameter is missing, then the active cell is taken as the basis)
    The internal filter value must be entered in the parameter intValue. Please note that this value can be displayed differently from the external value displayed in the filter cell. You can either use SAPBEXgetFilterValue or carry out the filter process once manually with the log book function switched on in order to determine the internal value for a known external value. The internal filter value is noted in the log.
    Enter the parameter hierValue when dealing with a node of a certain characteristic hierarchy with the filter value.
    "intValue = <blank>" means "do not filter anymore"
    If no connection to a BW server exists the function starts a logon dialog.
    The function produces a context error if atCell is not a filter cell.
    My problem:
    i would like to select inner nodes. With one node it is not a problem. I have just to use the technical name for the inner node as intValue. But I would like to select more than one node. I would like to filter 4 inner nodes with the SETBEXgetfilter command but it does not work.
    i tried also to set them iteratively but when the second filtervalue is selected the first will be overwritten.
    If i select more than one navigation panes to filter the nodes differently on a seperate navigation pane it also does not work because all navigation panes are connected and show the same.
    Does anybody know how to filter more than one node in the same hierarchy. manually it works. So there should be a way to do that with VBA.
    Thank you in Advance and kind regards,
    Murat

    solved

  • Can I run more than one Node Manager per machine?

    Hia,
    We have a situation in our project where we need to run different domains on a Solaris machine in different java modes.
    Say Domain1 should be running in 32bit version of java where as Domain2 should be running in 64bit mode due to the nature of testing currently going on in different domains.
    We could successfully get the two domains running in different java modes in parallel by modifying the start scripts to decide which Sud data model to start the servers based on certain parms. However, the pain here is with the Node Manager.
    My understanding is that there should be one Node Manager running per machine for all the domains running on that machine. So when ever I have to run a domain in a java mode different to that of what Node Manager is running on, I had to kill the node manager and start it in the same version that I want to start the other servers in since Node Manager uses its starting parms internally to start the Managed Servers (Note: there is no issue in running the Admin Server regardless of the node manager mode as expected).
    Can somebody advise me if there is any way to get around this hassle?
    I want to know if we can run more than one node manager per machine.
    Below are the details of my env.
    Weblogic Server 10.3
    Solaris 10 SPARC 64 bit (SunOS 5.10 Generic_142900-14 sun4v sparc)
    java version "1.6.0_20"
    Hope all this makes sense...
    Cheers,
    Satish.
    Edited by: apsnaidu on Mar 15, 2013 3:29 PM

    You can run as many node manager as you want in a particular machine.
    At the time of starting the node manager you need to pass hostname & Port.
    This will start the nodemanager on different ports of a machine.
    sh startNodeManager.sh <hostname> <port>
    eg:- sh startNodeManager.sh dev_machine_01 5556
    sh startNodeManager.sh dev_machine_01 5557
    sh startNodeManager.sh dev_machine_01 5558
    After starting your node manager in different ports you need to change machine details from admin console.

Maybe you are looking for

  • How do I make folders and rename folders in itunes

    In my music I had all my Beatles songs in The Beatles file, all my Type O-negative in its own file, and Johhny Cash in his own folder, etc,etc,etc. I had very few complete cds I just took the cuts I like for each band or artist and put them in a file

  • Printing error messsage "The document could not be printed","There were no pages selected to print"

    Two error messages "The document could not be printed", followed by "There were no pages selected to print" pops up when printing a PDF document to a HP designJet 750c+ from a windows 7 machine if  "process on Computer" option is chosen from the Adva

  • SAP GE: Host Activation action

    Hi all, While configuring global employee in SAP, I encounter error while running "assignment activation" from the front end. By default under user parameter, Action type is 82. However after execution it gives error that personnel " Action type 82 i

  • ATV - File format not recognized!

    Hi. Can anyone help.  Mt ATV has started saying the "file format is not recognised" for the movies I have on it.  The movies work find in Itunes but for some of them (only) the ATV refuses to play them....  help please?

  • Is it possible to set up repeating calendar events by day rather than date?

    I attend several classic motorcycle shows and car shows locally. Some occur every first Wednesday of the month, some occur on the last Saturday of every month, and some are on the third Thursday of every month. Entering them every month is slow and I