This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Commitchanges() does not write data to database | ||
---|---|---|---|
Product: | obsolete | Reporter: | pncblessed <pncblessed> |
Component: | visualweb | Assignee: | John Baker <jbaker> |
Status: | RESOLVED INVALID | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
pncblessed
2008-07-04 12:12:30 UTC
Workaround:- When you append the row save the changes straight away and it works - in this case... polinesDataProvider.setCursorRow(newRow); polinesDataProvider.setValue("poid", cachedRowSetDataProvider1.getValue("id")); polinesDataProvider.commitChanges(); polinesDataProvider.refresh(); As you can see here i set a value (which is the purchase order ID of the header) in this case. At least from the code provided, if you want to get the value of a field from the data provider, cachedRowSetDataProvider1.getValue("id"); should be executed in prerender(), not _init(). At _init() cachedRowSetDataProvider1 hasn't been initialized yet If this analysis is not correct, please attach a zip file of your project. |