Value list is not to accept with the item values

Hello

I have a problem with a value list that really gets me excited.

History: Re: selection for the week in the year and month numbers

Here the LOV who works in PL/SQL dev. and APEX:
Select to_char (dt + (7 * rn), 'IW') | » ('||
TO_CHAR (DT + (decode (RN, 0, 0,(7*RN) + 1-offset))) | » -'||
-case when dt + (7 *(rn+1)) - offset > last_day (dt) then
LAST_DAY (DT) |') '
on the other
DT+ (7 *(RN+1)) - offset |') '
end as show_value,
TO_CHAR (DT + (7 * RN), 'IW') as return_value
from (select to_date ('8,2008', 'Mr. YYYY') as double dt)
, (select to_number (to_char (to_date ('8,2008', 'Mr. YYYY'), a ')) as double compensation)
, (select rownum-1 rn of the double connection by rownum < = 5)
When trunc (dt + (7 * rn), 'MM') = dt
result:
'SHOW_VALUE '; "' RETURN_VALUE '.
"31" (01.08.08 - 03.08.08); "31"
"32" (04.08.08 - 10.08.08); "32"
"33" (11.08.08 - 17.08.08); "33"
'34' (18.08.08 - 24.08.08); "34"
'35' (25.08.08 - 31.08.08); "35"

Apex I have two elements of value "08.2008" instead of the hard coded: P1_MONTH and: P1_YEAR. SQL looks like:
select to_char (dt + (7 * rn), 'IW') | » ('||
TO_CHAR (DT + (decode (RN, 0, 0,(7*RN) + 1-offset))) | » -'||
-case when dt + (7 *(rn+1)) - offset > last_day (dt) then
LAST_DAY (DT) |') '
on the other
DT+ (7 *(RN+1)) - offset |') '
end as show_value,
TO_CHAR (DT + (7 * RN), 'IW') as return_value
from (select to_date(:P1_MONTH ||) '.' || ((: P1_YEAR, 'Mr. YYYY') as double dt)
(select to_number (to_char (to_date(:P1_MONTH ||) '.' || ((((: P1_YEAR, 'Mr. YYYY'), a ')) as double compensation)
, (select rownum-1 rn of the double connection by rownum < = 5)
When trunc (dt + (7 * rn), 'MM') = dt
I tried several ways, but it always seems to:
LOV query is not valid, a display and a return value is needed, the column names must be different. If your query contains a query online, the first CLAUSE in the SQL statement must not belong to the query online.
I HATE THIS MESSAGE!

Other ways:
(select to_date ((:P1_MONTH ||)) ' || (((: P1_YEAR), 'Mr. YYYY') as double dt)
(select to_date (TO_CHAR(:P1_MONTH) |)) '.' || (TO_CHAR(:P1_YEAR), 'Mr. YYYY') as double dt)
...

Is there someone who could help me with this specific issue of the APEX?

Tobias

Hello

I don't know why, but if you remove the '.' in dates (IE, just having MMYYYY format), then this market - I just tested this on a model page. I don't have the data for selection lists, so have been using a normal text field, but it does not work: http://htmldb.oracle.com/pls/otn/f?p=45958:22

Andy

Tags: Database

Similar Questions

Maybe you are looking for