I made the following changes to make this work can you please add to your code so I dont break at next update? or let me know how and what you want to change so I dont get a suprise next update
Thanks
Paul
To Business layer I added this Property. (with a private as well)
<Category(EDITOR_CATEGORY_CRUD), _
DefaultValue(
Description(
And in Data Layer
In method BuildUpdateInfo aroung line 573
loInfo.Fields.Add(lcFieldName)
Thats what I thought as well but excluding the PK from the fields to update causes another exception to be thrown as then the business object thinks there is no primary key
I for one think it may be a good idea for the SF team to have an empty extension layer for all SF objects and the New Items Wizard use those objects and we could code against that layer if necessary and a migration tool later could verify that the New SF works with the current SF Extensions. Just a thought and probbaly not thought all the way through.
There are cases in the User Control extensions that Strataframe had to be changed to accomodate an extension layer due to scope ( it's been awhile since I have been in that area so specifics escape me right now ).
Richard
Yeah I tried that first but it complains that there is no Primary Key Field. It makes sense once you step through that method why it doesn't work. PrimaryKeyNotUpdatable work's just let me know what ya end up doing.
loInfo.FieldDbTypes(loInfo.PrimaryKeyFields(0)) check to work with GUID's.
Then maybe the PrimaryKey GUID of NewID() from the Database might work?
I'm not using the newid() function to populate the Primary Key. I am handling the population of the Pk in my base business object by creating a sequential guid.
The problem I am having here is that I am using replication and it requires one column to be a rowguid, because my primekeys are guids I also use them as rowguids, Rowguids cannot be updated and must be excluded from the update query.
Rich