|
|
|
|
Re: show multiple value in a text box [message #335304 is a reply to message #335198] |
Mon, 21 July 2008 15:19 |
|
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
Oh well ... the example in the first message is wrong (in my opinion); how would SELECT COUNT(*)
FROM some_table
WHERE condition
-- without the GROUP BY clause return more than a single value? Besides, it is syntactically wrong (the last line lacks in the AND keyword).
Therefore, perhaps you'd want to try again, present a working example, properly formatted, perhaps even attach CREATE TABLE and INSERT INTO sample data so that we could reproduce the case.
Just a thought: if your query really returns more than a single record, perhaps you could use it as a CURSOR. Then, using a cursor loop, you'd concatenate each result with previous one(s) and, finally, display the result in the text box (probably with Multi line property set to "Yes" (read more about multi line text items in Forms Online Help System)).
As of EXECUTE IMMEDIATE, well, it just doesn't work in Oracle Forms so - that's out of question:Forms | Error 591 at line 1, column 1
this feature is not supported in client-side programs
|
You could, though, move such a code into a database stored procedure and invoke it from a form trigger, but ... I didn't quite understand get how would EXECUTE IMMEDIATE help in this case?
|
|
|