From b1d29fac626ddbdcfda3bc034861c3b22e39b548 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Tue, 23 Feb 2010 11:34:58 +0000 Subject: =?UTF-8?q?=E2=80=A2=20Reset=20AUTO=5FINCREMENT=20in=20Table=20Inf?= =?UTF-8?q?o=20Pane=20uses=20inline=20entering=20of=20the=20new=20value=20?= =?UTF-8?q?(no=20sheet)=20=E2=80=A2=20"Delete=20all=20records"=20confirmat?= =?UTF-8?q?ion=20sheet=20shows=20a=20checkbox=20"Reset=20AUTO=5FINCREMENT?= =?UTF-8?q?=20after=20deletion"=20if=20PRI=20key=20is=20given=20for=20that?= =?UTF-8?q?=20table=20=E2=80=A2=20minimized=20table=20data=20querying=20fo?= =?UTF-8?q?r=20auto=5Finc=20=E2=80=A2=20optimized=20auto=5Finc=20change=20?= =?UTF-8?q?notification=20=E2=80=A2=20if=20user=20changes=20tabVIew=20to?= =?UTF-8?q?=20Table=20Info=20Pane=20update=20data=20in=20beforehand=20?= =?UTF-8?q?=E2=80=A2=20TRUNCATE=20query=20updates=20auto=5Finc=20value=20a?= =?UTF-8?q?s=20well=20in=20TABLE=20INFORMATION?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/TableDocument.m | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Source/TableDocument.m') diff --git a/Source/TableDocument.m b/Source/TableDocument.m index 25fa50a0..4d5c5a77 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -3059,6 +3059,13 @@ [tableTabView selectTabViewItemAtIndex:3]; [mainToolbar setSelectedItemIdentifier:SPMainToolbarTableInfo]; [spHistoryControllerInstance updateHistoryEntries]; + + // Refresh data + if([self table] && [[self table] length]) { + [tableDataInstance resetAllData]; + [extendedTableInfoInstance loadTable:[self table]]; + } + [tableWindow makeFirstResponder:[extendedTableInfoInstance valueForKeyPath:@"tableCreateSyntaxTextView"]]; [prefs setInteger:SPTableInfoViewMode forKey:SPLastViewMode]; -- cgit v1.2.3