To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=77635 Issue #|77635 Summary|Nested query with parameter column does not call fill |parameter dialog Component|Database access Version|OOo 2.2 Platform|All URL| OS/Version|Windows XP Status|NEW Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|none Assigned to|dbaneedsconfirm Reported by|atjensen
------- Additional comments from [EMAIL PROTECTED] Mon May 21 05:08:19 +0000 2007 ------- Create a database with a table, Table1, and a PK field named ID. Add a couple of records Create a query, Query1, as: SELECT ID AS PASS_IT FROM "Table1" WHERE ID = :PASS_IT Create a second query, Query2 as SELECT * FROM "Table1", "Query1" WHERE "Table1"."ID" = "Query1"."PASS_IT" Now execute Query2, the parameter dialog will open allowing the user to enter a value for :PASS_IT. Now edit Query1 so that it is: SELECT :PASSIT FROM "Table1" Execute Query1, the parameter dialog opens and a record set of one column named PASSIT with the entered value and a row for each record in Table 1 is returned. Exectute Query2, the parameter dialog does not open and an empty record set is returned. This came up when trying to help a user get around another shortcoming with the current query implementation in Base. You can not use a replaceable parameter in a function call. The user has created a User Defined Function for an embedded database that needs to take a parameter from a user, not stored in the database, and then call his UDF for each record passing both this entered value and a column from the table. This query is then used to generate a report. The report will be run by his users, and therefore he prefers that it simply require executing the report directly from the Base window. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
