VS2005 - using detailsview to update, insert and delete rows from SQL 2005 database. Delete and insert work but update does not
Using VS 2005 DetailsView to insert, delete, and update rows in SQL 2005 database. insert and delete work but update does not. I recieve no errors and the detailsView comes back unchanged (as well as table row is unchanged). I am trying to use as little code behind as possible. However I do have ItemUpdating routines that seem to work (i.e Checking table for new login duplicates and encrypting passwords). The following is the source code generated by VS2005:<%@ Page Language="VB" AutoEventWireup="false" CodeFile="frmDbRegionMgr...
powerbuilder update fails to return error in mysqlHi
Friends this is all about powebuilder i am using powerbuilder 7 and
mysql the issue is i created an before update trigger on a table where
in i raised error if a column status = 'A'. If i update table using
sql update it raised error and transaction fails. But with my
powerbuilder application my datawindow get updated it cannot trace the
sql_error. update() didnt return any thing and rows_affected return
valid rows it updated the table. Even though there is an error in
trigger.
Funny part is the after update triggers or any other dependent trigger
also fails
Stra...
filtered datawindow... update() errorI use.. powerbuilder 7.01 build 6012
filtered datawindow exists problem.
update.. all right.. after inserting new row, but
after changing 'retrieved data', update() crash powerbuilder...
this problem.. Is corrected in build 70?? ?
Should I upgrade powerbuilder-build70__ ?
please answer.. bye~
Choong Su Kim,
Could you please post the complete error message you see ? This may help us
locate the problem.
HTH
Sanjiv Das [TeamSybase]
"choong su kim" <simiy@kebi.com> wrote in message
news:yREEEi#R$GA.98@forums.sybase.com...
> I use.....
DataWindow Error : DataWindow does not have UPDATE capabilityHi!
I have faced the above error message when I clicked on my saved button
which is suppose to save any updates. The strange thing is, the changes
are being captured! When I retrieve the particular record I changed, I
reflected the changes I made to it. I created a window with a few tab
pages, with 1 datawindow control on each tab page, anyway, my other
window with a few tab pages works fine. So what's wrong?
Any help will be appreciated! :)
KCM wrote:
>
> Hi!
> I have faced the above error message when I clicked on my saved button
> which is suppose to save...
Update method returns no errors but access database doesn't have the new records?
I am cross-posting this to this forum too. IS that ok? I noticed that this forum has a little bit more activity.
So I apologize in advance:
Hello,
I have code that is inserting records into a DataSet by using the ImportRows method with another dataset as follows:
For Each rowName In tblRemoteTable.Rows
tblWebTable.ImportRow(rowName)
Next
Notice there are two DataTables from two DataSets. The WebTable is being updated from the RemoteTable.
This code executes fine and adding code to iterate the WebTable rows and columns show that in fact all of the rows have bee...
Update Sql statement does not update. No error returned.
I cannot get this update code to work. I want to update a row a my database based on information I gathered from textboxes and dropdownlists. When I submit the information, nothing happens. I get no error message. I have a try-catch statement that attempts to trap the error, but it does not nothing. What could be the problem? There are other columns in this row in the DB but only the ones that need updating are in the SQL statement. I've tried rewriting the statement with apostrophes but it didn't help. Using vb 2008.
Any help could be appreciated. Maybe there is s...
Return charater causes DW update error and PB crash (re-post from the pb.general group)Hi All
PB 10.0.1, MSSQLServer 2000
We've got a field (defined as Char) that takes standard input...
included in this is the odd carriage return (though we've got triggers
preventing saving of said bad character).. When this was running with PB
8, the save went through without issue... As soon as app was migrated to
PB 10 (no change in back end with migration to 10), the save started
blowing up (cannot insert NULL error, even though we can see the value
in the insert/update statement... only weird part is that in both the
error msg and a DB Trace, the return key...
ERROR: DataWindow definition not set. Error after 2nd updateHi all,
I'm getting an error on a datawindow on a web page that seems to work
fine for a while. The error appears on the page, "Error: Datawindow
definiation not set'
I'm using powerdynamo, jaguar and powersite. I'm getting the error on a
datawindow that has an update button on it, but I only get the error if
the datawindow is updated twice. I added the Save/Update button in the
datawindow painter. I'm using the defaults for most of the sybase html
datawindow dtc and am using the generated code. I use a SESSION
variable for the retrieval argument:
...
Update works in PB Datawindow Preview but not using dw.update() functionThe following select statement will update successfully within the
datawindow painter, when performing a preview, changing a value and updating
the datawindow. But when running the application, changing the value and
performing the .Update() function the data is unchanged in the database,
however the return code is 1(successful):
1)The update properties of the datawindow are correct.
2)Inserting and Deleting rows work, but Updating and existing record does
not work.
3)I also took out the UNION, thinking that may have something to do with it,
NOT.
Has anyone experienced this?
...
Datalist Update Problem (cmdUpdate.Parameters error trying to update database)
Hello ~This page recieves an id in the url. It then populates the itemtemplate containers with the data. Everything works fine except updating the database. I have this exact code structure working with another table and it works perfectly. I think it isn't recognizing my textboxes in the datalist edititem template, but I can't figure it out. Any help is greatly appreciated.
Server Error in '/' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the...
Select error: An error occurred, yet no message was returned by the database driver.I have developed a datawindow from some complex SQL running against a DB2
database.
When I run this through PowerBuilder I get the following message:
"Select error: An error occurred, yet no message was returned by the
database driver."
This happens the first time I run it but when I run it again I don't get
any error and the datawindow retrieves the correct data.
I have run the SQL against DB2 using the database interface (DB2CMD) and it
returns the correct data but returns the following warning message:
"SQL0437W Performance of this complex query may be...
Error: Failure updating the Directory Services database. Error code -663I have a single NW5.1 sp8 server on which I had installed eDirectory
8.7.3.6 before the notice came out to back rev to 8.7.3.4. Over the weekend
the SYS hard drive failed. I have installed another drive and am trying to
load 5.1sp8 from using the overlay CD; I am calling this a new server
installation when that question is asked, since there is no SYS information
available, but I am telling the installation wizard to only replace the SYS
volume. Everything proceeds fine until it gets to the X-Graphics screen,
and then I get an error message "Failure updating the Directory Services
...
Customize database error messages in datawindow using the PFC error serviceHi,
I want to customize database error messages in datawindows to display
text from the messages table using the PFC error service. Any ideas or
suggestions ?
Thanks in advance
Prasad
prasad_bhanchand@launch.com
On Wed, 25 Jun 1997 17:25:45 -0500, Bhanchand Prasad
<bhanchand_prasad@launch.com> wrote:
>Hi,
>
>I want to customize database error messages in datawindows to display
>text from the messages table using the PFC error service. Any ideas or
>suggestions ?
Hi Prasad,
If you are using the pfc_save window event sequence to save your
da...
dw error updates without retrieve when using stored proc updateDatawindow error Update without retrieve
This problem happens only when using JDM JDBC Microsoft VM.
I have tried it using ODBC and it works fine. I have not succeeded in
getting the JDS JDBC Sun VM to work at all.
By the way, using the old style update clause works fine for the same
dwindow ie: pb sends multiple update statements to the server.
I am sure I am missing some critical piece of information to make this
work.
...
dw error updates without retrieve when using stored proc updateDatawindow error Update without retrieve
I need help in understanding the new feature in pb7 which allows the use of
stored procs to update dwindows. I cannot find Sybase documentation about
this.
This is conceptually a very different method updating multiple row changes.
By the way, using the old style update clause works fine for the same
dwindow ie: pb sends multiple update statements to the server.
I searched for this topic and found this message posted a while
ago. There was a reference to ww.justpbinfo.com/techdocs/rowchange.asp
but that article talks to newbies and is...