Hi, I define columns for non-DB fields in order to set row level formatting, but it will cause that delete, update, insert properties were disabled on Datasource Definition Dialog. And I use the datasource to create new row and call api_datasource.onCommit('my datasource name'). then this new record doesn't commit into the database. How to commit my new row into database in this case? Thanks. |
Hi Stanley, In order to perform datasource deletes/updates/inserts on commit, you should set delete/update/insert permission properties on datasource definition dialog. If these properties are disabled, make sure that your datasource definition has a primary key and it is based on a table or view (not query). If you have nonDB columns, you can define a view. If your primary key combo box is empty, make sure you have at least one required column on the datasource definition. Thanks, the problem has been solved.
(01 Nov '12, 06:52)
stanley
|