From 3187b984cc76491bf1aabacdf8b2deb5046eaf0a Mon Sep 17 00:00:00 2001 From: Bibiko Date: Thu, 9 Dec 2010 20:54:16 +0000 Subject: =?UTF-8?q?=E2=80=A2=20Bundle=20Commands=20-=20added=20shell=20var?= =?UTF-8?q?s=20SP=5FCURRENT=5FEDITED=5FCOLUMN=5FNAME,=20SP=5FCURRENT=5FEDI?= =?UTF-8?q?TED=5FTABLE=20for=20Input=20Field=20scoped=20commands=20if=20in?= =?UTF-8?q?voked=20from=20a=20table=20cell=20field=20editor=20-=20added=20?= =?UTF-8?q?shell=20var=20SP=5FTABLE=5FDATA=5FSOURCE=20(content=20or=20quer?= =?UTF-8?q?y)=20-=20fixed=20table=20row=20change=20trigger=20for=20custom?= =?UTF-8?q?=20query=20tableView?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPCopyTable.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source/SPCopyTable.m') diff --git a/Source/SPCopyTable.m b/Source/SPCopyTable.m index 58339976..3c665693 100644 --- a/Source/SPCopyTable.m +++ b/Source/SPCopyTable.m @@ -1150,7 +1150,7 @@ NSInteger kBlobAsImageFile = 4; [env setObject:bundleInputFilePath forKey:SPBundleShellVariableInputFilePath]; if([[self delegate] respondsToSelector:@selector(usedQuery)] && [[self delegate] usedQuery]) - [env setObject:[[self delegate] usedQuery] forKey:@"SP_USED_QUERY_FOR_TABLE"]; + [env setObject:[[self delegate] usedQuery] forKey:SPBundleShellVariableUsedQueryForTable]; [env setObject:bundleInputTableMetaDataFilePath forKey:SPBundleShellVariableInputTableMetaData]; [env setObject:SPBundleScopeDataTable forKey:SPBundleShellVariableScope]; @@ -1223,6 +1223,7 @@ NSInteger kBlobAsImageFile = 4; NSMutableString *tableMetaData = [NSMutableString string]; if([[self delegate] isKindOfClass:[SPCustomQuery class]]) { + [env setObject:@"query" forKey:SPBundleShellVariableDataTableSource]; NSArray *defs = [[self delegate] dataColumnDefinitions]; for(NSDictionary* col in defs) { [tableMetaData appendFormat:@"%@\t", [col objectForKey:@"type"]]; @@ -1235,6 +1236,7 @@ NSInteger kBlobAsImageFile = 4; } } else if([[self delegate] isKindOfClass:[SPTableContent class]]) { + [env setObject:@"content" forKey:SPBundleShellVariableDataTableSource]; NSArray *defs = [[self delegate] dataColumnDefinitions]; for(NSDictionary* col in defs) { [tableMetaData appendFormat:@"%@\t", [col objectForKey:@"type"]]; -- cgit v1.2.3