Adding record to Store on serverside

  1. #1

    Adding record to Store on serverside

    Hi everybody!
    I need to add one record to store on button click. On click i call method from controller where i try execute such method:
    this.GetCmp<Store>("storeCoachesForAdd").Add(new { RegCoachId = 1, CoachNumber = "111", ArrivalDate = DateTime.Now });
    but it doesn`t work. What is wrang?
  2. #2
    Hello @Bogdan!

    This should work, there is something else that you're doing in the whole context that makes it not work.

    I can suggest you to simplify your case down to a very basic grid, and exercise the server-side add. If you still can't have it working, then share the simplified case here, and we'll try to help you out.

    I believe you already read these, but, just in case; if in doubt how to make a simple example, these threads might help you:

    - Tips for creating simplified code samples
    - More Information Required
    - Forum Guidelines

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [CLOSED] Adding a new record to a Store throws an error
    By vadym.f in forum 1.x Premium Help
    Replies: 4
    Last Post: Apr 01, 2014, 1:00 PM
  2. [CLOSED] Adding record to store from code behind
    By jstifel in forum 2.x Premium Help
    Replies: 3
    Last Post: Nov 26, 2013, 7:22 AM
  3. Replies: 1
    Last Post: Apr 25, 2013, 10:56 PM
  4. [CLOSED] [1.0] Store adding record
    By state in forum 1.x Premium Help
    Replies: 14
    Last Post: Dec 11, 2009, 6:24 PM
  5. Replies: 5
    Last Post: May 15, 2009, 7:40 AM

Posting Permissions