PDA

View Full Version : [CLOSED] Model IdProperty and Insert with SqlDataSource



osef
Sep 04, 2012, 9:42 AM

Vladimir
Sep 04, 2012, 10:25 AM
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)

osef
Sep 04, 2012, 9:51 PM
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:

4725

Vladimir
Sep 04, 2012, 10:09 PM
- Please post a text of save request (you can extract it from Fiddler or Firebug)
- Check Id in sGpoVida_BeforeRecordInserted



e.NewValues["Id"]