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.

asked 31 Oct '12, 10:02

stanley's gravatar image

stanley
112
accept rate: 0%


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.

link

answered 31 Oct '12, 23:46

Ugur%20Kocak's gravatar image

Ugur Kocak ♦
5616
accept rate: 23%

Thanks, the problem has been solved.

(01 Nov '12, 06:52) stanley
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×60

Asked: 31 Oct '12, 10:02

Seen: 1,151 times

Last updated: 07 Nov '12, 05:17


© Copyright Gerger 2017