[CLOSED] Model IdProperty and Insert with SqlDataSource

  1. #1

    [CLOSED] Model IdProperty and Insert with SqlDataSource

    Last edited by Daniil; Sep 12, 2012 at 6:03 AM. Reason: [CLOSED]
  2. #2
    By default, id of phantom (new) records are skipped during saving
    Please set SkipIdForPhantomRecords="false" for store's writer

    But please note that it is a bad practice if user define an id manually (most appropriate if DB generates id automatically)
  3. #3
    Quote Originally Posted by Vladimir View Post
    By default, id of phantom (new) records are skipped during saving
    Please set SkipIdForPhantomRecords="false" for store's writer

    But please note that it is a bad practice if user define an id manually (most appropriate if DB generates id automatically)

    Hi Vladimir I know, but in the company it want to make, so, I write in the store the next code

                <Writer>
                    <ext:JsonWriter SkipIdForPhantomRecords="false">
                    </ext:JsonWriter>
                </Writer>
    But this is not working, the error persist, this is a screen of error:

    Click image for larger version. 

Name:	ErrorInsert.png 
Views:	107 
Size:	23.0 KB 
ID:	4725
  4. #4
    - Please post a text of save request (you can extract it from Fiddler or Firebug)
    - Check Id in sGpoVida_BeforeRecordInserted
    
    e.NewValues["Id"]

Similar Threads

  1. [CLOSED] How to get the value for the IdProperty in a Model
    By Fahd in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 03, 2012, 2:10 PM
  2. Replies: 4
    Last Post: Oct 07, 2011, 10:49 AM
  3. Replies: 12
    Last Post: Oct 03, 2011, 9:59 PM
  4. Replies: 0
    Last Post: Jun 10, 2010, 1:18 AM
  5. sqldatasource insert into oracle
    By Michael W Yang in forum 1.x Help
    Replies: 4
    Last Post: Aug 04, 2009, 10:29 PM

Tags for this Thread

Posting Permissions