Passing a string to SQL via an Item [message #169433] |
Wed, 26 April 2006 16:55 |
tombert
Messages: 1 Registered: April 2006 Location: San Diego
|
Junior Member |
|
|
I have a report in a region that I want to pass a string to the where clause
SELECT unit_id, name
FROM unit
WHERE node_key in (:P61_NODE_KEY)
Where P61_NODE_KEY would be something like 1,2,4 but it gets 'ORA-01722: invalid number'. It works if I just past one number.
Is there a way around this? A better way of doing it?
Basically I have another report with checkboxes on the same page. The user can select one or multiple boxes then press a button. A Page Processing Process parses the htmldb_application.g_f01 and adds commas if necessary and puts the result in P61_NODE_KEY. So that the "unit" report updates and displays only the rows that match the node_key from the first table/report.
Thanks
Tom
|
|
|
|