1. #1
    Sencha User
    Join Date
    Apr 2008
    Posts
    365
    Vote Rating
    0
    wuschba is on a distinguished road

      0  

    Default Fill grid from a record (save 1:n in a store's row)

    Fill grid from a record (save 1:n in a store's row)


    Hi!

    I have a main-grid and a form. When the users selects a row in the main-grid, the values are displayed in a form and can be edited.

    First I loaded the form from the server every time the user selected a new row. But because it's just faster, I now load the whole data into the store of the main-grid and then fill-in the form from the data of the store without connecting the server again - which works fine.

    Lets say we have a list of customers in the grid:
    Name, Forename, Street, City...
    Meyers, Bob, ...
    Hope, Alice, ...


    Now I want to add telephone-numbers to that. The problem is: There sould be unlimited telephone-numbers possible per customer and there should be a type (normal, mobile, fax...) to each number.

    In my database, this is of course another table with a 1:n-correlation to the customer table, like: customer, number, type.
    In my GUI, this will be an editable grid on the form showing the number and the type.


    Here comes my problem: How do I store this in the main-grid's store to avoid another server-access when the user selects a row? I can fill in text-fields and so on from a record, but there seem to be no way to store the array of telephone-numbers in a record.

  2. #2

  3. #3
    Sencha User
    Join Date
    Apr 2008
    Posts
    365
    Vote Rating
    0
    wuschba is on a distinguished road

      0  

    Default


    Thanks for your reply. Which example did you mean? I only found Ext.ux.grid.RecordForm, which does the grid-form-editing, but I dod get this to work as well. My problem is to store a grid inside the other grid's store which I couldn't find covered up here.

  4. #4
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    5
    mjlecomte will become famous soon enough mjlecomte will become famous soon enough

      0  

    Default


    There's a link for examples. In that is section for grids. I believe one of those says 1:n

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