How powerbuilder's datawindow executes insert command -


I am new to PowerBuilder and there is a lot of problem using the datawindows. I can not get my head around the inserting system Can someone explain this to me, or at least tell me in the right direction (articles, suggestions, etc ...)?

SQL generated by Datavindo controlled by updated properties (menu item rows / update attributes ...) goes. From there, you can select a single table and set the properties that will be used to generate the SQL. Where the clause ... determines which columns and their original values ​​are used in the WHERE section for UPDATEs and DELETEs. When you change the columns defined as the key (or allow the user to change), the main modification comes into play only if the updateable column is a list generating SQL (this UI can be used in one way or another Does not affect if allowed) The key column may be the primary key (which can be automatically populated with the primary key button, if you are using DBMS database Support calls to re may be), but it is not. (There are quite a few specific cases where you want to separate something.) If you found an identity column in the form of your key, then you can identify your data window and it will retrieve the value generated after the INSERT. After that, insert InsertRow () in DataWindow, DeleteRow (), SetItem () and, of course, give the user in the UI, this will change the data and status flags that are set to occur when SQL is generated The update will be called ().

All of these can be changed with the modified () function at run time so that you can update more than one table with a DataWindow. It has been implemented in the PowerBuilder Foundation class multi-table update service, so if you want to change these values ​​at run time, this is a good sample code.

Good luck,

Terry.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -