I have a Problem with Default Values that execute a Select and have Bind Variables in it.
Her ist a example how it can work with "list" instand of "default":
the Example is working. Same Example with "default" instant of "list":
this only brings up this:
"ProblemVar: Error executing SELECT statement:
ORA-01008: Nicht allen Variablen ist ein Wert zugeordnet"
How can i use a bind Variable in Default? Is there a way to do it?
Her ist a example how it can work with "list" instand of "default":
Code:
[$WINDOW TYPE = SQL]
SELECT &<NAME="UsedVar" LIST="1,2,3,4,5" TYPE="integer"> + &<NAME="ProblemVar" TYPE="integer" LIST="select :UsedVar from dual"> FROM dual;
the Example is working. Same Example with "default" instant of "list":
Code:
[$WINDOW TYPE = SQL]
SELECT &<NAME="UsedVar" LIST="1,2,3,4,5" TYPE="integer"> + &<NAME="ProblemVar" TYPE="integer" DEFAULT="select :UsedVar from dual"> FROM dual;
this only brings up this:
"ProblemVar: Error executing SELECT statement:
ORA-01008: Nicht allen Variablen ist ein Wert zugeordnet"
How can i use a bind Variable in Default? Is there a way to do it?