Threaded View

  1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    25
    Vote Rating
    1
    Answers
    2
    IgyBoy is on a distinguished road

      0  

    Default Answered: ValueProvider+RequestFactory - how to access properties of nested object?

    Answered: ValueProvider+RequestFactory - how to access properties of nested object?


    Hi everybody,

    i'm trying to figure out how to display properties from related object in a grid.
    Let's say I have entity object called "Song",that is relating to "Genre" object.

    Now,what I want to achieve is to display list of "Song" objects on grid,but also include some of the details from related "Genre" object.
    From what I read on GXT 3.0, valueProviders should be able to do that, but I haven't found out how to do it.

    So far,I have managed to do this without problem:

    interface SongProxyProperties extends PropertyAccess<SongProxy> {

    ModelKeyProvider<SongProxy> id();
    ValueProvider<SongProxy, String> artist();
    .
    .
    .
    ValueProvider<GenreProxy, String> genre(); ?????????
    }


    Can anyone help me with this?

    Tnx,
    Igor

  2. Never mind, figured it out - have read about GWT Editor framework a bit...