1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    42
    Vote Rating
    0
    ramgovind is on a distinguished road

      0  

    Default Building Tree using complex scenario

    Building Tree using complex scenario


    Client-A
    Doctors --
    Documents--
    Client-B
    Doctors --
    Documents--
    Documents--

    This simple is unable to build after I look at the request factory binding examples and experiment with simple tree example but no luck. I may be misunderstanding the concept of building the tree. Here is the exception after run the tree java.

    Caused by: com.google.gwt.event.shared.UmbrellaException: Exception caught: The given model is already in the TreeStore, and should not be assigned a new node
    at com.google.gwt.event.shared.EventBus.castFireEvent(EventBus.java:69)
    at com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:57)
    at com.sencha.gxt.data.shared.loader.Loader.fireEvent(Loader.java:207)
    at com.sencha.gxt.data.shared.loader.TreeLoader.onLoadSuccess(TreeLoader.java:85)
    at com.sencha.gxt.data.shared.loader.TreeLoader.onLoadSuccess(TreeLoader.java:1)
    at com.sencha.gxt.data.shared.loader.Loader$1.onSuccess(Loader.java:228)

    I noticed one thing that if invoke clients have children of Doctors and Doctors have children of Agreements and Agreements have children of Documents. Is that stating the error. Can I get some sample code snipet on this scenario.

  2. #2
    Sencha User
    Join Date
    Aug 2012
    Posts
    42
    Vote Rating
    0
    ramgovind is on a distinguished road

      0  

    Default


    I got the solution now.

  3. #3
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,731
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    The solution is that two nodes in a TreeStore must not share the same ID - doing so is telling the TreeStore that the hierarchy contains a single item in two different places, which doesn't really make sense - which are 'its' children, or is the entire subtree from there duplicated? And which is its parent, since it has two?

    In the future ramgovind, please consider elaborating on the solution, even when you find it yourself - it makes it easier for future users to find the answers to their own questions when they search

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi