Results 1 to 2 of 2

Thread: Example of Multi Checkbox Grid Interacting with Form & Rest Service

  1. #1
    Sencha User
    Join Date
    Jan 2017
    Posts
    4

    Default Example of Multi Checkbox Grid Interacting with Form & Rest Service

    Hello, I have a multi-select grid that is populated with a rest proxy. I also have an event that pops up a form that I'd like to use to comment the record that was clicked on, or all the records that were selected with the multi-select checkboxes on the rows. I have 2 basic problems that I'm hoping someone can assist me with as I'm rather new at this

    1. How to properly bind the record clicked on from the grid into the form popup so that comments will save back through the store proxy
    2. How to save those comments back through the rest service if more than one record is selected in the multi-select grid


    Apologies again for the basic questions - am quite new at this.

  2. #2
    Sencha - Support Team bjdurham85's Avatar
    Join Date
    Mar 2014
    Posts
    962
    Answers
    55

    Default

    Hi--

    1) -- For this are you meaning a single record or multiple? If multiple what does the form look like (i.e. can you only edit comments)?
    2) -- Somewhat depends on your form (i.e. a single textfield meant to update multiple). Likely a bind not overly easy here as it needs to update multiple record/values at once. You'll likely need to iterate through each selection (from underlying grid) and update appropriately.

    **For a simple single bind between grid -> form (two-way in this example) take a look at this:
    http://examples.sencha.com/extjs/6.2...ink/#form-grid

    Regards,
    Bryan

Similar Threads

  1. SAP ODATA Service vs Rest Service
    By Rajesh2u in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 18 Mar 2013, 6:49 AM
  2. How to do CRUD operation using Grid with JSON Rest ful service
    By rohitghatol in forum Ext GWT: Discussion
    Replies: 4
    Last Post: 12 May 2012, 12:47 PM
  3. Replies: 1
    Last Post: 3 Sep 2010, 12:17 PM
  4. Advice on multi-checkbox form fill
    By purge in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 23 Oct 2007, 5:19 PM

Tags for this Thread

Posting Permissions

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